Siemens SINUMERIK 840D sl Programming Manual page 399

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

Advertisement

<type>:
<phys_unit>:
<limit values>:
<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
NC programming
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0
Data type:
INT:
REAL:
BOOL:
CHAR:
STRING[<MaxLength>]:
AXIS:
FRAME:
See "Data types (Page 423)"
Physical unit (optional)
PHU <unit>:
Physical unit
See "Attribute: Physical unit (PHU) (Page 410)"
Lower/upper limit value (optional)
LLI <limit val‐
Lower limit value (lower limit)
ue>:
ULI <limit val‐
Upper limit value (upper limit)
ue>:
See "Attribute: Limit values (LLI, ULI) (Page 408)"
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 used.
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 417)"
Initialization value (optional)
See "Attribute: Initialization value (Page 406)"
For the Initialization of array variables, see "Definition and initialization of
array variables (DEF, SET, REP) (Page 417)"
Comment
; GUD block: Machine manufacturer
Work preparation
3.1 Flexible NC programming
Integer with sign
Real number (LONG REAL to IEEE)
Truth value TRUE (1)/FALSE (0)
ASCII character
Character string of a defined length
Axis/spindle identifier
Geometric data for a static coordinate trans‐
formation
399

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents