Chapter 5. Function Block Diagram (FBD)
268
PACSystems* RX7i, RX3i and RSTi-EP CPU Programmer's Reference Manual
GFK-2950C
5.12
Type Conversion Functions
The Conversion functions change a data item from one number format (data type) to another. Many
programming instructions, such as math functions, must be used with data of one type. As a result,
data conversion is often required before using those instructions.
Function
Description
Convert Angles
DEG_TO_RAD: Converts degrees to radians.
RAD_TO_DEG: Converts radians to degrees.
For details, refer to
Convert to BCD4 (4-digit Binary-Coded-Decimal)
UINT_TO_BDC4: Converts UINT (16-bit unsigned integer) to BCD4.
INT_TO_BCD4: Converts INT (16-bit signed integer) to BCD4.
For details, refer to
Convert to BCD8 (8-digit Binary-Coded-Decimal )
DINT_TO_BD8: Converts DINT (32-bit signed integer) to BCD8.
For details, refer to
Convert to INT (16-bit signed integer)
BCD4_TO_INT: Converts BCD to INT.
UINT_TO_INT:
Converts UINT to INT
DINT_TO_INT:
Converts DINT to INT..
REAL_TO_INT:
Converts REAL to INT.
For details, refer to
Converts a 16-bit string (WORD) value to INT.
For details, refer to
Convert to UINT (16-bit unsigned integer)
BCD4_TO_UINT: Converts BCD4 to UINT.
INT_TO_UINT:
Converts INT to UINT.
DINT_TO_UINT: Converts DINT to UINT.
REAL_TO_UINT: Converts REAL to UINT.
For details, refer to
WORD_TO_UINT: Converts a 16-bit string (WORD) value to UINT.
For details, refer to
Convert to DINT (32-bit signed integer)
BCD8_TO_DINT: Converts BCD8 to DINT.
UINT_TO_DINT: Converts UINT to DINT.
For details, refer to
Summary of Contents for PACSystems RSTi-EP
Page 357: ......
Page 466: ...Chapter 9 Diagnostics GFK 2950C February 2018 451 ...