Hello Guest it is April 25, 2024, 07:57:47 PM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - nguyenlocan

Pages: 1
1
Yes, this script for running spindle.In this forum, There are some topics talk about Mach3 and  Boxford Duet Lathe and Mill. Some experiences and information that I searched on Internet.Now I use another computer so I can't send you some information. Thanks for your answer:]

2
yes, I use Mach3 to replace my old software. It's work on MS DOS so difficult  to control.
Now I want control with Mach3. It's more easy.
Thanks you very much.         

3
Yes, I use LPT to control 3 axis X,Y,Z . And the code I gave you that I use for controlling spindle Motor by Serial Port RS232. First , I use original software run On MS DOS  to control machine.
I get and analyze the Hex code from machine by  RS232 analyzer software, with another speed , the machine give me another Hex code.
I know the meaning of that code.
example : Hex code    53 08 09 06 00 50 10  it's mean run forward 500 rpm
Similar with another code.
Now i want to writting VB script to change the code the machine send to Mach3, and change it into Spindle Display RPM but I can't make VB script in DRO button.
If I can't  resolve it by software, You can  show me some ways to make a speedometer hardware.
Thank you very much!


4
Thanks for your reply!
I understand the step 1.
But in step 2, I don't know where is the Standard Code.I can't find that field.
Example VB code I sent to CNC machine  Boxford Duet: ( spindle 500 rpm)

Sub Run_boxford() ' Boxford Duet1 9600 8 data 1 stop even parity
If (getportbyte(1021) And 32)<>0  Then   'Line Status Register bit 5 TX holding reg empty
putportbyte(1016,83) 'This is the TX register
putportbyte(1016,8) 'This is the TX register
putportbyte(1016,09) 'This is the TX register
putportbyte(1016,06) 'This is the TX register
putportbyte(1016,00) 'This is the TX register
putportbyte(1016,80) 'This is the TX register
putportbyte(1016,16) 'This is the TX register
End If
'***********************************************************************************
End Sub


 The HEX code I record from data TX and RX
Now i want to change the HEx code to Spindle display but I don't know where to make VB script for DRO in Machscreen or machdesign.
Can you show me the way clearly!
Thanks you very much !
Hope for your reply soon!                                  
 

5
Thanks for your reply!
I understand the step 1.
But in step 2, I don't know where is the Standard Code. I can't find that field.

Example VB code that I sent to CNC machine  Boxford Duet: ( spindle 500 rpm)

Sub Run_boxford() ' Boxford Duet1 9600 8 data 1 stop even parity
If (getportbyte(1021) And 32)<>0  Then   'Line Status Register bit 5 TX holding reg empty
putportbyte(1016,83) 'This is the TX register
putportbyte(1016,8) 'This is the TX register
putportbyte(1016,09) 'This is the TX register
putportbyte(1016,06) 'This is the TX register
putportbyte(1016,00) 'This is the TX register
putportbyte(1016,80) 'This is the TX register
putportbyte(1016,16) 'This is the TX register
End If
'***********************************************************************************
End Sub
 The HEX code I record from data TX and RX
Now i want to change the HEx code to Spindle display but I don't know where to make VB script for DRO in Machscreen or machdesign.
Can you show me the way clearly please!
Thanks you very much !
Hope for your reply soon!                                   
 

6
Machscreen Screen Designer / help me make a numberic display on mach 3
« on: February 25, 2013, 09:23:00 PM »
 I want to make a ''number display'' by machscreen but I don't know how to make it. example : a spindle display, I have loaded a basic Turn screen, I can make a button to control spindle but no speed feedback. I can't use funtion Execute basic script to edit.
I want display the spindle speed from Boxford Duet.
Please help me do it. Thanks you very much !

Pages: 1