Mach Discussion > VB and the development of wizards
Y axis manual input
tmax1:
Hello
I'm trying to find a script that will allow me to manually input Y coordinates and then go to that position. I dont want the MDI box, so I dont have to type "G0Y?" everytime
TIA
TPS:
load a GCode file.
for example
G0X10
G0X20
G0X30
G0X30
G0X40
enable Single BLK
than you only have to hit Start for every single line
tmax1:
Thanks, but not exactly what i am looking for.
What i want to do is: click on a button, enter a value: ie. 23.625, hit enter and have the machine go to that position
TPS:
ok then something like this might help:
--- Code: ---Sub Main
Dim YPos As String
YPos = AskTextQuestion("Please enter Y Position (use . not , !): ")
If IsNumeric(YPos) Then
Code "G0Y"+CStr(YPos)
Message "driving Y to: " & YPos
Else
MsgBox "Vaule you entered is not numeric!"
End If
End Sub
--- End code ---
tmax1:
TPS, THANK YOU!! that does exactly what I want...I am making a programmable stop for my cutoff say and this is going to work perfect....Thanks again!!
Navigation
[0] Message Index
[#] Next page
Go to full version