Programming
10.1 Fundamental Principles of NC Programming
Cylindrical grinding
Programming and Operating Manual, 07/2009, 6FC5398-4CP10-2BA0
223
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")
See also chapter "Service MSG".
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