Chapter 7
94
UM10350_PCNC770_Manual_0916A
Programming
Display a Message - (MSG)
(MSG, …) - displays a message if MSG appears aer the le parenthesis and before any other prinng
characters. Variants of MSG which include white space and lowercase characters are allowed. The
rest of the characters before the right parenthesis are considered to be a message. Messages are
displayed on the Status screen.
Example:
(MSG, your message here) prints your message here to the Status screen.
7.3.1 Optional Program Stop Control – (M01 BREAK)
The oponal program stop control (M01 BREAK) works as follows. If M01 break is on (indicated
by the LED on the M01 Break buon on the PathPilot interface) and a line in the G-code program
contains an M01-code, program execuon is stopped at the M01 line. The program resumes from
that line when the Cycle Start buon is pushed.
7.4 Additional G-code Formatting Notes
7.4.1 Repeated Items
A line may have any number of G words, but two G words from the same modal group may not
appear on the same line. For more informaon, see Modal Groups later in this chapter.
A line may have zero to four M words. Two M words from the same modal group may not appear
on the same line.
For all other legal leers, a line may have only one word beginning with that leer.
If a parameter seng of the same parameter is repeated on a line, #3=15 #3=6, for example, only the
last seng takes eect. It is illogical but not illegal to set the same parameter twice on the same line.
7.4.2 Order of Execution
The order of items on a line does not determine the order of execuon on the commands. For more
informaon, see table Order of Execuon later in this chapter.
The three types of items whose order may vary on a line (as given at the beginning of this secon)
are word, parameter seng, and comment. Imagine that these three types of items are divided into
three groups by type.
The rst group (the words) may be reordered in any way without changing the meaning of the line
which is as dened above.