Function Blocks
3/99 Function Block Reference Guide 71
2.22 DSW Function Block
Description
The
DSW
label stands for
Digital
Switch
. This block is part of the
Logic
and
Fast Logic
categories. It
looks like this graphically on the Control Builder.
OR
Fast Logic
Function
Sets the output of the block equal to either input A or Input B depending on the value of input SA. If input
SA (Select A) is ON, then OUT = Input A, otherwise OUT = Input B.
Input
A = 1
st
of two inputs to select from.
B = 2
nd
of two inputs to select from.
SA = Select A
Output
Out = If SA is ON, then A, else B.
Block Properties
Double click on the function block to access the function block properties dialog box.
Block Order (Read Only)
You can change the assigned execution order number by selecting “Execution Order” in the “Configure”
menu and arrange the order to suit your control strategy.
Example
Figure 2-19 shows an example of a DSW function block. The output is switched
between two digital
inputs
based on the ON or OFF state of the
control input
. Output = A input state when SA input is OFF
and B input state when SA input is ON.
Figure 2-20
DSW Function Block Example