5
« on: March 03, 2013, 08:30:22 PM »
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!