Module-4 (PLCs DCS)
Module-4 (PLCs DCS)
Sharath H K, M.Tech.
Assistant Professor
Dept. of Mechanical Engineering,
MCE, Hassan.
1
PLC Instructions &
Introduction to SCADA & DCS
Module – 4
2
Contents
Module – 4
PLC Instructions continued: Comparison and Data handling Instructions:
comparison, Data handling and Logical Instructions. Sequencer
Instructions: The Sequencer Instructions, Programming the output.
Sequencer Instructions. Construction of Ladder diagram for analytical
problems.
Introduction to SCADA and DCS: Supervisory Control and data Acquisition
System: Channel Scanning, Data Processing, distributed SCADA Structure;
Star and daisy Chain configuration. Distributed Control Systems:
Distributed dedicated, Centralized and decentralized Computer Control
Concept. Functional Requirements of DCS, System architecture, Functional
Levels of DCS, Sub Systems; Presentation and Monitoring Devices,
Communication links in DCS.
3
COMPARISON INSTRUCTIONS
1. The Equal Instruction (EQU)
2. The Not Equal Instruction (NEQ)
3. The Less Than Instruction (LES)
4. The Less Than or Equal Instruction (LEQ)
5. The Greater Than Instruction (GRT)
6. The Greater Than or Equal Instruction (GEQ)
4
The Equal Instruction (EQU)
5
The Not Equal Instruction (NEQ)
6
The Less Than Instruction (LES)
7
The Less Than or Equal Instruction (LEQ)
8
The Greater Than Instruction (GRT)
9
The Greater Than or Equal Instruction (GEQ)
10
DATA HANDLING INSTRUCTIONS
1. The Move Instruction
2. The Masked Move Instruction (MVM)
3. Converting from BCD to an Integer (FRD)
4. Converting an Integer to BCD (TOD)
5. The Copy Instruction
11
The Move Instruction
12
13
The Masked Move Instruction (MVM)
14
Converting from BCD to an Integer (FRD)
15
Converting an Integer to BCD (TOD)
16
The Copy Instruction
17
18
19
20
21
LOGICAL INSTRUCTIONS
22
The AND Instruction
23
The OR Instruction
24
The Exclusive-OR Instruction
25
The NOT Instruction
26
The Limit Test Instruction
27
The Scale with Parameters Instruction
28
29
THE SEQUENCER
30
SEQUENCER INSTRUCTIONS
31
32
33
34
35
36
PROGRAMMING THE SEQUENCER OUTPUT INSTRUCTION
37
Problem-1
The Workpiece starts moving on the left side and moves to the right
when the start button is pressed. When it reaches the rightmost limit,
the drive motor reverses and brings the workpiece back to the left most
position again and the process repeats. The forward and reverse push
buttons provides a means of starting the motor in either forward or
reverse so that the limit switches can take over automatic control. Draw
ladder diagram to execute this using a PLC.
38
39
40
Problem-2
A motor coupled to a work table is used to move workpiece between
two limit switches. When the process starts, the workpiece should
move from its position in the forward direction until it encounters limit
switch LS1. Once it contacts LS1 it should start to move in reverse
direction until it encounters limit switch LS2. This process should repeat
until a manual stop button is pressed. A start button should be pressed
to turn on the process. Draw ladder diagram to execute this using a PLC.
41
Problem-3
Material A and material B are collected in a tank. These materials will be
mixed for 20 sec and then the mixed product drained out through the
outlet valve. Two level sensors are used for detecting the level of material
A and material B. Also one low level sensor used for detecting the bottom
level. To control level of this system, valve is used which has two states,
either fully opened or fully closed. After successfully completion of mixing,
outlet valve is operated to drain the mixed material. When mixing process
is completed, buzzer will be activated and it will remain ON and after 5 sec
it will be automatically OFF. Draw ladder diagram to execute this using a
PLC.
42
43
44
45
46
Problem-4
In a soft drink plant a tank will be filled with two fluids, mixed and then the
tank is to be drained. When the start button is pressed pump A will be
turned on and valve A will be opened. Pump A runs for 15 seconds fill the
tank with fluid A and will be turned off and the valve A will be closed, after
pump A turns off pump B turns on and Valve B will open. Pump B runs for
10 seconds fill the tank with fluid B and will be turned off and Valve B get
closed. After pump B turns off mixer motor will get started, runs for 90
seconds. After mixing outlet valve C opens, pump C turns on runs for 25
seconds. After mixing outlet valve C opens, pump C turns on runs for 25
seconds and will be turned off. This process repeats for 10 cycles and then
the process stops. A manual stop button is also provided in the panel for
safety. Develop a PLC ladder program.
47
Supervisory Control and Data Acquisition System
The basic functions carried out by a SCADA system are:
1. Channel scanning
2. Conversion into engineering units
3. Data processing
48
SCADA (Continued..)
49
SCADA (Continued..)
1. Channel Scanning
• There are many ways in which microprocessor can address the
various channels and read the data.
• The channel scanning and reading of data requires, the following
actions to be taken:
1. Sending channel address to multiplexer
2. Sending start convert pulse to ADC
3. Reading the digital data.
50
SCADA : Channel Scanning (Continued..)
Polling
• The microprocessor scans the channels to read the data, and this
process is called polling.
• In polling, the action of selecting a channel and addressing it, is the
responsibility of processor.
• The channel selection may be sequential or in any particular order
decided by the designer.
• It is also possible to assign priority to some channels over others, i.e.
some channels can be scanned more frequently than others.
• It is also possible to offer this facility of selecting the order of channel
addressing and channel priorities to the operator level.
51
SCADA : Channel Scanning (Continued..)
52
SCADA : Channel Scanning (Continued..)
53
SCADA : Channel Scanning (Continued..)
Interrupt scanning
• In interrupt scanning, transducer check for violation of limits.
• It sends interrupt request signal to processor when the analog signal
from transducer is not within High and Low limits boundary set by Analog
High and Analog Low signals.
• This is also called Scanning by Exception.
• When any parameter exceeds the limits, then the limit checking circuit
would send interrupt request to microprocessor which in turn would
monitor all parameters till the parameter values come back within pre-
specified limits.
• This allows for a detailed analysis of the system and the problems by the
SCADA system. 54
SCADA : Channel Scanning (Continued..)
55
SCADA (Continued..)
57
SCADA (Continued..)
3. Data Processing
• The data read from the ADC output for various
channels is processed by the microprocessor to
carry out limit checking and performance
analysis.
• For limit checking the Highest and Lowest Limits
for each channel are stored in an array.
• When any of the two limits is violated for any
channel, appropriate action like alarm
generation, printing, etc. is initiated.
58
SCADA (Continued..)
59
Distributed SCADA Structure
• In any application, if the number of channels are quite large then more
than one SCADA system is used and the channels are distributed among
them.
• But, for performance analysis on the process plant, it is mandatory that
the data from various channels should reach a central location where it
can be consolidated and analysed to generate the reports on plant
performance.
• Figures 3.58(a) and (b) show the interfacing of number of SCADA
systems with central computer in star configuration and Daisy chain
configuration respectively.
60
Distributed SCADA Structure (Continued..)
61
DISTRIBUTED CONTROL SYSTEMS
62
DISTRIBUTED CONTROL SYSTEMS (Continued..)
Centralised computer concept
• Due to the fact that even the small dedicated computers were
relatively costly, a centralised, single computer automation
structure was introduced, containing a middle-scale or large-scale
process control computer as its central part. Following essential
functions were concentrated in the computer itself:
• Process monitoring
• Data acquisition
• Alarming and logging
• Data processing
• Data archiving
• Process control
63
DISTRIBUTED CONTROL SYSTEMS (Continued..)
64
Functional Requirements of a Distributed Process Control System
• The basic functional requirements of a distributed process control
system are:
1. it should have a consistent and uniform system approach
2. it should fulfill and perform all operational, process and plant
control functions
3. it should automatically control the process and plant in normal
operation within the specified limits and tolerances but also
permit manual operation
65
Functional Requirements of a Distributed Process Control System (Continued..)
66
Reference
1. Introduction to Programmable Logic Controllers, Garry Dunning,
3rd edition, Cengage learning.
2. https://instrumentationtools.com/plc-programming-example-for-
motor-forward-and-reverse/
67