Siemens Sinumerik 840D sl Programming Manual page 28

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

Advertisement

Flexible NC programming
1.1 Variables
Examples
Example 1: Definition of user variables in the data block for machine manufacturers
Program code
%_N_MGUD_DEF
$PATH=/_N_DEF_DIR
DEF CHAN REAL PHU 24 LLI 0 ULI 10 STROM_1, STROM_2
; Description
; Definition of two GUD items: STROM_1, STROM_2
; Range of validity: Throughout the channel
; Data type: REAL
; PP stop: Not programmed => default value = no PP stop
; Physical 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 the NCK
; Data type: REAL
; PP stop: Not programmed => default value = no PP stop
; Physical unit: 13 = [s]
; Limit values: low = 10.0, high = not programmed => upper definition range limit
; 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
28
; GUD block: Machine manufacturer
Programming Manual, 02/2011, 6FC5398-2BP40-1BA0
Job planning

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de slSinumerik 828d

Table of Contents