Supplementary Commands - Siemens SINUMERIK 840D sl Programming Manual

Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Supplementary commands

14.1 Messages (MSG)
Examples
Example 1: Output/delete message
Program code
N10 G91 G64 F100
N20 X1 Y1
N... X... Y...
N20 MSG ("Machining part 1")
N30 X... Y...
N... X... Y...
N400 X1 Y1
N410 MSG ("Machining part 2",1)
N420 X1 Y1
N... X... Y...
N900 MSG ()
Example 2: Message text with variable
Program code
N10 R12=$AA_IW [X]
N20 MSG ("Check position of X axis"<<R12<<)
...
N90 MSG ()
386
Comment
; Continuous-path mode
;
The message is first output with N30.
;
Continuous-path mode is kept.
;
The message is output with N410.
;
Continuous-path mode is interrupted.
; Delete message.
Comment
; Current position of the X axis in R12.
; Output message with variable R12.
; Delete message from N20.
Programming Manual, 09/2011, 6FC5398-1BP40-2BA0
Fundamentals

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents