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
