Implicit Type Conversion - Siemens SINUMERIK 840D sl Programming Manual

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

Advertisement

Motion synchronous actions
10.3 Main run variables for synchronized actions
10.3.2

Implicit type conversion

Function
During value assignments and parameter transfers, variables of different data types are
assigned or transferred.
The implicit type conversion triggers an internal type conversion of values.
Possible type conversions
from
REAL
INT
BOOL
Explanations
*
1)
Results
Type conversion from REAL or INTEGER to BOOL
Result BOOL = TRUE
Result BOOL = FALSE
Type conversion from BOOL to REAL or INTEGER
Result REAL TRUE
Result INTEGER = TRUE
Type conversion from BOOL to REAL or INTEGER
Result REAL FALSE)
Result INTEGER = FALSE
648
To REAL
INT
Yes
yes*
Yes
Yes
Yes
Yes
At type conversion from REAL to INT, fractional values that are >=0.5 are rounded
up, others are rounded down (cf. ROUND function).
An alarm is output if values are exceeded.
Value <> 0 is equivalent to TRUE; value == 0 is equivalent to FALSE
BOOL
CHAR
Yes
)
1
Yes
)
1
Yes
if the REAL or INTEGER value does not equal
if the REAL or INTEGER value equals
if the BOOL value = TRUE (1)
if the BOOL value = TRUE (1)
if the BOOL value = FALSE (0)
if the BOOL value = FALSE (0)
Programming Manual, 06/2009, 6FC5398-2BP20-0BA0
STRING
AXIS
zero
FRAME
zero
Job Planning

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents