Specifications

sigmadue - IEC 61131-3 Function Block Library
26
1-3-19 DIGITAL DECODER
FB Prototype
DECODER_8
Input parameters
Output parameters
Description
This function block selects one of 8 digital outputs, according to binary selection
applied on inputs
DS_1
,
DS_2
and
DS_3
.
D_SEL
enables the decoder. Disabling
D_SEL
, the output holds the previous value.
RESET
will reset all the conditions.
Digital
selection
When
D_SEL
is active, the input binary value is decoded as follows.
Default values
Label Type Description
DS_1 BOOL Digital selection input
DS_2 BOOL Digital selection input
DS_3 BOOL Digital selection input
D_SEL BOOL Decoder enable input
RESET BOOL Decoder reset input
Label Type Description
DO_1...DO_8 BOOL Digital output 1... 8
DS_1
DS_2
DS_3
D_SEL
RESET
BOOL
BOOL
BOOL
BOOL
BOOL
¡
¡
¡
¡
¡
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
DO_1
DO_2
DO_3
DO_4
DO_5
DO_6
DO_7
DO_8
¡
¡
¡
¡
¡
¡
¡
¡
DS_3 DS_2 DS_1 OUT
FALSE FALSE FALSE DO_1
FALSE FALSE TRUE DO_2
FALSE TRUE FALSE DO_3
FALSE TRUE TRUE DO_4
TRUE FALSE FALSE DO_5
TRUE FALSE TRUE DO_6
TRUE TRUE FALSE DO_7
TRUE TRUE TRUE DO_8
Input Default values
DS_1... DS3 FALSE
D_SEL FALSE
RESET FALSE
Output Default values
DO_1... DO8 FALSE