Convert Dint To Bcd8 - GE PACSystems RX7i Cpu Programmer's Reference Manual

Hide thumbs Also See for PACSystems RX7i:
Table of Contents

Advertisement

Chapter 4. Ladder Diagram (LD) Programming
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
IN
The DINT value to convert to BCD8
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.
122
PACSystems* RX7i, RX3i and RSTi-EP CPU Programmer's Reference Manual
Allowed Operands
All except S, SA, SB, and SC No
Optional
GFK-2950C

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pacsystems rx3iPacsystems rsti-ep

Table of Contents