Siemens SINUMERIK 840D sl Programming Manual page 19

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

Advertisement

BOOL
DEF BOOL IF_TOO_MUCH
DEF BOOL IF_TOO_MUCH=1 or
DEF BOOL IF_TOO_MUCH=TRUE or
DEF BOOL IF_TOO_MUCH=FALSE
CHAR
DEF CHAR GUSTAV_1=65
DEF CHAR GUSTAV_1="A"
STRING
DEF STRING[6] MUSTER_1="BEGIN"
AXIS
DEF AXIS AXIS_NAME=(X1)
FRAME
DEF FRAME BEVEL_1
Note
A variable of type AXIS can contain an axis identifier and a spindle identifier of a channel.
Note
Axis names with an extended address must be enclosed in parentheses.
Job planning
Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
1.2 Variable definition (DEF user-defined variables LUD, GUD, PUD)
This creates a variable of type BOOL with the
name IF_TOO_MUCH.
System initializes with zero (FALSE).
This creates a variable of type BOOL with the
name IF_TOO_MUCH.
A code value for the corresponding ASCII
character or the ASCII character itself
can be assigned to a variable of type CHAR (code
value 65 corresponds to letter "A").
Variables of type string can contain a string
(sequence of characters). The maximum number
of characters is enclosed in square brackets after
the variable type.
The variables of type AXIS have the name
AXIS_NAME and contain the axis designation of a
channel - here X1.
(Axis names with extended address are specified
within parentheses.)
Variables of type FRAME have names like
BEVEL_1.
Flexible NC programming
1-5

Advertisement

Table of Contents
loading

Table of Contents