Conversion instructions
134
Part II IEC Instructions
BOOLS_TO_DWORD
32 Variables of the data type BOOL to DWORD
The inputs Bool0 to Bool31 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_DWORD (see page 1318)
Variable Data type Function
BOOL0 ...
BOOL31
BOOL 32 input variables of the data type BOOL
DWORD output variable
POU header:
etc. to Bool31
Description
This function converts 32 values of the data type BOOL bit-wise to a value of the data type
DWORD.
Data types