G-code
Special commands
SetPos (set position)
3min
to s et the current position of an axis to a certain value, program setpos x y z a b c , where all axis words are optional, except that at least one must be used it is an error if all axis words are omitted example set the machine position of the x axis to 100 setpos x100 set the machine position of the x axis to the value stored in var #4000 setpos x#4000 set the machine position of multiple axes setpos x#4000 y#4001 z#4002 a0 b0 c10 read a position from a modbus device and set the position to this value; this can be used in a homing routine, for example for more information on the modbus command reference the modbus docid\ dkuobkuk2jt5u2v2pkzf4 document modbus s1 f3 a0 n1 u700 t=d32 setpos x#700