M-Series Operator’s Manual 4/9/15 11-10
INPUT – Prompt Operator for Input
The INPUT macro prompts the operator for numeric input. The general form of the INPUT statement is:
INPUT “<prompt>” <variable>
Where <prompt> is the message prompt for the operator and <variable> is the variable in which to store the input.
The CNC software will display a dialog with the given prompt and space for the operator response. The operator
may enter any numeric expression (see above) including variables as a response. The operator must press CYCLE
START or Alt-S to dismiss the dialog. Pressing ESC will cancel the job.
The CNC software parses well ahead of the current execution to maximize throughput and efficiency. For this
reason, an INPUT macro may prompt the operator for input immediately even though the INPUT macro is located
in the middle or near the end of the job. Parsing pauses while the dialog is displayed. Any statements parsed prior
to the INPUT macro will have been queued and will continue to execute in the background while the prompt is
displayed. Job processing will pause only if all queued statements have been executed before the operator supplies
a response.
INPUT macros will not graph. If you must graph the job, first set the input variable to a default value and use a
conditional to execute the INPUT only if the job is being run normally.
Use search mode cautiously with INPUT macros. To have search work properly, you may have to supply exactly
the same input during the search as you did during the last actual run.
Examples:
; Ask operator for pocket depth. Store result in #101
; Note: this will not graph.
INPUT “Enter pocket depth” #101
; Allow job with INPUT statements to be graphed.
#101 = 0.5; Supply a default value for graphing
; Ask for operator input only if not graphing.
IF NOT #4201 THEN INPUT “Enter pocket depth” #101