[BO_W] BOOL to WORD conversion

Description

This instruction converts the 16 BOOL type input values to a WORD 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 ≤ 15

Input

BOOL

Input value "n"

0

OUT

Output

WORD

Output value

0