Discrete Controllers
Discrete Controllers
Discrete Controllers
Sections: 1. Discrete Process Control 2. Ladder Logic Diagrams 3. Programmable Logic Controllers 4. Personal Computers Using Soft Logic
Sensors
Actuators
Logic Control - a switching system whose output at any moment is determined exclusively by the values of inputs No memory No operating characteristics that depend on time Also called combinational logic control
Example
Write the Boolean logic expression for the pushbutton switch system below using the following symbols: X1 = START, X2 = STOP, Y1 = MOTOR, and Y2 = POWER-TO-MOTOR. X2
Y2 Y1
X1
Solution
X2 X2
Y2= ( X1 Y1) X2 Y1
X1
Truth Table
X1+Y1
Sequencing
A switching system that uses internal timing devices to determine when to initiate changes in output variables Outputs are usually generated open loop No feedback that control function is executed Sequence of output signals is usually cyclical, as in a high production work cycle The signals occur in the same repeated pattern within each regular cycle Common sequencing devices: Timer output switches on/off at preset times Counter counts electrical pulses and stores them
Example
Construct the ladder logic diagrams for (a) the NAND gate and (b) the NOR gate. Solution:
X1 X2 C
(a) NAND
If X1 or X2 remain open then C coil is unexcited and C contact remains closed, therefore Y is on. If X1 and X2 are closed then C coil is excited and C contact is opened and Y is off
Solution
C X1 (b) NOR X2 C Y
If X1 and X2 remain open then C coil is unexcited and C contact remains closed, therefore Y is on. If X1 or X2 are closed then C coil is excited and C contact is opened and Y is off
Exercise
The production process may only be performed when the operator activates two spring activated safety switches. The switches have to be depressed and held closed together by the operator using both hands. (a) What is the truth table? (b) What is the Boolean logic expression? (c) What is the logic network diagram (in ISO symbol terminology)? (d) What is the ladder logic diagram? Assume X1 and X2 are the first and second switches and Y is the output
(a) Truth table for the operation is as follows: Where X1 is first switch, and X2 is second switch, and Y is the output of switch activation.
Inputs X1 0 0 1 1 X2 0 1 0 1 Output Y 0 0 0 1
Solution
(b) Boolean logic expression for this operation corresponds to the AND logic gate, thus: Y = X1 . X2 (c) The logic network diagram for the operation (in ISO symbol terminology) is as follows:
X1
&
X2
(d) The ladder logic diagram for the system:
X1
X2
Exercise
Create ladder logic diagram for Push Button switch
Solution
( X1 Y1) X2
Components of a PLC
Programming Device Processor & Memory I/O Module
Outputs
Inputs
PLC Programming
Graphical languages: 1. Ladder logic diagrams most widely used 2. Function block diagrams instructions composed of operation blocks that transform input signals 3. Sequential function charts series of steps and transitions from one state to the next (Europe) Text-based languages: 1. Instruction list - low-level computer language 2. Structured text high-level computer language
PLC Programming