4

>BCD-4 (INT)

The Convert to BCD-4 function is used to output the 4-digit BCD equivalent of signed integer data. The original data is not changed by this function.

Data can be converted to BCD format to drive BCD-encoded LED displays or presets to external devices such as high-speed counters.

When the function receives power flow, it performs the conversion, making the result available via output Q. The function passes power flow when power is received, unless the specified conversion would result in a value that is outside the range 0 to 9999.

_____

(enable)

(ok)

TO_

BCD4

(value to be converted) —IN Q— (output parameter Q) _____

Parameters:

Parameter

Description

enable

When the function is enabled, the conversion is performed.

 

 

IN

IN contains a reference for the integer value to be converted to BCD-4.

 

 

ok

The ok output is energized when the function is performed without error.

 

 

Q

Output Q contains the BCD-4 form of the original value in IN.

 

 

GFK-0467K

Chapter 4 Series 90-30/20/Micro Instructions Set

4-95

Page 176
Image 176
GE 90-30/20/Micro manual BCD-4 INT, Parameters