M-Series Operator’s Manual 4/9/15
*The above method of representing an axis label should be used only when writing to an external file or for display
in a message box. It is not valid if you are attempting to “build” a motion command in real-time from within the
currently running g code program. If your intent is to use a variable to represent an axis label for a real-time
command, you should instead use $ as the placeholder. The parser will replace a '$' character and the numerical
expression following it with the ASCII character equivalent to the numerical expression, provided that it evaluates
to the characters 'A' (65) through 'Z' (90). If the numerical expression is out-of-bounds, an “Invalid character” error
occurs.
Example: Given #100 = 88, #101 = 1, #102 = 89, #103 = 2, and #104 = 10,
G1 $[#100][#101] $[#102][#103] F[#104] evaluates to G1 X1 Y2 F10
M200/M201 – Stop for Operator, Prompt for Action
M200 is used to pause the currently running job and prompt the operator for action. If M0_jogging is
unlocked, or the control is in DEMO mode, jogging is enabled while waiting for the operator to respond. If this
option has not been enabled, the behavior will default to that of a standard M0. (jogging disabled)
The syntax is: M200 formatted-string [[user_var_expr] ...]
Example:
M200 “Please jog the %c and %c axes to the desired X0, Y0 position\nPress Cycle Start to continue” #100 #101
M201 behaves exactly like M200 except that PLC bits SV_PROGRAM_RUNNING, SV_MDI_MODE,
and SV_JOB_IN_PROGRESS are turned off while the prompt is displayed.
M223 – Write Formatted String to File
The M223 command writes a formatted-string to a file that was opened using the M120 or M121 commands. The
syntax is:
M223 formatted-string [[user_var_expr] ...]
Example:
M223 “; The measured diameter of the pocket = %.4f\n” #100
M224 – Prompt for Operator Input Using Formatted String
The M224 command displays a formatted-string and then accepts user input. The syntax is:
M224 lvalue_expr formatted-string [[user_var_expr] ...]
Where lvalue_expr is a user_var_expr that evaluates to a user variable that can be written. If lvalue_expr is a string
type (#300-#399) then the user input is assigned verbatim to the string. Otherwise, the user input is evaluated as any
other “bracketed” numerical expression.
Example:
M224 #300 “Please enter the direction that you wish to probe in the %c axis: (+ or -)” #100