[I_LOGI] Conversion integer value to logic signals
Function block I_LOGI sets the Boolean output to 1 in dependence of the integer input value.
I_LOGI sets the Boolean output to 1 in dependence of the integer input value.
Functioning
I_LOGI in dependence of input value [In] = 1…16 sets the corresponding output [Out0]...[Out15] to 1. All other outputs are set to 0.
Condition | Result | |||||
|---|---|---|---|---|---|---|
In | Out0 | Out1 | Out2 | Out3…Out13 | Out14 | Out15 |
<=0 | 0 | 0 | 0 | 0 | 0 | 0 |
1 | 1 | 0 | 0 | 0 | 0 | 0 |
2 | 0 | 1 | 0 | 0 | 0 | 0 |
3 | 0 | 0 | 1 | 0 | 0 | 0 |
15 | 0 | 0 | 0 | 0 | 1 | 0 |
>=16 | 0 | 0 | 0 | 0 | 0 | 1 |
Application
I_LOGI is used for control tasks, e.g., to switch on the logic output for this component (enable component no. 2 = 1) in dependence of the continuous number of a component (request aggregate no. 2).
Troubleshooting
If the value of input [In] is smaller than 0, all outputs are set to 0. If the value of input [In] is greater than 15, all outputs [Out15] are set to 1.