Siemens SINUMERIK 840Di sl Programming Manual page 63

Hide thumbs Also See for SINUMERIK 840Di sl:
Table of Contents

Advertisement

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.
Constants
Integer constants
Integer with or without sign, e.g., for assigning a value to an address
Examples:
X10.25
X -10.25
X0.25
X.25
X=-.1EX-3
Note
If, in an address, which permits decimal point input, more decimal places are specified than
actually provided for the address, then they are rounded to fit the number of places provided.
X0 cannot be replaced with X.
Example:
Do not replace G01 X0 with G01 X!
Fundamentals
Programming Manual, 11/2006, 6FC5398-1BP10-2BA0
2.2 Language elements of the programming language
Meaning
Integers with 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
;Assignment of the value +10.25 to address X
;Assignment of the value –.25 to address X
;Assignment of the value +0.25 to address X
;Assignment of the value +0.25 to address X without leading "0"
;Assignment of the value –.1*10-3 to address X
Fundamental Principles of NC Programming
Range of values
-2147483646 ... +2147483647
±(2,2*10
... 1,8*10
-308
1, 0
0 ... 255
Sequence of values with 0 ... 255
Any axis identifiers in the channel
)
+308
63

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents