Fundamental Principles of NC Programming
2.2 Language elements of the programming language
Fundamentals
Programming Manual, 11/2006, 6FC5398-1BP10-2BA0
67
Programming messages
Messages can be programmed to provide the user with information about the current
machining situation during program execution.
A message in an NC program is generated when the message text is typed after keyword
"MSG" in round parentheses "()" and double quotation marks.
A message can be deleted using "MSG ()".
Example of activating/deleting messages
N10 MSG ("Roughing the contour")
;Activate message
N20 X… Y…
N …
N90 MSG ()
;Clear message from N10
Note
A message text can be up to 124 characters long and is displayed in two lines
(2*62 characters). Contents of variables can also be displayed in message texts.
Example of message texts
N10 R12=$AA_IW [X]
;Current position of the X axis in R12
N20 MSG (″Check position of X axis″<<R12<<)
N …
N90 MSG ()
;Clear message from N20
Or
N20 MSG (″Check position of X axis″<<$AA_IW[X]<<)