1
G-Code, CAD, and CAM discussions / Parameter setting usage with subroutines
« on: May 11, 2012, 05:15:13 PM »
Having got on top of subroutine syntax ( for the moment anyway ! ) I am still trying to produce a chequer plate pattern using nested subroutines to repeat a small block many times to produce the size of chequer plate that I need.
# parameters look like an answer to a maiden ( programmer's prayer ) but Mach3 just skips through the main program without doing anything.
Can anyone spot what I am doing wrong? My first efforts are attached, I have taken line numberhe parameter setting lines in case that was causing problems. The subroutines cutting the chequer plate square O4321 and O1234 work OK if I get rid of all the offset shifting sub routines O444 and O555 and hard code a few moves.
Regards,
Andrew
# parameters look like an answer to a maiden ( programmer's prayer ) but Mach3 just skips through the main program without doing anything.
Can anyone spot what I am doing wrong? My first efforts are attached, I have taken line numberhe parameter setting lines in case that was causing problems. The subroutines cutting the chequer plate square O4321 and O1234 work OK if I get rid of all the offset shifting sub routines O444 and O555 and hard code a few moves.
Regards,
Andrew