Chapter 4. Ladder Diagram (LD) Programming
122
PACSystems* RX7i, RX3i and RSTi-EP CPU Programmer's Reference Manual
GFK-2950C
4.6.3
Convert DINT to BCD8
When DINT_TO_BCD8 receives power flow, it converts the input signed double-
precision integer (DINT) data into the equivalent 8-digit Binary-Coded-Decimal (BCD)
values, which it outputs to Q. DINT_TO_BCD8 does not change the original DINT data.
Note:
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 99,999,999.
Operands
Parameter Description
Allowed Operands
Optional
IN
The DINT value to convert to BCD8
All except S, SA, SB, and SC No
Q
The BCD8 equivalent value of the original DINT value in IN All except S, SA, SB, and SC No
Example
Whenever input %I00002 is set and no errors exist, the
double-precision signed integer (DINT) at input location
%AI0003 is converted to eight BCD digits and the result is
stored in memory locations %L00001 through %L00002.
Summary of Contents for PACSystems RSTi-EP
Page 357: ......
Page 466: ...Chapter 9 Diagnostics GFK 2950C February 2018 451 ...