EasyManuals Logo

Siemens SINUMERIK 828D Programming Manual

Siemens SINUMERIK 828D
822 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #100 background imageLoading...
Page #100 background image
Flexible NC programming
1.12 Check structures
Job planning
100 Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
Significance
IF: Introduces the IF loop.
ELSE: Introduces the alternative program block.
ENDIF: Marks the end of the IF loop and results in a return jump to the
beginning of the loop.
<condition>: Condition that determines which program block is executed.
Example
Tool change subprogram
Program code Comments
PROC L6 ; Tool change routine
N500 DEF INT TNR_AKTUELL ; Variable for active T number
N510 DEF INT TNR_VORWAHL ; Variable for pre-selected
T number
; Determine current tool
N520 STOPRE
N530 IF $P_ISTEST ; In the program test mode ...
N540 TNR_AKTUELL = $P_TOOLNO ; ... the "current" tool is read
from the program context.
N550 ELSE ; Otherwise ...
N560 TNR_AKTUELL = $TC_MPP6[9998,1] ; ... the tool of the spindle is
read-out.
N570 ENDIF
N580 GETSELT(TNR_VORWAHL) ; Read the T number of the pre-
selected tool in the spindle.
N590 IF TNR_AKTUELL <> TNR_VORWAHL ; If the pre-selected tool is
still not the current tool,
then ...
N600 G0 G40 G60 G90 SUPA X450 Y300 Z300 D0 ; ... approach tool change
position ...
N610 M206 ; ... and execute a tool change.
N620 ENDIF
N630 M17

Table of Contents

Other manuals for Siemens SINUMERIK 828D

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens SINUMERIK 828D and is the answer not in the manual?

Siemens SINUMERIK 828D Specifications

General IconGeneral
Control TypeCNC
Operating SystemWindows Embedded
ProcessorIntel Atom
Display10.4" color TFT display
InterfacesEthernet, USB
ProgrammingShopMill, ShopTurn
Operation Panel Size10.4"
Protection ClassIP65
PLC Memory2 MB
Spindle Capacity4 spindles
Hard DriveCompactFlash

Related product manuals