Friday, March 22, 2019

DIFFERENCE BETWEEN PLC, DCS AND SCADA SYSTEMS


Nowadays it is commonly seen that students are often confused between the terminologies of PLC, DCS and SCADA systems and consider them as the alternatives of each other. However all of these systems are developed to cater different needs. Since the PLC was integrated with Analog I/O it crosses the boundary of being just digital and crosses to the realm of DCS in handling Analogs, Bus Systems, Distributed I/O and etc. Also, since the DCS now handles logics of Digital I/O it also crossed the boundary to the realm of PLC.
The detail analysis of both of these systems is discussed below:

PROGRAMMABLE LOGIC CONTROLLERS:


 PLC is a specialized processor/ computer with all the hardware and software to do a specific automation task, say running a plant/factory. This means that all the Field/Real world Inputs are processed by the PLC (using Input interface hardware ) and the same then issues commands to various devices and actuators(via Output interface). This has some Pros and Cons.

Pros:-
1.      As a single processor is working it can easily access all the data / inputs and use it as it requires.
2.      It has a simple architecture and is easier to implement and maintain.
3.      It has reduced hardware and reduced cost.

Cons:-
1.      As all the functions are done by the same processor it increases the loading on the controller. For large systems the processing power required can be too high.
2.      There is no physical segregation for critical application such as protections.
3.      Failure of the controllers (though redundant controllers can be provided) will lead to complete shutdown of the control system. For some applications a true standalone system is required.
4.      If the various areas are far away the cabling cost of inputs and outputs to the PLC can increase too much and for long distance it can be impracticable.

If a standalone system is made for such application then it will be difficult to integrate them in a common SCADA/ HMI/ interface and the spare for maintaining different systems will increase cost.
DISTRIBUTED CONTROL SYSTEM:
DCS can solve these problems. In a DCS the entire logic and hardware is distribute or broken into different microprocessors or Functional groups (FGs) for ease the implementation and provide segregation.

These separate Functional groups (FGs) are linked to the same HMI/SCADA/interface. The entire control of the plant is broken in small groups with each groups having something similar. 
For example:-
The AC/ventilation system can be separated from the production part as it is not related functionally.
If separate FGs need to communicate some signals, the same is done through Hardwire or Network/protocol such as OPC, Modbus, profibus etc. As most of the processing is already done in the other FG the cabling is also reduced.
Protection system and critical systems can be made into a separate FG and this processor having low input and controls can work with low loading and higher speed.
As an engineer working in Control systems, I too find it very confusing when people use the term PLC and DCS interchangeable. This is because DCS are an advanced or a larger implementation of the PLCs. A number of vendors call the same processor as PLC or DCS depending on the execution or architecture used for the application as illustrated.
Now some important aspects of SCADA are discussed below:
SCADA: Supervisory Control and Data Acquisition

1.      DCS is process oriented while SCADA is data acquisition oriented.
2.      DCS is process state driven while SCADA is event driven.
3.      DCS is commonly used to handle operations on a single locale, while SCADA is preferred for applications that are spread over a wide geographic location.
4.      DCS operator stations are always connected to its I/O, while SCADA is expected to operate despite failure of field communications.

Thursday, March 7, 2019

DIFFERENCES BETWEEN PLCs AND MICROCONTROLLERS:




Gone are the days when microcontrollers were the most popular all over. Now PLC has taken charge of the industrial sector world wide and across Pakistan.
All the industries in Pakistan are now using PLC systems in different ways some of the salient features of PLCs are:
PLCs are robust
PLCs are reliable
PLC Architecture is interchangeable
Integration with multiple communication protocols
Extendable I / Os
Availability for redundant architectures
Easy to communicate with HMIs
Easy to maintain
Easy to use Safety PLCs are available for hazardous processes.
While microcontrollers have some drawbacks:

Microcontrollers are not designed to withstand extreme conditions such as PLCs with the roughness and unique ability. This does not make them ready for industrial applications.

Microcontrollers are considered to be of vital importance in industrial applications by the university students a perception which they created during their academic years. However the use of microcontrollers is very limited. I have occasionally seen the role of them in industries. On the other hand PLCs are the main building block of automation and are widely used across whole country in various different industries.
PLCs and microcontrollers are some of the most misunderstood systems. That misconception comes from the fact that most people try to understand them only from a traditional software engineering perspective. They think that since microcontrollers can be programmed in C or C++ (traditional programming languages for traditional software development), then they must behave like traditional software. In reality, they are more like hardware systems, and have issues that are usually faced in hardware design. Since microcontrollers behave like software, and PLCs are programmable devices like microcontrollers, they too must behave like software.
Today we will discuss the brief comparison between these two technologies and try to cater the questions often arises in student’s mind.

