Hello Guest it is March 28, 2024, 09:50:46 PM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Al Cutter

Pages: 1
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,
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.

Pages: 1