Siemens SINUMERIK 840D sl Programming Manual page 27

Job planning
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Program code
;Access rights:
;Part program: Write/read = 3 = end user
;OPI: Write = 0 = Siemens, read = 3 = end user
;Initialization value: ZEIT_1 = 12.0, ZEIT_2 = 45.0
DEF NCK APWP 3 APRP 3 APWB 0 APRB 3 STRING[5] GUD5_NAME = "COUNTER"
;Description
;Definition of one GUD item: GUD5_NAME
;Range of validity: Throughout the NCK
;Data type: STRING, max. 5 characters
PP stop: Not programmed => default value = no PP stop
;Physical unit: Not programmed => default value = 0 = no phys. unit
;Limit values: Not programmed => definition range limits: low = 0, high = 255
;Access rights:
;Part program: Write/read = 3 = end user
;OPI: Write = 0 = Siemens, read = 3 = end user
;Initialization value: "COUNTER"
M30
Example 2: Global program and local user variables (PUD/LUD)
Program code
PROC MAIN
DEF INT VAR1
...
SUB2
...
M30
Program code
PROC SUB2
DEF INT VAR2
...
IF (VAR1==1)
VAR1=VAR1+1
VAR2=1
ENDIF
SUB3
...
M17
Job Planning
Programming Manual, 03/2013, 6FC5398-2BP40-3BA1
Comment
Comment
;Main program
;PUD definition
;Subprogram call
Comment
;Subprogram SUB2
;LUD DEFINITION
;Read PUD
;Read & write PUD
;Write LUD
;subprogram call
Flexible NC programming
1.1 Variables
27

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents