FC 115 - BCD Output

This block converts a real input to boolean outputs by converting the input to binary coded decimal (BCD) format. The input can be scaled with a gain factor, then truncated to an integer value

before the BCD conversion occurs. After conversion, the outputs write to an IMDSO14 or IMDSO15 module.

 

 

 

Outputs:

Blk

Type

Description

N

B

I/O Module Status

0 = good

1 = bad

 

 

Specifications:

Spec

Tune

Default

Type

Range

Description

S1

N

0

I

0 - 63

Expander bus I/O module address of I/O module receiving outputs of function code 115

S2

N

0

I

0 - 120

I/O module definition: hold + type + group

Hold:

0XX = go to default values on loss of control module

1XX = hold I/O module outputs on loss of control module

Type:

X0X = IMDSO15 module

X1X = IMDSO14 module

Group:

XX0 = outputs 0 to 7 (group A)

XX1 = outputs 8 to 15 (group B)

S3

N

0

I

0 or 1

Module action on I/O module failure:

0 = trip control module

1 = continue operation

S4

N

5

I

Note 1

Block address of real value to be converted to boolean

S5

N

1.000

R

Full

Gain multiplier

S6

N

2

I

2 or 4

Number of BCD digits to process

 

NOTE:

1. Maximum values are: 9,998 for the BRC-100, IMMFP11/12 31,998 for the HAC

 

 

115.1   Explanation

 

This block converts real values to boolean outputs that are written to the output groups of an IMDSO14 or IMDSO15 module in BCD format. The real input is multiplied by the gain factor, then truncated to an integer value up to 9999. Specification S6 specifies the size of the integer value. The value can be defined to have either two or four digits. A two digit integer translates to eight boolean outputs. A four digit integer translates to 16 boolean outputs. Table 115-1 shows module output capacity for all I/O modules used with this function code.

 

 

Figure 115-1 shows how each BCD digit provides four boolean outputs for a maximum of 16 boolean outputs.

 

 

The output group that the ones and tens digits of the BCD value outputs is selectable with S2. If four digits are selected (IMDSO14 modules only), the hundreds and thousands digits write to the group not selected (S2; ones digit, group definition). Within a group, the least significant digit occupies outputs four through one, and the most significant digit occupies outputs eight through five.

 

 

115.1.1  Specifications

 

S1 - SLVADR

Expander bus I/O module address of the I/O module that boolean outputs write to. Valid addresses are zero to 63.

 

S2 - SLVDEF

I/O module definition.

S3 - TRIP

Defines action of control module on I/O module failure.

0 = trip control module

1 = continue operation

 

S4 - BCDINP

Block address of BCD value to be converted to boolean outputs.

 

S5 - K

Value of the gain multiplier used to scale a real input before truncation and conversion.

 

S6 - DNUM

Number of processed BCD digits. This number must be set to two or four. Three digit inputs must be specified as four.

 

 

 

115.1.2  Output

 

N

Status of the I/O module.

0 = good

1 = bad

 

 

 

115.2   Example

 

To convert 1293.6 to boolean outputs, set the specifications:

S2 = 1, group B contains ones and tens digits.

S5 = 1.0, scaling value is 1.0.

S6 = 4, input will be four BCD digits, therefore the output is 16 boolean digits.

BCD input = 1293 (after scaling and truncation).

 

 

To convert 457.2 to boolean outputs, set the specifications:

S2 = 1, group B contains ones and tens digits.

S5 = 1.0, scaling value is 1.0.

S6 = 4, inputs are four BCD digits, therefore the output is 16 boolean digits. Although the input has

only three digits, select four because S6 must be either a two or a four.

BCD input = 0457 (after scaling and truncation).

 

NOTE:

1.Digits five through eight in group A output zeros since the input is zero.