Hi Ladies and Gents,
I'm putting together robot using Mach3 for control.
The robot a Ping Pong ball machine.
It is a 6 motor monster that needed a 6 axis Teach. JCode and Copy Cat are 4 axis Teachers.
It was suggested in another forum that I make my own 6 axis Teach, VB Script.
I'd never 'coded' anything before. Through research trial and error I came up with this:
X = CInt (GetDRO (0))
Y = CInt (GetDRO (1))
Z = CInt (GetDRO (2))
A = CInt (GetDRO (3))
B = CInt (GetDRO (4))
C = CInt (GetDRO (5))
Com = InputBox ("Add Comment")
AppendTeachFile "teach.tap"
Code "G0 X" & X & " Y" & Y & " Z" & Z & " A" & A & " B" & B & " C" & C & " //" & Com
LoadTeachFile
I would like a better Comment inserter.
I would like to have a UserDRO on the screen that I can put the comment in (instead of the InputBox call).
Is there a way to have a DRO accept numbers and letters (or just letters)?
Thanks