Mod_E_PLC1 [Compatibility Mode]
Mod_E_PLC1 [Compatibility Mode]
They are used in control, through digital or analog inputs and outputs, various
types of machines or processes.
The PLC and its associated peripherals are designed to be easily integrated
into an industrial control system and easily used for all other intended
functions.
• Flexibility
• Implementing Changes and correcting errors
• Large Quantities of Contacts
• Lower Cost
• Pilot Running
• Visual Observation
• Speed of Operation
• Ladder or Boolean Programming Method
• Reliability and Maintainability
• Simplicity of Ordering Control System Components
• Documentation
• Security
• Ease of Changes by Reprogramming
Disadvantages / Precautions
CPU
Microprocessor
Input Output
Module Memory Module
Power
Supply
Programmer / Monitor
Used to communicate with circuits of the PLC.
e.g. Hand-held terminals, industrial terminal, personal computer etc.
I/O Modules
Input Module has terminals into which outside process electrical
signals, generated by sensors and transducers are entered.
Typically 4,8,12 or 16 terminals per module.
Often input and output modules have different terminals.
Some Input Field devices
M
SOL AH
PL
NO NC
• Counts down from Set Value when its execution condition (count
input) goes from OFF to ON.
• When the value reaches ZERO, the timer contact point is turned
ON.
• Its is reset to Set Value when the execution condition goes OFF.
Data Table: Stores any data associated with the control program such as
timer/counter set values and any other stored constants or variables that
are user by the control program. Retains the status of system inputs once
they have been read, and the system outputs once they have been set by
the control program. Accessible to user.
If a PLC system has 8 input modules, each with 16 terminal points, then the
input table in PLC memory (assuming 16 bit word length) will look as below:
Rack
Terminal 12
Slot
Input
15 13 10 08 06 04 02 00
0 0 0 1 000
002
Bit
address 004
007
Input module
with 16 terminals
Word
address
Limit switch has an address of 00012 for its corresponding bit in input table.
If limit switch is ON (closed), the bit 00012 will be 1; if the limit switch is OFF (open), bit will be 0.
Output Table: Array of bits that controls the status of the output devices, that
are connected to output interface circuits. Maximum number of bits in the
output table is the maximum number of field devices that can be interfaced to
the PLC.
Each connected output has a bit in the output table that correspond exactly to
the terminal to which the output is connected.
The output of timers or counters are used as internal outputs which are
generated after a time interval has expired or a count has reached a set
value.
Ladder Diagrams
Most logic control systems may be implemented with 3 basic logic functions
AND, OR, and NOT.
Most widely used language for implementing these instructions are ladder
diagrams.
A B
Y A.B=Y
Y
A
B
B Y A+B = Y
Y
A
B A B
B
D E
D E
Y
• Contacts must be “nested” (a branch circuit programmed within a branch
circuit) properly or, not at all.
A A
Y Y
B B
C D C D
Incorrect Correct
• Flow must be from left to right.
A B
Y
C D
Not
“legal”
E
A B
Y
E C C D
The addition of 2 contacts (E and C on the left) adds the path E-C-B
• Contact progression should be straight across.
A B
Y
C D E
Incorrect
A D B
Y
C E
Process Scanning Considerations
PLCs function by scanning their operational programs. Each PLC operational
cycle is made up of three separate parts:
• Input scan
• Program scan
• Output scan
INPUT OUTPUT
INPUT USER OUTPUT
STATUS STATUS
TERMINALS PROGRAM TERMINALS
TABLE TABLE
00000
10000
Machine ON if it is already ON.
10000 How to put OFF the machine ??
00000
00001 10000
10000
Forward / Reverse Control
Each directions coil has its own start button. The single stop button
stops either coil’s operation. STOP must be pushed before changing
direction. Interlocks are provided so that both outputs cannot be
energized at the same time. It can also be used for low-speed/high-
speed or part-up/part-down control system.
00001 – stops operation in either direction
00002 – starts forward motion (10007)
00003 – starts reverse motion (10008)
10007
10008
Automatic Weigh Station
Consider a conveyor system in which an automatic weigh station activates a
trap door or diverter in the event an overweight item passes over the weigh
station. The trap door opens immediately and remains open for 4 seconds to
allow sufficient time for the item to drop through to the overweight track (For
the system to work properly, it is necessary for successive items on the
conveyor to be separated by distances of at least 5 seconds or so).
Trap door
Input Variables.
00000 – pressure switch connected to terminal 00 of input module
Output Variables
10000 – solenoid connected to terminal 00 of output module
00000
TIM000 10000
10000
10000
TIM000
# 0040
Timer TIM000 counts time based intervals of 0.1 sec (40 counts will
mean an elapsed time of 4 sec)
Automatic Bottle Filling Control
To implement a control program that will detect the position of a bottle
via a limit switch, wait for 5 secs, and then fill the bottle until the photo
sensor detects the filled position. After the bottle is filled, it will wait for
7 secs to continue to the next bottle. The start and stop circuits will
also be included for the outfeed motor and for the start of the process.
Filling
Arrangement
(Solenoid
operated)
Photoelectric
Empty bottles sensor Filled bottles
Conveyor LS Conveyor
10001 10000
Stop process pushbutton : 00001
01000
Limit switch (position detect) : 00002
00002 10001
Photo sensor (level detect) : 00003 TIM000
# 0050
Feed-motor drive : 10000
TIM000 00003 10001 10002
• PLC with analog input and output modules for driving analog valves and
actuators using the PID control algorithms are being used in process
industries.
• Large PLCs are used for complicated control tasks that require analog
control, data acquisition, data manipulation, numerical computations and
reporting. They can be interfaced with applications where LAN may be
required.
• Some PLCs offer the ability to program in other languages besides the
conventional ladder language. eg. using BASIC
• Some PLCs use Boolean algebra to enter and explain the control logic.
Scope of Application in Thermal Power Plant
• Compressor House
• Pump House
• Turbine House
• Similar subsystems
Alternate Programming Languages
80 % of PLC Programming is Ladder diagrams, the language of the
“electricians”.
Vision: To have a higher level programming language for future PLCs with
requirement of,
in a sequence
If parts are passed continuously, where loader and puncher are all
operating simultaneously (though in different parts) – concurrent
processing occurring.
Need for a language that allows both sequential & concurrent processing !
BASIC: A STEP UP
PART 5: Communication