Siemens SINUMERIK 840D sl Programming Manual page 26

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

Advertisement

Flexible NC programming
1.1 Variables
<name>
[<value_1>,
<value_2>,
<value_3>]
<init_value>
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
26
:
Name of variable
Note
 Maximum 31 characters
 The first two characters must be a letter and/or an underscore.
 The $ sign is reserved for system variables and must not be
Specification of array sizes for 1- to max. 3-dimensional array
variables (optional)
:
For the Initialization of array variables see "Definition and
initialization of array variables (DEF, SET, REP) (Page 45)"
:
Initialization value (optional)
See "Attribute: Initialization value (Page 32)"
For the Initialization of array variables see "Definition and
initialization of array variables (DEF, SET, REP) (Page 45)"
used.
Comment
; GUD block: Machine manufacturer
Programming Manual, 03/2013, 6FC5398-2BP40-3BA1
Job Planning

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents