The BTIGAPC function will transfer a combination of up to 16 binary inputs INx
where 1≤x≤16 to an integer. Each INx represents a value according to the table
below from 0 to 32768. This follows the general formula: INx = 2
x-1
where
1≤x≤16. The sum of all the values on the activated INx will be available on the
output OUT as a sum of the values of all the inputs INx that are activated. OUT is
an integer. When all INx where 1≤x≤16 are activated that is = Boolean 1 it
corresponds to that integer 65535 is available on the output OUT. BTIGAPC
function is designed for receiving up to 16 booleans input locally. If the BLOCK
input is activated, it will freeze the output at the last value.
Values of each of the different OUTx from function block BTIGAPC for 1≤x≤16.
The sum of the value on each INx corresponds to the integer presented on the
output OUT on the function block BTIGAPC.
Name of input Type Default Description Value when
activated
Value when
deactivated
IN1 BOOLEAN 0 Input 1 1 0
IN2 BOOLEAN 0 Input 2 2 0
IN3 BOOLEAN 0 Input 3 4 0
IN4 BOOLEAN 0 Input 4 8 0
IN5 BOOLEAN 0 Input 5 16 0
IN6 BOOLEAN 0 Input 6 32 0
IN7 BOOLEAN 0 Input 7 64 0
IN8 BOOLEAN 0 Input 8 128 0
IN9 BOOLEAN 0 Input 9 256 0
IN10 BOOLEAN 0 Input 10 512 0
IN11 BOOLEAN 0 Input 11 1024 0
IN12 BOOLEAN 0 Input 12 2048 0
IN13 BOOLEAN 0 Input 13 4096 0
IN14 BOOLEAN 0 Input 14 8192 0
IN15 BOOLEAN 0 Input 15 16384 0
IN16 BOOLEAN 0 Input 16 32768 0
The sum of the numbers in column “Value when activated” when all INx (where
1≤x≤16) are active that is=1; is 65535. 65535 is the highest boolean value that can
be converted to an integer by the BTIGAPC function block.
9.10 Integer to Boolean 16 conversion IB16
SEMOD158367-1 v2
1MRK 511 423-UEN A Section 9
Logic
Bay control REC650 2.2 IEC 185
Application manual