Assignments - Siemens SINUMERIK 840D sl Programming Manual

Job planning
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

1.5

Assignments

1.5
Function
Values of a suitable type can be assigned to the variables/arithmetic parameters in the
program.
Programming
Assignments to axis addresses (traversing instructions) always require a separate block to
variable assignments. Assignment to axis addresses (traverse instructions) must be in a
separate block from the variable assignments.
Parameters
Assignment to string variable
CHARs and STRINGs distinguish between upper and lower case.
If you want to include an ' or " in the string, put it in single quotes '...'.
Example:
MSG("Viene lavorata l'''ultima figura")
displays the text 'Viene lavorata l'ultima figura' on the screen.
The string can contain non-displayable characters if they are specified as binary or
hexadecimal constants.
Example
R1=10.518 R2=4 VARI1=45
X=47.11 Y=R2
R1=R3 VARI1=R4
R4=-R5 R7=-VARI8
Job planning
Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
;Assignment of a numeric value
;Assignment of a suitable type variable
;Assignment with opposite sign
;(only permitted for INT and REAL types)
Flexible NC programming
1.5 Assignments
1-17

Advertisement

Table of Contents
loading

Table of Contents