Siemens sinumerik 840d Programming Manual page 27

Hide thumbs Also See for sinumerik 840d:
Table of Contents

Advertisement

04.00
1
840D
840D
NCU 571
NCU 572
NCU 573
If a value is not assigned to a variable when it is
defined, the system initializes it with zero.
Variables must be defined at the beginning of the
program before use. The definition must be made in
a separate block; only one variable type can be
defined per block.
Explanation
INT
REAL
BOOL
CHAR
STRING
AXIS
FRAME
name
Programming examples
Variable type INT
DEF INT NUMBER
DEF INT NUMBER=7
Variable type REAL
DEF REAL DEPTH
DEF REAL DEPTH=6.25
DEF REAL DEPTH=3.1,LENGTH=2,QUANTITY
 Siemens AG 2000. All rights reserved
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition
FM-NC
810D
840Di
Variable type Integer, i.e. whole number
Variable type Real, i.e. fraction with decimal point
Variable type Bool, i.e. 1 or 0 (TRUE or FALSE)
Variable type Char, i.e. ASCII character specified by the code 0 to 255
Variable type String, i.e. character string
Variable type Axis, i.e. axis addresses and spindles
Variable type Frame, i.e. geometrical parameters
Variable name
Flexible NC Programming
1.2
Variable definition
A variable of type INTEGER is created with
the name NUMBER.
The system initializes the variable with zero.
A variable of type INTEGER is created
with the name NUMBER. The variable is
initialized with the value 7.
A variable of type REAL is created with the
name DEPTH.
The system initializes the variable with
zero (0.0).
A variable of type REAL is created with the
name DEPTH. The initial value is 6.25.
It is also possible to define several variables
in a single line.
1
1-27

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik fm-ncSinumerik 840diSinumerik 810d

Table of Contents