Machsupport Forum
Mach Discussion => Mach Screens => Topic started by: sk8serg on June 23, 2009, 08:48:30 AM
-
Is it possible to make screen as on picture?
Can anyone help me?
-
Not sure what you are asking, but if you are having trouble "Jogging" the machine you will need to included a "Jog on/off" button.
-
I don't know how to set Jog Increment for each directional button
-
Grab the UserDRO's you have on your screen, then call on a Gcode command either adding to the current position using G90 or using incremental G91.
This is the idea, but you might need to check a number of things depending on your application to make sure the G0 call will be safe ;) and/or if you need to return the machine to a G90.
G91 Example:
amount_to_move = GetUserDro(1000)
Code "G91 G0 Z" & amount_to_move
G90 Example:
amount_to_move = GetOEMDRO(802) + GetUserDro(1000)
Code "G90 G0 Z" & amount_to_move
Please first understand your machine and Gcode before running any code on your machine ;)