Output
Description
Status
Data type: Boolean
•
If an invalid combination is present at the inputs, the
Status
output
changes to 0 (error).
•
If a correct input combination is present, the function block resets
the error. The
Status
output changes back to 1 in this case.
Table 41: Parameter
Parameter
Description
Conversion mode
•
One-hot
Exactly one input = 1. If several inputs = 1 or no input = 1, then the
function block evaluates this as an error.
•
Highest dominant
At least one input = 1. The input with the highest value determines
the decimal value at the output. If no input = 1, then the function
block evaluates this as an error.
•
Lowest dominant
At least one input = 1. The input with the lowest value determines
the decimal value at the output. If no input = 1, then the function
block evaluates this as an error.
Range offset
0 … 31
A function block covers 8 decimal values.
With the
Range offset
parameter, you determine which value range the
function block converts.
The decimal value at the
Result
output depends on the area offset and
the number of the input and is calculated using this formula:
Decimal value at the Result output = N +8 × R
•
N = Number of the input
•
R = Area offset
Example for Range offset = 0:
•
Input 0 +8 × 0 => decimal value at the
Result
output = 0
•
Input 7 +8 × 0 => decimal value at the
Result
output = 7
Example for Range offset = 31:
•
Input 0 +8 × 31 => decimal value at the
Result
output = 248
•
Input 7 +8 × 31 => decimal value at the
Result
output = 255
7.6.2.2.3
UInt8 to Bool V1
Overview
The function block converts a sign-free 8-bit integer value (UINT8) at the input into 8
Boolean values at
Output 1 … Output 8
.
Principle of operation
Table 42: Inputs
Input
Description
Input 1
Data type: UINT8
Table 43: Outputs
Output
Description
Output 1 … Output 8
Data type: Boolean
7
CONFIGURATION
62
O P E R A T I N G I N S T R U C T I O N S | Flexi Compact
8024589/2020-11-10 | SICK
Subject to change without notice