LAB # 06
BAHRIA UNIVERSITY KARACHI CAMPUS
Department of Electrical Engineering
INDUSTRIAL AUTOMATION
LAB EXPERIMENT # 6
Motor Control Operations by Using PLC
OBJECTIVE: -
Start Stop Motor through Counter and Timer
Build the motor’s forward/reverse circuit through limit switches
EQUIPMENT:-
1. GLOFA PLC Trainer.
2. Downloading Cable.
3. GMWIN software
4. Computer.
START STOP MOTOR THROUGH COUNTER AND TIMER
PROCEDURE: -
Build a circuit in such a way that when start switch turns on, special register_T1S repeat
ON and OFF every one half second, and when timer turns on five times, counter enables
motor to operate, and operation lamp turns on. (Stop lamp turns off).
Motor stops 5 seconds after timer is activated by counter output and operation lamp
turns off (stop lamp turns on). But motor should repetitively operate until stop switch
finally turns on.
When stop switch turns on, the present value of counter should be initialized.
PLC memory assignment is configured as given in TABLE 6.1.
37
LAB# 06
TABLE 6.1 MEMORY I/O MAP OF VARIABLES
Section Indirect Variable Name I/O Allocation Comments
Input START_SWITCH %IX0.0.1 Push Switch S-2
STOP_SWITCH %IX0.0.0 Push Switch S-3
Output MOTOR %QX0.3.3 MOTOR-1(-)
START__LAMP %QX0.3.2 Lamp 2
OPERATION__LAMP %QX0.3.1 Lamp 1
STOP__LAMP %QX0.3.0 Lamp 0
C1 Automatic
T1 Automatic
PLC input power supply consists of DC 24V, and PLC COM is connected to DC 0V (-),
while switch COM is connected to DC 24V(+). Motor’s power supply and LAMP consist
of DC 24V and COM terminal is connected to DC 0V (-) while motor (+) and LAMP COM
are connected to DC 24V (+).
Figure 6.1 Ladder Logic Diagram
38
LAB# 06
Program Practice
Execute GMWIN and open the Project window and the Program window.
Write the program using I/O MAP.
The Figure 6.1 shows local variable list and program that built the above circuit using
counter.
Execution of Program (Using simulator)
To verify what was mentioned above, one uses a simulator, which is a characteristic of
GLOFA.
To perform an experiment to check whether there is any abnormality in the circuit and its
activation. (Refer to Figure 6.2).
The above Figure 4.1 shows a case that when the simulator is chosen to execute CPU with
the RUN(R) mode, and turn on start switch, and activate start lamp, input signal is
transmitted to counter at every second by PLC’s special register_T1S for counting.
Once counter’s counting reaches the set value (PV=5), counter output Q is activated to
operate motor that turns on operation lamp then.
Timer is activated by counter’s reaches output, and once the set time (PT=5) is reached,
RESET is activated to initialize counter and stop motor. Then operation lamp turns off and
stop lamp turns on.
If stop switch turns on after repetitively executing (2) and (3), all actions stop and start lamp
turns off. Counter’s proceeding value is initialized too.
To stop simulator, just click shortcut in its right upper portion.
Figure 6.2 Simulator
39
LAB# 06
Connection Diagram with the Equipment as sown in Figure 6.3.
Figure 6.3 Connection Diagram
MOTOR FORWARD REVERSE OPERATION
PROCEDURE: -
Build the motor’s forward/reverse circuit by detecting the positions of upper limit (sensor-4) and lower
limit (sensor-5) using limit switch when the appliance moves from side to side. When switch start turns
on, motor starts, and the appliance moves to the lower limit. But when the position is detected at the
lower limit, motor moves to the upper limit, and when the position is detected at the upper limit, motor
moves back to the lower limit causing repetitive operation. If stop switch turns on during operation,
motor stops. PLC I/O MAP is configured as given in TABLE 6.2.
TABLE 6.2 MEMORY I/O MAP OF VARIABLES
Section Indirect Variable Name I/O Allocation Comments
Input START %IX0.0.0 PUSH SWITCH S-2
STOP %IX0.0.1 PUSH SWITCH S-3
LS01 %IX0.0.3 SENSOR -5
LS02 %IX0.0.2 SENSOR -4
Output OUT_20 %QX0.2.0 MOTOR-2(+)
OUT_21 %QX0.2.1 MOTOR-2(-)
OUT_30 %QX0.3.0 MOTOR-2(-)
OUT_31 %QX0.3.1 MOTOR-2(+)
40
LAB# 06
CONNECTIONS
1) PLC input power supply consists of DC 24V, and PLC COM is connected to DC 0V (-) while
switch COM is connected to DC 24V (+).
2) PLC output power supply consists of DC 24 V, and COM terminal of the number 2 slot
(%QX0.2.0 ~ QX0.3.7) is connected to DC 24 V (+) while COM terminal of the number 3 slot
(%QX0.3.0 ~ QX0.2.7) is connected to DC 0V (-).
3) %QX0.2.0 and %QX0.3.1 are connected to motor’s (+) terminal, and %QX0.2.1 and %QX0.3.0
are connected to motor’s (-) terminal.
PRACTICE PROGRAM:
1) Execute GMWIN.
2) Open the project window and the program window.
3) Write a program using normally open contact point, normally closed contact point, and
output coil.
5) The Figure 6.4 shows program that contains an example of motor’s upper/lower limit linear
movement.
41
LAB# 06
LADDER LOGIC DIAGRAM
Figure 6.4 Ladder Logic Diagram
42
LAB# 06
EXECUTION OF PROGRAM (Using Simulator)
1) To verify what was mentioned above, one uses a simulator, which is a characteristic of
GLOFA to perform an experiment to check whether there is any abnormality in the circuit
and its activation.
Figure 6.5 Simulator
(1) The figure 6.5 shows that when the simulator is chosen to execute CPU with the RUN (R)
mode, and turn on the number 0(%IX0.0.0) of START input slot “0”, output
OUT_20(%QX0.2.0) and OUT_30(%QX0.3.0) are activated to start motor.
(2) If one turns on START switch (%IX0.0.0), it is locked up by M00, and M01 is activated,
and motor moves to the lower limit position because output OUT_20(%QX0.2.0) and
OUT_30(%QX0.3.0) are activated by M01 . If LS01 is detected at the lower limit position,
M01 is turned off, and M02 is activated, and motor moves to the upper limit position
because output OUT_21 (%QX0.2.1) and OUT_31(%QX0.3.1) are activated. If LS02 is
detected at the upper limit position, M02 is turned off, and M01 causes the appliance to
move back to the lower limit position and repetitively operate until one presses STOP
switch.
(3) To stop the simulator, just click shortcut [x] in its right upper portion.
43
LAB # 06
Connection Diagram with Equipment as shown in Figure 6.6:
Figure 6.6 Connection Diagram
44
LAB# 06
Lab Exercise
Q1. Design the ladder logic which meets the motor start and stop mechanism through above mentioned
procedure and in which counter and timer positions are interchanged.
Teacher Signature: __________________
Student Registration No: __________________
45