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

Hide thumbs Also See for PACSystems RX7i:
Table of Contents

Advertisement

Chapter 5. Function Block Diagram (FBD)

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
Convert Angles
Convert to BCD4 (4-digit Binary-Coded-Decimal)
Convert to BCD8 (8-digit Binary-Coded-Decimal )
Convert to INT (16-bit signed integer)
Convert to UINT (16-bit unsigned integer)
Convert to DINT (32-bit signed integer)
268
PACSystems* RX7i, RX3i and RSTi-EP CPU Programmer's Reference Manual
Description
DEG_TO_RAD:
Converts degrees to radians.
RAD_TO_DEG:
Converts radians to degrees.
For details, refer to Conversion Functions in Chapter 4.
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 Conversion Functions in Chapter 4.
DINT_TO_BD8:
Converts DINT (32-bit signed integer) to BCD8.
For details, refer to Conversion Functions in Chapter 4.
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 Conversion Functions in Chapter 4.
Converts a 16-bit string (WORD) value to INT.
Convert WORD to INT
For details, refer to
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 Conversion Functions in Chapter 4.
WORD_TO_UINT: Converts a 16-bit string (WORD) value to UINT.
Convert DWORD to DINT
For details, refer to
BCD8_TO_DINT: Converts BCD8 to DINT.
UINT_TO_DINT: Converts UINT to DINT.
For details, refer to Conversion Functions in Chapter 4.
below.
below.
GFK-2950C

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pacsystems rx3iPacsystems rsti-ep

Table of Contents