Professional Documents
Culture Documents
Ilot Te Vi Ia Week 6 7
Ilot Te Vi Ia Week 6 7
ILOT6023_Industrial Automation
Module 3: Programmable Logic Controller
Software
Week-6 & 7
Lecture 16 & 17 – Data transfer & program control instructions & Advanced PLC
3
instructions
Lecture 18 & 19 PID control using PLC and PLC selection for any one process
22
application
4 Lecture 16 & 17 - Data transfer & program control instructions & Advanced
PLC instructions
Data Transfer concept
Data Transfer
Image Source / references: bookpetruzella pg 202
5 Lecture 16 & 17- Data transfer & program control instructions &
Advanced PLC instructions
MOV Instruction
MOV Instruction
MVM Instruction
7 Lecture 16 & 17 - Data transfer & program control instructions & Advanced
PLC instructions
Data Compare Instruction
8 Lecture 16 & 17 - Data transfer & program control instructions & Advanced
PLC instructions
EQU & NEQ Instruction
9 Lecture 16 & 17 - Data transfer & program control instructions & Advanced
PLC instructions
LES & GRT Instruction
10 Lecture 16 & 17 - Data transfer & program control instructions & Advanced
PLC instructions
Program Control Instructions
11 Lecture 16 & 17 - Data transfer & program control instructions & Advanced
PLC instructions
Instruction List
12 Lecture 16 & 17 - Data transfer & program control instructions & Advanced
PLC instructions
MCR Instruction
MCR Instruction
13 Lecture 16 & 17 - Data transfer & program control instructions & Advanced PLC
instructions
JMP Instruction
JMP Instruction
14 Lecture 16 & 17 - Data transfer & program control instructions & Advanced
PLC instructions
….Continued
Data Transfer
https://www.youtube.com/watch?v=DcopgfEs6gg
15 Lecture 16 & 17 - Data transfer & program control instructions & Advanced
PLC instructions
Advanced PLC instructions
16 Lecture 16 & 17 - Data transfer & program control instructions & Advanced PLC instructions
Advanced PLC instructions
•The single instruction is commonly called MOV (move) copies a value from one
address to another.
17 Lecture 16 & 17 - Data transfer & program control instructions & Advanced PLC instructions
Advanced PLC instructions
Data comparison
• The data comparison instruction gets the PLC to compare two data values.
• Thus it might be to compare a digital value read from some input device with a
second value contained in a register.
PLCs generally can make comparisons for:
less than (< or LESS),
equal to (= or EQU),
less than or equal to (<= or LEQ),
greater than (> or GRT),
greater than or equal to (>= or GEQ), and
not equal to ( NEQ).
18 Lecture 16 & 17 - Data transfer & program control instructions & Advanced PLC
instructions
Advanced PLC instructions
Overflow
•Typically the memory locations are 16-bit locations. If a result is greater than the
value that could be stored in a memory location then we get an overflow.
•The plc turns on an internal relay that tells us an overflow has happened.
•We get an overflow if the number is greater than 65535
(2^16=65536).
•Depending on the plc, we would have different data in the destination location.
Some use 32-bit math which solves the problem.
•If we’re doing division, and we divide by zero the overflow bit turns on.
19 Lecture 16 & 17 - Data transfer & program control instructions & Advanced PLC instructions
Advanced PLC instructions
• Division (DIV) – The capability to divide one piece of data from another.
20 Lecture 16 & 17 - Data transfer & program control instructions & Advanced PLC instructions
Advanced PLC instructions
21 Lecture 16 & 17 - Data transfer & program control instructions & Advanced
PLC instructions
Lecture 18 & 19
PID control using PLC and PLC selection for any one process
application
PID Control using PLC.
•Many PLCs provide the PID calculation to determine the controller output as a
standard routine.
•All that is then necessary is to pass the desired parameters, i.e. the values of Kp,
Ki, and KD, and input/output locations to the routine via the PLC program.
23 PID control using PLC and PLC selection for any one process application
PID Control using PLC.
24 PID control using PLC and PLC selection for any one process application
PID Control using PLC.
25 PID control using PLC and PLC selection for any one process application
PID Control using PLC.
The zone being controlled begins with a rung that has the first MC instruction, which
status depends on its rung condition.
This zone ends with a rung that has the second MCR instruction only.
When the rung with the first MCR instruction is true, the first MCR instruction is high and
the outputs of the rung in the controlled zone can be energized or denergized acording to
their rung conditions.
When the this rung is false, all the outputs in the zone are denrgized, regardless their
rung conditions.
Timers should not be used inside the MC/MCR block because some manufacturers will
reset them to zero when the block is false whereas other manufacturers will have them
retain the current time state.
26 PID control using PLC and PLC selection for any one process application
PID Control using PLC.
Jump Instructions
The JUMP instructions allow to break the rung sequence and move the program
execution from one
rung to another or to a subroutine.
The Jump is a controlled output instruction.
You can jump forward or backward.
You can use multiple jump to the same label.
Jumps within jumps are possible
There are:
1. Jump to Label.
2.Jump to subroutine
27 PID control using PLC and PLC selection for any one process application
PID Control using PLC.
RETURN / END
A Return from Subroutine instruction marks the end of Subroutine instruction.
When the rung condition of this instruction is true, it causes the PLC to resume
execution in the calling program file at the rung following the Jump to Subroutine
instruction in the calling program.
28 PID control using PLC and PLC selection for any one process application
PID Control using PLC.
Shift Registers
The shift register is a number of internal relays grouped together (normally 8, 16, or 32)
which allow stored bits to be shifted from one relay to another.
The grouping together of internal relays to form a shift register is done automatically by
a PLC when the shift register function is selected.
This is done by using the programming code against the internal relay number that is to
be the first in the register array.
Shift registers can be used where a sequence of operations is required or to keep track
of particular items in a production system.
The shift register is most commonly used in conveyor systems, labelling or bottling
applications, etc.
29 PID control using PLC and PLC selection for any one process application
PID instruction
30 PID control using PLC and PLC selection for any one process application
PID instruction
31 PID control using PLC and PLC selection for any one process application
Case study
1. Home Automation.
2. Elevators
3. Water Treatment
4. Food Industry
5. Bottle Filling
32 PID control using PLC and PLC selection for any one process application
Case study
33 PID control using PLC and PLC selection for any one process application
Case study
Problem Solution
To detect burned chips light sensor are used. Light dependent resistors (LDR) are
used to detect the burned chips.
Blowers are used to throw away the burned chips from the conveyor whenever
burned chips detected.
Blowers are used to throw away burned chips from the conveyor. Here we used
two blowers, number of blowers depend on the size of the conveyor.
Time measurement is necessary for blower cycle. Here we measure time taken by
chips to reach from light source to blower.
Note:- Here we consider simple application for detecting burned chips on
the conveyor and remove them. We have taken here light source to detect
burned chips on the bases of darkness of the chips.
34 PID control using PLC and PLC selection for any one process application
Case study
35 PID control using PLC and PLC selection for any one process application
PLC selection criteria
36 PID control using PLC and PLC selection for any one process application
Troubleshooting
37 PID control using PLC and PLC selection for any one process application
PLC Application Video
https://www.youtube.com/watch?v=9kWCqK7hc3c
38 PID control using PLC and PLC selection for any one process application
Application of PLC
https://www.youtube.com/watch?v=02Q3cIoKa9c
39 PID control using PLC and PLC selection for any one process application
Application of PLC
https://accautomation.ca/plc-programming-example-shift-register-conveyor-reject/
40 PID control using PLC and PLC selection for any one process application
Application of PLC
https://accautomation.ca/tag/plc-programming-code-example/
41 PID control using PLC and PLC selection for any one process application
Examples of other PLC Programming Software:
42 PID control using PLC and PLC selection for any one process application
TE_VI_SEM
ILOT6023_Industrial Automation
Module 4: Supervisory Control And Data
Acquisition System (SCADA)
- The bulk operations of the site is controlled automatically by Remote Terminal Unit or by
PLC.
- The host computer functions are almost restricted to basic site supervisory level
capability.
- For example, A PLC may control the flow of cooling water through part of the industrial
process, but a SCADA system may allow an operator to change the control set point for
flow and will allow alarm conditions such as loss of flow of high temperature to be
recorded and displayed.
- The feedback control loop is closed through the RTU or PLC.
- The SCADA system monitors the performance of the overall loop.
- The data are collected locally in the SCADA software database to allow trending and other
analytical work.
Telemetry-based system
• The telephone wires were the key to the development of the first SCADA
system by the end of the 1950s
Mini-computers
• The minicomputers, which used 8-bit or 16-bit processors, were able to
perform the functions that were previously done by operators from the
control panels installed in each station
Microprocessors
Radio Communication
• By the 1970s better option for Radio communication was found due to
improved industrial design
• They can control large-scale processes that can include multiple sites, and
work over large distances as well as small distances.
• Level 3 (Coordination):
• Coordinating computers come under this level. Generally, these computers are
connected to multiple plants. So, it can help to gather data from different plants
in one place. At this level, the production planning, scheduling, and event timing
management are done by the plant in charge, managers, etc.
https://www.youtube.com/watch?v=nlFM1q9QPJw
https://www.youtube.com/watch?v=xvVCSYt_YsQ