Conversion instructions
121
Part II IEC Instructions
BOOL16_TO_WORD
BOOL16 to WORD
To add an enable input and enable output to the instruction, select [With EN/ENO] from the
"Instructions" pane (LD, FBD or IL editor). To reuse an instruction select "Recently used" from the
context menu or press <Ctrl>+<Shift>+<v> in the programming window.
PLC types
Availability of BOOL16_TO_WORD (see page 1318)
Data type Comment
ARRAY of BOOL ARRAY with 16 elements
WORD output variable
POU header:
Body with and without EN/ENO:
Description
This function copies a variable of the special data type BOOL16 (see page 55) (an array with 16
elements of the data type BOOL or a DUT of 16 members of the data type BOOL) at the input to
the data type WORD at the output.
Data types