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
Data types
Main run variables can feature the following data types:
INT
REAL
BOOL
CHAR
STRING
AXIS
Preprocessing variables can also feature the following data types:
FRAME
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)
10-10
Integer for whole values with prefix signs
Real for rational counting
Boolean TRUE and FALSE
ASCII character
Character string with alpha-numerical characters
Axis addresses and spindles
Coordinate transformations
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
Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
STRING
AXIS
FRAME
Job planning

Advertisement

Table of Contents
loading

Table of Contents