6.3.31 Register (REG)
Register description
Registers are needed in order to exchange data between different dialogs. Registers are
assigned to each dialog. These are created when the first dialog is loaded and assigned the
value 0 or an empty string.
Note
Registers must not be used directly in an OUTPUT method for generating NC code.
Programming
Syntax: REG
[x]
Description: Defines a register
Parameters: x Register index with x = 0...19;
Type: REAL or STRING = VARIANT
Registers with x ≥ 20 have already been assigned by Siemens.
Description of register value
The assignment of values to registers is configured in a method.
Note
If a new dialog is generated from an existing dialog by means of the LM function, register
content is automatically transferred to the new dialog at the same time and is available for
further calculations in the second dialog.
Programming
Syntax:
Identifier
.val =
Register value
or
Identifier
=
Register value
Description:
Parameters: Identifier Name of the register
Register value Value of register
Example
UNLOAD
REG[0] = VAR1 ; Assign value of variable 1 to register 0
Programming commands
6.3 Functions
SINUMERIK Integrate Run MyScreens (BE2)
174 Programming Manual, 12/2017, 6FC5397-1DP40-6BA1