Siemens SINUMERIK 840D sl Programming Manual page 400

Nc programming
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Work preparation
3.1 Flexible NC programming
Program code
PP stop: Not programmed => default value = no PP stop
; phys. unit: 24 = [A]
;Limit values: Low = 0.0, high = 10.0
;Access rights: Not programmed => default value = 7 = key-operated switch position 0
;Initialization value: Not programmed => default value = 0.0
DEF NCK REAL PHU 13 LLI 10 APWP 3 APRP 3 APWB 0 APRB 2 ZEIT_1=12, ZEIT_2=45
;Description
;Definition of two GUD items: ZEIT_1, ZEIT_2
;Range of validity: Throughout NC
;Data type: REAL
PP stop: Not programmed => default value = no PP stop
; phys. unit: 13 = [s]
;Limit values: low = 10.0, high = not programmed => upper definition range limit
;Access rights:
; NC 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 NC
;Data type: STRING, max. 5 characters
PP stop: Not programmed => default value = no PP stop
; phys. unit: Not programmed => default value = 0 = no phys. unit
;Limit values: Not programmed => definition range limits: Low = 0, high = 255
;Access rights:
; NC 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
400
Comment
Comment
; Main program
;PUD definition
;Subprogram call
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0
NC programming

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents