661
Mach4 General Discussion / Re: NEED HELP UNDERSTANDING
« on: June 20, 2022, 06:53:14 PM »
Hi,
To my way of thinking the G53 G0 does nothing other than put the mode in G0 or rapid mode. Note G53 is not modal, it has to be specifically mentioned whenever
you want a machine coord move.
The second line 'G53 G1 F3000 A%4.4f", ( tpos + .1 )' will cause the machine to drive the A axis to machine location 'tpos+0.1' at feedrate 0f 3000, the '%4.4f' just represents a formatted placeholder for the number.
Craig
Code: [Select]
mc.mcCntlGcodeExecuteWait(inst, string.format("G53 G0 \nG53 G1 F3000 A%4.4f", ( tpos + .1 )))
To my way of thinking the G53 G0 does nothing other than put the mode in G0 or rapid mode. Note G53 is not modal, it has to be specifically mentioned whenever
you want a machine coord move.
The second line 'G53 G1 F3000 A%4.4f", ( tpos + .1 )' will cause the machine to drive the A axis to machine location 'tpos+0.1' at feedrate 0f 3000, the '%4.4f' just represents a formatted placeholder for the number.
Craig