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 #27 background imageLoading...
Page #27 background image
Flexible NC programming
1.1 Variables
Job planning
Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
27
Example 2: Program-global and program-local user variables (PUD/LUD)
Program code Comment
PROC MAIN ; Main program
DEF INT VAR1 ; PUD definition
...
SUB2 ; Subprogram call
...
M30
Program code Comment
PROC SUB2 ; Subprogram SUB2
DEF INT VAR2 ; LUD DEFINITION
...
IF (VAR1==1) ; Read PUD
VAR1=VAR1+1 ; Read and write PUD
VAR2=1 ; Write LUD
ENDIF
SUB3 ; Subprogram call
...
M17
Program code Comment
PROC SUB3 ; Subprogram SUB3
...
IF (VAR1==1) ; Read PUD
VAR1=VAR1+1 ; Read and write PUD
VAR2=1 ; Error: LUD from SUB2 not known
ENDIF
...
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