Possible Type Conversions - Siemens sinumerik 840d Programming Manual

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

Advertisement

04.00
1
840D
840D
NCU 571
NCU 572
NCU 573
1.9

Possible type conversions

Type conversion on assignment
The constant numeric value, variable or expression
assigned to a variable must be compatible with the
type of this variable. If this is this case, the type is
automatically converted when the value is assigned.

Possible type conversions

to
REAL
from
REAL
yes
INT
yes
BOOL
yes
CHAR
yes
STRING
AXIS
FRAME
* On type conversion from REAL to INT, a fraction
>= 0.5 is rounded up, otherwise the fraction is
rounded down (same effect as ROUND function)
1)
Values <> 0 are TRUE, values == 0 are FALSE
2)
If the value is in the permitted value range
3)
If only 1 character
4)
String length 0 = FALSE, otherwise TRUE
If a value is greater than the target range on
conversion, an error message is generated.
Additional notes
If mixed types occur in an expression, a type
conversion is performed automatically.
 Siemens AG 2000. All rights reserved
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition
FM-NC
810D
840Di
INT
BOOL
yes*
yes
yes
yes
yes
yes
yes
yes
yes
1.9
Possible type conversions
CHAR
STRING
1)
yes*
yes
1)
2)
yes
yes
yes
yes
1)
4)
yes
3)
yes
Flexible NC Programming
AXIS
FRAME
yes
yes
1
1-45

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik fm-ncSinumerik 840diSinumerik 810d

Table of Contents