[BO_BY] BOOL to BYTE conversion

Description

This instruction converts the eight BOOL type input values to a BYTE type value and applies it to the output value.

The conversion is performed as follows:

The "n" output value bit is set to 0 or 1 if the corresponding input value "INn" has value 0 or 1.

Troubleshooting

N/A

Parameters

Parameters

Declaration

Data type

Description

Default

INn

0 ≤ n ≤ 7

Input

BOOL

Input value "n"

0

OUT

Output

BYTE

Output value

0