Digital demultiplexer
Block name
BD11_DIGITAL_DEMULTIPLEXER
ST call
PROGRAM BD11_TEST VAR INPUT:REAL; SELECTOR:LINT; IN1: BOOL; OUT1: LIB.CORE.V1_0.MULTIIOBOOL; FB: LIB.CORE.V1_0.BD11_DIGITAL_DEMULTIPLEXER; END_VAR FB(IN:=IN1, SEL:=SELECTOR); OUT1:=FB.OUT; END_PROGRAM
Library
LIB\CORE
Version
V1.0
Description
The block is a logical values demultiplexer. If SEL=1 then the first element of the output array OUT is a copy of the input IN. If SEL=2 then the second element of the output array is a copy of IN, etc. All other outputs are set to DEFAULT.
Inputs
Input | Type | Description | Default value |
IN | BOOL | Input value | False |
SEL | LINT | Output selector | 0 |
DEFAULT | BOOL | Default value of all outputs | False |
Outputs
Output | Type | Description |
OUT | MULTIIOBOOL | Output signal |