Programming
8.1 Fundamental principles of NC programming
8-124
SINUMERIK 802D sl Operation and Programming Nibbling (BP-N), 06/2006 Edition
6FC5 398-3CP10-0BA0
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 pro-
gram 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 G17 G54 G94 F470 S20 D2 M3 ; Main block
N60 G0 G90 X100 Y200
N70 G1 Y185.6
N80 X112
/N90 X118 Y180 ; Block can be skipped
N100 X118 Y120
N110 G0 G90 X200
N120 M2 ; End of program
8.1.5 Character set
The following characters are used for programming; they are interpreted in accordance with
the relevant definitions.
Letters, digits
A, B, C, D, E, F, G, H, I, J, K, L, M, N,O, P, Q, R, S, T, U, V, W X, Y, Z
0, 1, 2, 3, 4, 5, 6, 7, 8, 9
No distinction is made between lowercase and uppercase letters.
Printable special characters
( Left round bracket “ Inverted commas
) Right round bracket _ Underscore (belonging to a letter)
[ Left square bracket . Decimal point
] Right square bracket , Comma, delimiter