Programmable Logic Controller (PLC) defined by NEMA as a digitally operating electronic apparatus that uses a programmable memory for internal storage of instructions for implementing specific functions such as Logic, Sequencing, Timing, Counting And Arithmetic Through Digital Or Analog Input / Output modules.
A PLC system could range from a stand-alone system that can take 10 digital inputs and 10 digital outputs and a few analog inputs and outputs, to a complete DCS that controls an entire plant or field, with tens or hundreds of different modules connected over long distances, multiple processing units and redundant systems.
At the heart of the PLC is ease of use, but not in the manner that one might think. Its ease of use is in terms of deployment and maintenance. Couple that with reliability and scalability and a system that is almost unbeatable.
Pros:
·         Large capacity - The PLC nowadays have a capacity of 2000+ I/Os that is analog and digital combined. This is maintained through a central engineering station for ease of control.
·         Modular Design - The PLC capacity and design can easily modified to suite customer need post implementation stage. This is not feasible with relays or microcontroller based solutions.
·         Distributed architecture - For large application a distributed system can be implement with communication between various PLC using protocols like Modbus, Ethernet and profibus etc.
·         Industrial Grade - PLCs are designed with tolerance to withstand various hazardous condition for Industries such as Electromagnetic interference, high temperature, power fluctuation etc.
·         Safety - PLCs manufacturers also provide safety features such are SIL certification as per customer requirement for Protection/Emergency Shutdown System.
·         Utility - PLCs can interface with a large no of drives and actuators ranging from analog and digital to special type such as speed measurement and RTD/thermocouples etc. These can be done easily by changing I/Os modules and configuring them.
·         Easy Maintenance and Spares - Due to modular design the trouble shooting is easier and the no of spares requirement is reduced and easily manageable.

Microcontroller is a microprocessor with internal input and output and memory i.e. RAM, ROM, PORTS. It needs surrounding circuitry in order to function. It has little or no real-word signal level compatibility (cannot connect it to a thermocouple or a motor directly). It is typically the central building block in a system that is built up along with other components. 
Pros:
·         In case of Microcontroller the programming is somewhat tedious because of machine language.
·         A microcontroller is also a logic controller but used in dedicated systems which are programmed once and for all, the program for which will not be accessed by the user, and whose program will not need to be altered frequently.
·         Microcontrollers Developed for Dedicated equipment.
·         With a microcontroller, you may have to design your own signal interfacing. 



Tuesday, March 5, 2019

PLC SELECTION CRITERIA




Selecting a PLC system requires planning as various PLCs are available in market so for selecting a PLC one must consider the following guidelines:

* System (task) requirements.
* Application requirements.
* What input/output capacity is required?
* What type of inputs/outputs are required?
* What size of memory is required?
* What speed is required of the CPU?
* Electrical requirements.
* Speed of operation.
* Communication requirements.
* Software.
* Operator interface.
* Physical environments.

System requirements

The point of departure for any solution must be to understand what is to be achieved. The program design begins by dividing the task into a number of simple comprehensible elements, each of which can be described easily.

Application requirements

*The next step is to determine which input and output devices the system requires after determining the operation of the system.
*List the required function and identify the device type.
*In addition to discrete (On / Off) logic, the need for special operations.
*List the required advanced functions in addition to a simple, discrete logic.

Electrical Requirements

The electrical requirements for inputs, outputs, and system power;
Consider three items when determining a system's electrical requirements:

• Input power (control system power 24VDC or 220VAC)
• Input voltage of the device (24 VDC or 220VAC)
• Output voltage and current (mV or mA signal)

Speed of Operation

How fast it is necessary to operate the control system (operation speed).
Consider these points when determining operating speed:
·         How fast does the process or machine work? Are there any operations or events "time critical" that need to be detected?
·         In which time frame the fastest action must take place (detection of the input device for output device activation)?
·         Does the control system need to count and respond quickly to pulses from an encoder or flow meter?

Communication

If the application requires non-process data sharing, i.e. communication. Communication involves sharing data or status of applications with other electronic devices, such as a computer or monitor at the station of an operator. Communication can take place locally via a twisted pair wire or by telephone or radio modem remotely.

Operator Interface

Many applications require operator interfaces to convey machine or process status information or allow an operator to input data. Traditional operator interfaces include pushbuttons, LED numeric display and pilot lights.

Physical Environment

The physical environment where the system of control will be located. Consider the location of the control system environment. Housing the control system in a suitable IP-rated enclosure in harsh environments. Recall considering maintenance, troubleshooting or reprogramming accessibility.



PLC Communication Protocols