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.
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
st
A = 1
of two inputs to select from.
nd
B = 2
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.
3/99
OR
Fast Logic
Figure 2-20 DSW Function Block Example
Function Block Reference Guide
Function Blocks
71