Operator entry/input

All things related to the Centroid Acorn CNC Controller

Moderator: cnckeith

Post Reply
donek
Posts: 6
Joined: Mon May 24, 2021 1:50 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Operator entry/input

Post by donek »

We cut parts that are the same but different lengths. On our shopbot it is possible to put an input command in the code and ask the operator what the length is. We then do a bit of math and cut the part to the correct size. I know it is possible to assign variables in centroid g-code, but can I request the length from the operator? What is the command for doing so?


centroid467
Posts: 821
Joined: Thu Apr 14, 2022 2:46 pm
Acorn CNC Controller: No
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: No
CNC11: No
CPU10 or CPU7: No

Re: Operator entry/input

Post by centroid467 »

If you are looking to stop program execution for string input from operator, you should use M224. It is described in the manual on page 304. You should do some kind of input sanitization or bounds checking to make sure the input is as expected and within range.


Sword
Posts: 836
Joined: Fri Nov 30, 2018 1:04 pm
Acorn CNC Controller: Yes
Plasma CNC Controller: No
AcornSix CNC Controller: No
Allin1DC CNC Controller: No
Hickory CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: Thorp WI

Re: Operator entry/input

Post by Sword »

Here's a macro that I use for keyslots, it asks for size and cut type input before executing. It should be a helpful example or you.
Attachments
KeySlotter-mfunc57.mac
(2.17 KiB) Downloaded 9 times
Scott


donek
Posts: 6
Joined: Mon May 24, 2021 1:50 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: Operator entry/input

Post by donek »

Unfortunately I get the error message: 531 M22x missing initial quote

This happens if I use the same command that is in the manual: M224 /0 #300 “Please enter the direction that you wish to probe in the %c axis: (+ or -)” #100

Or if I enter the command as I edited it: N0150 M224 /0 #100 “ENTER BASE LENGTH(CM) - ”

Or if entered in the same format as Sword's example: N0150 M224 #100 “ENTER BASE LENGTH(CM) - ”

Please let me know what I am missing here.


Sword
Posts: 836
Joined: Fri Nov 30, 2018 1:04 pm
Acorn CNC Controller: Yes
Plasma CNC Controller: No
AcornSix CNC Controller: No
Allin1DC CNC Controller: No
Hickory CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: Thorp WI

Re: Operator entry/input

Post by Sword »

Your font type or text format used for the "quotes" seems to be messing with it. Try creating/editing your text in a different text editor, such as Notepad++. I just backspaced and re-entered with the default in Notepad++, and it worked.
Scott


Post Reply