Professional Documents
Culture Documents
HANDOUT # 18
1. Introduction
In this handout, we are going to study some of the application of PLC and use the concepts and programming skills we have acquired so far. The application covered here are as follows: a. Storage area with counter and comparator b. Priority Determination Design c. Packaging Line Control d. Automatic Control of Warehouse Door e. Car Park Control We will now illustrate each application in detail.
Figure 1
Network 1: Counter C1 counts up at each signal change from 0 to 1 at input CU and counts down at each signal change from 0 to 1 at input CD. With a signal change from 0 to 1 at input S, the counter value is set to the value PV. A signal change from 0 to 1 at input R resets the counter value to 0. MW200 contains the current counter value of C1. Q12.1 indicates storage area not empty.
Network 3: If the current counter value is greater than or equal to 50, the indicator lamp for storage area 50% full is lit.
Network 4: If the counter value is greater than or equal to 90, the indicator lamp for storage area 90% full is lit.
Network 5: If the counter value is greater than or equal to 100, the indicator lamp for storage area full is lit.
Figure 2
Input/Output Assignment Device Push button 1 Push button 2 Push button 3 Push button 4 (Reset) Operation The operation of the circuit is as follows: 1. Whichever player presses its switch first will automatically disable the other players switches and only his light will turn on. 2. The light will turn on a buzzer with a 10 second timer. 3. The reset switch controlled by the host will turn off the light. Input I 0.1 I 0.2 I 0.3 I 0.4 Device Buzzer Player 1 light Player 2 light Player 3 light Output Q1.0 Q1.1 Q1.2 Q1.3
LAD The ladder diagram for the above mentioned operation is given below. Network 1: Who pressed first?
I0.1 Q1.2 Q1.3 I0.4 T1 Q1.0
I0.2
Q1.1
Q1.3
I0.3
Q1.1
Q1.2
I0.4
Q1.1
Q1.2
Q1.3
Figure 3
Operation When Start push button PB1 is pressed, the box conveyor moves. Upon detection of the box, the box conveyor stops and apple conveyor starts. Part sensor will count up to 10 apples. The apple conveyor stops and box conveyor starts again. Counter will reset and operation repeats until push button PB2 is pressed.
Input/Output Assignment Device Push button 1 Push button 2 Part sensor Box sensor Input I 0.1 I 0.2 I 0.3 I 0.4 Device Output Apple conveyor Q1.0 Box conveyor Q1.1
LAD The ladder diagram for the above mentioned operation is given below. Network 1: Start Condition
I0.1 I0.2 I0.4 Q1.1
Network 3: Counter
I0.3
I0.4
MW210
Figure 4
Operation The input is an ultrasonic switch to detect the presence of an approaching vehicle. A separate photoelectric detects the passing of a vehicle by the interruption of the light beam. In response to these signals, the control circuit controls the output that drives the motor of the door for opening and closing. Input/Output Assignment Device Ultrasonic switch Photoelectric switch Door upper limit switch Door lower limit switch Input I 0.1 I 0.2 I 0.3 I 0.4 Device Motor to raise door Motor to lower door Output Q1.0 Q1.1
LAD The ladder diagram for the above mentioned operation is given below. Network 1: Raise door
I0.1 I0.3 Q1.1 Q1.0
Q1.0
Q1.1
Figure 5
Input/Output Assignment Device Sensor S1 Sensor S2 Input I 0.1 I 0.2 Device Car Park Full Sign Output Q1.1
10
LAD The ladder diagram for the above mentioned operation is given below. Network 1: Counter update
I 0.1 I 0.2
100
11