1
04.00 Flexible NC Programming
1.1 Variables and arithmetic
arameters
1
840D
NCU 571
840D
NCU 572
NCU 573
FM-NC 810D 840Di
ï›™
Siemens AG 2000. All rights reserved
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA)
−
04.00 Edition
1-23
Types of variables
Type
Meaning Value range
INT
Integers with leading sign ±(2
31
- 1)
REAL
Real numbers (fractions with decimal point, LONG
REAL to IEEE)
±(10
-300
… 10
+300
)
BOOL
Boolean values: TRUE (1) and FALSE (0) 1, 0
CHAR
1 ASCII character specified by the code 0 … 255
STRING
Character string, number of characters in [...],
maximum 200 characters
Sequence of values
mit 0 … 255
AXIS
Axis names (axis addresses) only All axis identifiers and
spindles of a channel
FRAME
Geometrical parameters for translation, rotation,
scaling, mirroring, see Chapter 4.
Arithmetic variables
100 arithmetic variables of type REAL are available
without any further definition under address R as
standard.
The exact number of arithmetic variables (up to
1000) is defined in machine data.
Example:
R10=5
System variables
The control provides system variables that are
available and can be processed in all current
programs.
System variables return machine and control states.
Some of the system variables cannot be assigned
values.