DGU3073-Programmable Logic Controller-S7
DGU3073-Programmable Logic Controller-S7
Logic Controller
(PLC)
Prepared by:
Mohd Azhar B Ibrahim
Petrochemical Engineering Department
Tun syed Nasir Syed Ismail
Polytechnic,Johor
What does PLC mean?
Increased reliability- Once the program has been written and tested, it
can be easily downloaded to other PLCs. Since all the logic is
contained in the PLC’s memory, there is no chance of making logic
error. The program takes the place of much of the external wiring that
would normally be required for control of the process. Hardwiring,
though still required to connect field devices, is less intensive. PLCs
also offer the reliability associated with solid-state components.
PLC Unit
Power Supply
Signal
Signal to
from input
Output
devices;
Input/ Output/ Devices;
switches, Center Processing
Signal Signal Motor,
sensors Unit
Module Module conveyer,
etc.
lamp etc.
Memory
Programming
Device
● The CPU writes the outputs from the process image output area to
the physical outputs.
● The CPU reads the physical inputs just prior to the execution of the
user program and stores the input values in the process image input
area. This ensures that these values remain consistent throughout the
execution of the user instructions.
● The CPU executes the logic of the user instructions and updates the
output values in the process image output area instead of writing to
the actual physical output
Power Supply
I/O Sections
I/O Sections
Output devices such as Indicator lamps, Buzzer, Motors
IO LIST
Existing Tag Description
DO DI AO AI
RM1D AGITATOR(REACTOR D) x
SSV7D VALVE(SST7 TO SWT1) x
Jacket Heating/Cooling Control
TCV-IFS(C) valves x
Programming Devices
Counters
- Do not physically exist.
- Simulated counters; can be programmed to count pulses.
- Counters can be count up, down or both up and down.
Timers
- Many varieties and increments.
- Most common type is an on-delay type.
Data Storage
Registers assigned to store data when the power is
removed from the PLC.
Allan Bradley
Siemens S7
Yokogawa
Toshiba
Emerson
PLC
Programming
Session
data
Normally-opened
input
Normally-closed
input
Output
AND : Series
connection
OR : Parallel
connection
NOT : Normally-closed
input
A B
i. ii.
L1
S1 S2 L1
S1 S2
24V 24V
Answer……
i. ii.
S1 L1
S1 S2 L1
S2
END
END
B C
C
B C
Exercise 2……
A B C L L = C+(A.B)
0 0 0 0
A B L
0 0 1 1
0 1 0 0
0 1 1 1
1 0 0 0 C
1 0 1 1
Ladder diagram
1 1 0 1
1 1 1 1
Mnemonic
Code
{
1st digit 3rd & 4th 1st digit 3rd & 4th
is ‘0’ to digits is ‘1’ to digits
represents represent represents represent
input data input bit on output output bit
the PLC data on the PLC
2nd digit 2nd digit
represents represents
channel channel
0000 1000
01001
0001
0002
Answer……..
00000 LD 0000
00001 OR 0001
00002 OR 0002
0002 0003
Answer……..
00001 OR 0002
00002 LD 0001
0004 AND LD -
00006 END(01)
Exercise……
0004
0005
Answer…..
00000 LD 0000
00002 LD 0002
00004 OR 0004
00005 OR 0005
00008 END(01)
Exercise……
0001 1001
01000
0002
01000
0005 1002
0003
Answer……
00000 LD 0000
00001 OR 0001
00002 OR 0002
00003 OR 0003
1 2
3
Answer……
Tin Conveyor
Motor 1 (M1)
Pilot Lamp (L1)
Box Conveyor
Motor 2 (M2)
Make some changes to practical A so that when conveyor (M1) stops,
delays for 5 seconds then the box conveyor (M2) moves. When M2
moves, the Pilot Lamp turns On to indicate the Box Conveyor is
moving. When the Push button is pressed, the counter will be reset.
Tin Conveyor
Motor 1 (M1)
Pilot Lamp (L1)
Box Conveyor
Motor 2 (M2)
EXERCISE
When input push button 0000 is being pressed 5 times, then the output
01000 will turn ON. When output 01000 is ON, TIM 001 will activate and
after 3 seconds, output 01001 will trun OFF. Use input 00001 as the reset
button
The light will turn ON after the switch 1 is pressed 5 times. It will turn
OFF after time delay of 5 seconds and switch 2 will deactivate all system
operation”. Construct a ladder diagram from the statement above
The oven is heated by an electrical heater, and in the side there are
ventilation motors to cool the oven after use.Here is a simplification of how the
cooling PLC program should work:
1.HEATING ON:
Heating element and cooling fans turn on.
2.HEATING OFF:
Heating element off and off delay timer starts counting down.
3.TIMER DONE:
Cooling fans turn off.
The electrical heater and the cooling fans should turn on simultaneously.
Why the cooling fans has to turn on too, is to circulate the hot air and
spread the heat
START1 OR MOTOR1 AND NOT STOP1 AND NOT MOTOR2
Motor 1 (active)
START2 OR MOTOR2 AND NOT STOP2 AND NOT MOTOR1
Motor 2 (active)
Paint spraying system where boxes are fed by
gravity through a feeder magazine one at a time
onto a moving conveyor belt. Upon the start
signal, boxes are pushed towards the conveyor
by valve
1.This is a cylinder which extends and retracts
which operates switches S1 and S2 respectfully.
A spraying nozzle paints each box as it passes
under the paint spray controlled by valve
2. A sensor (S3) counts each box being sprayed.
When 6 boxes have been painted the valve 2
shuts off (paint spray) and valve 1 (cylinder)
stops moving boxes onto the conveyor. Three
seconds later the conveyor stops moving and
the hopper with its load moves forward (valve 3)
where it is emptied. Ten seconds later the
hopper returns to the original position. The cycle
is then complete and waits for a start signal
again.
A normally open start and normally closed
stop pushbuttons are used to start and stop
the process. When the start button is
pressed, solenoid A energizes to start filling
the tank. As the tank fills, the empty level
sensor switch closes. When the tank is full,
the full level sensor switch closes. Solenoid
A is de-energized. Mixer motor starts and
runs for 3 minutes to mix the liquid. When
the agitate motor stops, solenoid B is
energized to empty the tank. When the
tank is completely empty, the empty sensor
switch opens to de-energize solenoid B.
The start button is pressed to repeat the
sequence.