Overview Binary decoder

This block splits a number into individual digital outputs. Each bit of the input value controls one output, output B1 being the least significant bit by default. This way several switching states transmitted over a single address can be separated again. The opposite direction is handled by the block Binary encoder. Decimal places of the input value are rounded, negative values are treated as 0.


Inputs

WT Value Numeric value that is split into bits.



Outputs

B1..Bn Bit Becomes 1 if the corresponding bit is set in the input value, otherwise 0. The number of outputs corresponds to the parameter Number of bits.



Parameters

Number of bits Number of outputs, 1 to 16.
Bit order
  • Least significant bit first: B1 is bit 0 (value 1), B2 is bit 1 (value 2), B3 is bit 2 (value 4) and so on.
  • Most significant bit first: B1 is the most significant bit – with 8 bits this means value 128, B2 value 64 and so on.

See also: Binary encoder

See also common parameters of all function blocks.