[LOGI_I] Conversion logic signals to integer value

Function block LOGI_I converts the highest logical value of 16 Boolean inputs to an integer value of 1 to 16 and issues the result at the output.

LOGI_I converts the highest logical value of 16 Boolean inputs to an integer value of 1 to 16 and issues the result at the output.

Functioning

LOGI_I converts the highest logic input [In0...[In15] to an integer value of 1 to 16 and issues the result at output [Out]. If there is no input, 0 is issued at the output.

LOGI_I indicates the value presently having logical 1 of inputs [In0]...[In15] by means of the value at output [Out]. Only the signal 1 of the highest input is evaluated.

Condition

Result

In0

In1

In2

In3…In13

In14

In15

Out

0

0

0

0

0

0

0

1

0

0

0

0

0

1

x

1

0

0

0

0

2

x

x

1

0

0

0

3

x

x

x

x

1

0

15

x

x

x

x

x

1

16

Key

x

Wildcards. Both 0 and 1 are possible.

Pins

Input

Description

Data type

Default value
Value range

In0In15

Input 0Input 15

Boolean

0

0 - No
1 - Yes

 

Output

Description

Data type

Default value
Value range

Out

Output

Integer

0

Application

LOGI_I applied for control tasks used to determine the logic input having value 1. Example: Determine the faulty component (component number).