31
Mach4 General Discussion / Re: Rotary Axis Setup/Mapping in Mach4
« on: December 20, 2021, 11:37:47 AM »
Not sure if it is possible or not. My method would be to create a gcode string with the 'f' parameter calculated to the speed you want and distance in a relative mode
local speed=(read a value from a register or screen dro or have a speed for this script)*1
mcCntlGgodeExecute(inst, "g91 g1 f"..tostring(speed).." x.1 g90")
This is a quick example syntax may be incorrect but you should get the drift.
HTH
RT
local speed=(read a value from a register or screen dro or have a speed for this script)*1
mcCntlGgodeExecute(inst, "g91 g1 f"..tostring(speed).." x.1 g90")
This is a quick example syntax may be incorrect but you should get the drift.
HTH
RT