Convert Uint Or Int To Bcd4 - GE PACSystems RX7i Cpu Programmer's Reference Manual

Hide thumbs Also See for PACSystems RX7i:
Table of Contents

Advertisement

4.6.2

Convert UINT or INT to BCD4

The function passes power flow when power is received, unless the conversion would result in a
value that is outside the range 0 to 9,999.
Tip:
Data can be converted to BCD format to drive BCD-encoded LED displays or presets to
external devices such as high-speed counters.
Operands
Parameter Description
IN
The UINT or INT value to convert to
BCD4.
Q
The BCD4 equivalent value of the original
UINT or INT value in IN.
Example - UINT to BDC4
Whenever input %I00002 is set and no errors exist, the
UINT at input location %I00017 through %I00032 is
converted to four BCD digits and the result is stored in
memory locations %Q00033 through %Q00048. Coil
%M01432 is used to check for successful conversion.
Example - INT to BCD4
Whenever input %I0002 is set and no errors exist, the INT
values at input locations %I0017 through %I0032 are
converted to four BCD digits, and the result is stored in
memory locations %Q0033 through %Q0048. Coil %Q1432
is used to check for successful conversion.
GFK-2950C
When this function receives power flow, it converts the input unsigned
(UINT) or signed single-precision integer (INT) data into the equivalent
4-digit Binary-Coded-Decimal (BCD) values, which it outputs to Q.
This function does not change the original input data. The output data can
be used directly as input for another program function.
February 2018
Chapter 4. Ladder Diagram (LD) Programming
Allowed Operands
All except S, SA, SB, and SC
All except S, SA, SB, and SC
Optional
No
No
121

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pacsystems rx3iPacsystems rsti-ep

Table of Contents