Home › M-codes › Centroid CNC12 Acorn › M224
M224 Ask the operator for a value
Centroid CNC12 Acorn M-code · Mill and lathe
Shows a formatted prompt and stores what the operator types in a variable. A string variable 300 to 399 gets the text as typed. Fanuc has no direct match.
Format
M224 [/font] #var "TEXT" [#var]
Addresses
| Address | What it does |
|---|---|
font | Optional font number 0 to 6 |
#var | Variable that gets the answer |
TEXT | Prompt text |
How it works
One shot.
Example program
#101 = .5 ; DEFAULT FOR THE GRAPH
M224 #101 "ENTER POCKET DEPTH" ; ANSWER GOES IN #101
G1 Z-#101 F10. ; CUT TO THAT DEPTH
M224 #101 "ENTER POCKET DEPTH" ; ANSWER GOES IN #101
G1 Z-#101 F10. ; CUT TO THAT DEPTH
Example is in inch. Check offsets and clearances first.
Watch out for
- CNC12 reads ahead, so the prompt may appear before earlier lines finish.
- Prompts do not run while graphing. Set a default value for the graph.
Machine builders set many M codes, and they change by model and options. Check the M code list for your machine.
Related codes
Every M-code for Centroid CNC12 Acorn in your pocket. The app has the full example programs, search by number or shop word, a line decoder and calculators for tapping, threading and drilling.
Open M224 in the app All Centroid CNC12 Acorn M-codes