Machsupport Forum

Mach Discussion => Mach Screens => Topic started by: sk8serg on June 23, 2009, 08:48:30 AM

Title: Help me
Post by: sk8serg on June 23, 2009, 08:48:30 AM
Is it possible to make screen as on picture?
Can anyone help me?
Title: Re: Help me
Post by: zealous on June 23, 2009, 04:43:44 PM
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.
Title: Re: Help me
Post by: sk8serg on June 24, 2009, 08:21:39 AM
I don't know how to set Jog Increment for each directional button
Title: Re: Help me
Post by: zealous on June 25, 2009, 03:47:09 PM
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:

Code: [Select]
amount_to_move =  GetUserDro(1000)
Code "G91 G0 Z" & amount_to_move

G90 Example:

Code: [Select]
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 ;)