Siemens SINUMERIK 840DE Programming Manual page 61

Hide thumbs Also See for SINUMERIK 840DE:
Table of Contents

Advertisement

• All identifiers beginning with "E_ " are reserved for EASYSTEP programming.
Variable identifiers
In variables used by the system, the first letter is replaced by the "$" character. This
character may not be used for user-defined variables.
Examples (see "List of system variables"):
$P_IFRAME, $P_F
Leading zeroes are ignored in variables with numeric extensions (i.e., R01 is interpreted as
R1). Separators are allowed before a numeric extension.
Array identifiers
The rules for elementary variables also apply to array identifiers. It is possible to address
arithmetic variables as arrays.
Example:
R[10]=...
Data types
A variable can contain a numeric value (or several) or a character (or several), e.g., an
address letter.
The data type permitted for the variable is determined when the variable is defined. The data
type for system variables and predefined variables is fixed.
Elementary variable types/data types are:
Type
INT
REAL
BOOL
CHAR
STRING
AXIS
FRAME
Identical elementary types can be combined in arrays. Up to two-dimensional arrays are
possible.
Fundamentals
Programming Manual, 10.2004 Edition, 6FC5 298-7AB00-0BP1
2.2 Language elements of the programming language
Meaning
Integers with leading sign
Real numbers (fractions with decimal
point, LONG REAL to IEEE)
Boolean values: TRUE (1) and
FALSE (0)
ASCII character specified by the
code
Character string, number of
characters in [...], maximum of 200
characters
Axis names (axis addresses) only
Geometrical parameters for
translation, rotation, scaling, and
mirroring
Fundamental Principles of NC Programming
Range of values
±(231 - 1)
±(10-300 ... 10+300)
1, 0
0 ... 255
Sequence of values with 0 ... 255
Any axis identifiers in the channel
2-15

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents