Conversion Functions - GE PACSystems RX7i Cpu Programmer's Reference Manual

Hide thumbs Also See for PACSystems RX7i:
Table of Contents

Advertisement

4.6 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
Convert to BCD4 (4-digit Binary-Coded-Decimal)
UINT_TO_BCD4
Converts UINT (16-bit unsigned integer) to BCD4
INT_TO_BCD4
Converts INT (16-bit signed integer) to BCD4
Convert to BCD8 (8-digit Binary-Coded-Decimal)
DINT_TO_BCD8
Converts DINT (32-bit signed integer) to BCD8
Convert to INT (16-bit signed integer)
BCD4_TO_INT
Converts BCD4 to INT
UINT_TO_INT
Converts UINT to INT
DINT_TO_INT
Converts DINT to INT
REAL_TO_INT
Converts REAL to INT
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
Convert to DINT (32-bit signed integer)
BCD8_TO_DINT
Converts 8-digit Binary-Coded-Decimal (BCD8) to DINT
UINT_TO_DINT
Converts UINT to DINT
INT_TO_DINT
Converts INT to DINT
REAL_TO_DINT
Converts REAL (32-bit signed real or floating-point values) to DINT
LREAL_TO_DINT
Converts REAL (64-bit signed real or floating-point values) to DINT
Convert to REAL (32-bit signed real or floating-point values)
BCD4_TO_REAL
Converts BCD4 to REAL
BCD8_TO_REAL
Converts BCD8 to REAL
UINT_TO_REAL
Converts UINT to REAL
INT_TO_REAL
Converts INT to REAL
DINT_TO_REAL
Converts DINT to REAL
LREAL_TO_REAL
Converts LREAL to REAL
Convert to LREAL(64-bit signed real or floating-point values)
DINT_TO_LREAL
Converts DINT to LREAL
REAL_TO_LREAL
Converts REAL to LREAL
Truncate
TRUNC_DINT
Rounds a REAL number down to a DINT (32-bit signed integer) number
TRUNC_INT
Rounds a REAL number down to an INT (16-bit signed integer) number
GFK-2950C
Chapter 4. Ladder Diagram (LD) Programming
February 2018
119

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pacsystems rx3iPacsystems rsti-ep

Table of Contents