Programming principles
1.1 Fundamentals of programming
Turning Part 2: Programming (Siemens instructions)
Programming and Operating Manual, 05/2012, 6FC5398-5DP10-0BA0
11
Comment, remark
The instructions in the blocks of a program can be explained using comments (remarks). A
comment always starts with a semicolon " ; " and ends with end-of-block.
Comments are displayed together with the contents of the remaining block in the current
block display.
Messages
Messages are programmed in a separate block. A message is displayed in a special field
and remains active until a block with a new message is executed or until the end of the
program is reached. Max. 65 characters can be displayed in message texts.
A message without message text cancels a previous message.
MSG("THIS IS THE MESSAGE TEXT")
Programming example
N10 ; G&S company, order no. 12A71
N20 ; Pump part 17, drawing no.: 123 677
N30 ; Program created by H. Adam, Dept. TV 4
N40 MSG("DRAWING NO.: 123677")
:50 G54 F4.7 S220 D2 M3 ;Main block
N60 G0 G90 X100 Z200
N70 G1 Z185.6
N80 X112
/N90 X118 Z180 ; Block can be suppressed
N100 X118 Z120
N110 G0 G90 X200
N120 M2 ; End of program