1
Feature Requests / A basic way to add conditionals to Mach3
« on: January 31, 2009, 08:24:20 AM »
When Mach3 (v2.63) comes across the G-code,
it runs doOperation once, even though the number of repetitions is specified as zero. Can the behaviour of Mach3 be changed to so that the subroutine is never called if L is set to zero ? This behaviour will enable some basic conditional G-code. For example,
On the face of it, it would seem easy to implement and not require a change to the software design.
Code: [Select]
M98 (doOperation) L 0
it runs doOperation once, even though the number of repetitions is specified as zero. Can the behaviour of Mach3 be changed to so that the subroutine is never called if L is set to zero ? This behaviour will enable some basic conditional G-code. For example,
Code: [Select]
#1 = 0 ; CLOCKWISE = 0 , ANTICLOCKWISE = 1
#2 = [ 1 AND #1 ]
M98 (MachineAntiClockwise) L #2
#2 = [ 1 - #2 ]
M98 (MachineClockwise) L #2
On the face of it, it would seem easy to implement and not require a change to the software design.