G-Code WHILE statement is not available?

All things related to the Centroid Acorn CNC Controller

Moderator: cnckeith

Post Reply
Arturo Martinez
Posts: 52
Joined: Fri Jun 29, 2018 4:38 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC11: No
CPU10 or CPU7: No
Location: Ontario, CA

G-Code WHILE statement is not available?

Post by Arturo Martinez »

I have the CNC12 PRO version. I wanted to test a G-Code program running the GRAPH button. This program uses a WHILE statement. The system is sending the message shown below. I terminated the process and jumped into the Centroid M-Series Operators Manual to see the syntax for the operation code and to my surprise there no reference for this G-Code WHILE in the whole document!
Is there a document that describes the improvements incorporated into CNC12, hopefully that document includes G-Code improvements.

G-Code:
N090 WHILE [#29008 GT 2] DO 1
:::
:::
:::
N150 END 1

501 Invalid character

I know that for every request to this forum I have to attach photos, etc. but you have to excuse me this time: this is a simple question that just requires a YES/NO answer.

Please don't tell me that I have to write G-Code the way it was done more than 20 years ago (using GOTO's)!!!


Thank you,
Arturo
tblough
Posts: 3140
Joined: Tue Mar 22, 2016 10:03 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: Yes
CNC Control System Serial Number: 100505
100327
102696
103432
7804732B977B-0624192192
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: Boston, MA
Contact:

Re: G-Code WHILE statement is not available?

Post by tblough »

Valid macro commands are:

GOTO
IF THEN ELSE
INPUT

There is no While conditional statement available. Manuals are available here: http://www.centroidcnc.com/centroid_diy ... nuals.html
Cheers,

Tom
Confidence is the feeling you have before you fully understand the situation.
I have CDO. It's like OCD, but the letters are where they should be.
Post Reply