Siemens SINUMERIK 802D sl Programming And Operating Manual page 34

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

Advertisement

Programming
3.1 Fundamental Principles of NC Programming
Note regarding block numbers
First select the block numbers in steps of 5 or 10. Thus, you can later insert blocks and nev-
ertheless observe the ascending order of block numbers.
Block skip
Blocks of a program, which are to be executed not with each program run, can be marked by
a slash / in front of the block number.
The block skip operation itself is activated either via operation (Program control: "SKP") or
via the adaptation control system (signal). A section can be skipped by several blocks in
succession using " / ".
If a block must be skipped during program execution, all program blocks marked with " / " are
not executed. All instructions contained in the blocks concerned will not be considered. The
program is continued with the next block without marking.
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
N20
N30
N40 MSG("DRAWING NO.: 123677")
:50 G54 F4.7 S220 D2 M3
N60 G0 G90 X100 Z200
N70 G1 Z185.6
N80 X112
/N90 X118 Z180
N100 X118 Z120
N110 G0 G90 X200
N120 M2
3-4
; G&S company, order no. 12A71
; Pump part 17, drawing no.: 123 677
; Program created by H. Adam, Dept. TV 4
;Main block
; Block can be suppressed
;End of program
Programming and Operating manual, 06/2006, 6FC5398-4CP10-0BA0
Grinding

Advertisement

Table of Contents
loading

Table of Contents