Conversion instructions
122
Part II IEC Instructions
BOOLS_TO_WORD
16 Variables of the data type BOOL to WORD
The inputs Bool0 to Bool15 need not be allocated in LD or FBD, or used explicitly in the ST editor's
formal list of parameters. Such unused inputs are assumed to be FALSE. No program code is
generated for these inputs (or for any input allocated with the constants TRUE or FALSE). Program
code is only generated for inputs to which a variable is allocated.
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 BOOLS_TO_WORD (see page 1318)
Description
This function converts 16 values of the data type BOOL bit-wise to a value of the data type WORD.