Assignments - Siemens sinumerik 840d Programming Manual

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

Advertisement

Flexible NC Programming
1
1.5

Assignments

840D
840D
NCU 571
NCU 572
NCU 573
1.5

Assignments

Values of matching types can be assigned to
variables/arithmetic parameters in the program.
The assignment is always made in a separate block;
up to two assignments are possible per block.
Assignments to axis addresses (traversing
instructions) always require a separate block to
variable assignments.
Programming example
R1=10.518 R2=4 VARI1=45
X=47.11 Y=R2
R1=R3 VARI1=R4
R4=-R5 R7=-VARI8
Assignment to string variables
A distinction is made between upper and lower case
characters within a CHAR or STRING.
If ' or " are to be included in the character string,
these should be enclosed in '...'.
Example:
MSG("Viene lavorata l' ''ultima
figura")
displays the text 'Viene lavorata l'ultima figura' on the
screen.
Non-displayable characters can be stored in the
string as binary or hexadecimal constants.
1-38
FM-NC
810D
840Di
Assignment of numeric value
Assignment of a variable of matching type
Assignment of opposite leading sign (only
allowed with types INT and REAL)
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition
04.00
1
 Siemens AG 2000. All rights reserved

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik fm-ncSinumerik 840diSinumerik 810d

Table of Contents