EasyManua.ls Logo

GE PACSystems RX7i - Convert UINT or INT to BCD4

GE PACSystems RX7i
469 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 4. Ladder Diagram (LD) Programming
GFK-2950C February 2018 121
4.6.2 Convert UINT or INT to BCD4
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.
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
Allowed Operands
Optional
IN
The UINT or INT value to convert to
BCD4.
All except S, SA, SB, and SC
No
Q
The BCD4 equivalent value of the original
UINT or INT value in IN.
All except S, SA, SB, and SC
No
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.

Table of Contents

Other manuals for GE PACSystems RX7i

Related product manuals