1
Flexible NC Programming 04.00
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
1-22
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA)
−
04.00 Edition
1.1 Variables and arithmetic parameters
Function
Variables can be used instead of fixed values to
increase the flexibility of a program. You can
respond to signals such as measured values or, by
storing setpoints in the variables, you can use the
same program for different geometries.
A skilled programmer can use variable calculation
and program jumps to create a highly flexible
program archive which will considerably reduce the
programming work required.
Types of variables
The control distinguishes between three types of
variable:
User-defined variables Variables whose name and type are defined
by the user, e.g. arithmetic parameters.
Arithmetic parameters Special predefined arithmetic variables for
which address R, followed by the number, is
provided. The predefined arithmetic
variables are type REAL.
System variable Variables provided by the control which can
be processed (read/written) in the program.
System variables provide access to zero
offsets, tool offsets, actual values, measured
values on the axes, control states, etc. (See
Appendix for the meaning of the system
variables)