Saturday, April 27, 2019

SAFETY PROGRAMMABLE LOGIC CONTROLLERS (PLCs)


A safety programmable logic controller (PLC) is similar to a standard PLC.  It can be used to control and automate different industrial equipments. A safety PLC supports all the functions/applications that a standard PLC does moreover, a safety PLC contains integrated safety functions that allow it to control safety systems as well. A safety PLC is designed to accomplish two important objectives: Do not fail, and, if unavoidable, fail only in a predictable safe way. It achieves these objectives through its redundant microprocessors, eliminating the need for safety relays to create redundancy. It also has built-in diagnostics allowing it to continuously monitor inputs and outputs. In case of internal fault or failure detection a safe shutdown of PLC occurs preventing any damages.
For a PLC to be considered a safety PLC, it must meet a set of rigorous international standards, specifically IEC 61508 – Functional Safety of Electrical/Electronic/Programmable Electronic Safety-related Systems.
For a safety PLC to achieve a safety integrity level (SIL) of three (3), it must be capable of detecting over 99% of potential failures. Some of the testing required determining the diagnostic coverage involves a series of tests like data verification and program flow control. These tests ensure that the PLC stores critical data and verifies the internal functions the PLC executes are in the correct order. In addition, a safety PLCs must undergo software-fault injection testing (carried out to check the healthiness of PLC).

Advantages of a safety PLC compared to a standard PLC:
·         A safety PLC allows for safety control and standard control while a standard PLC only allows the latter.
·         By using a safety PLC to control a safety system, time and money are saved on field wiring since there is no need for safety relays. As a result, a safety system designed around a safety PLC is extremely flexible.
·         It is easy to modify because it simply requires programming changes but does not require any wiring changes or additional relays.
·         Once the safety system has been tested and validated, the safety program in the PLC can be locked and password protected to prevent unauthorized variations. Certain models even support integrated motion over Ethernet, and can be used to initiate safe torque-off function on various types of variable frequency drives (VFDs).

Disadvantages:
·         The upfront cost is higher, so this type of PLC would not be ideal for smaller, simpler applications.
·         Safety PLCs are still a relatively new product with new technology. Engineers and maintenance technicians are unfamiliar with the newer technology so additional training may be necessary for safety PLCs to be used correctly.
·         Delay time in purchasing from local manufacturers as these PLC modules are not easily available at local vendors.

Safety PLCs are still a relatively new concept; they have already found their way into safety applications in industries around the world.


Sunday, April 14, 2019

IoT And SCADA/PLC: Is One Going To Replace The Other?



Industrial IoT and the connected factory concept are hot topics. Yet often, there is confusion among professionals and students in both on and offline discussions around the role of Industrial Internet of Things (IIoT) applications.
Essentially, IoT should be viewed as a technology that is implemented on top of PLC. It makes things like scalability, data analytics, and standardization and interoperability realities.
So, does the Internet of Things replace SCADA/PLC, Supervisory Control and Data Acquisition? With the implementation of IoT, Industry 4.0 and the interaction with the well-established SCADA systems, these questions of uncertainty are being raised more and more.
According to many IoT experts and data scientists Internet of things can surely help in boosting SCADA systems to the next level. Instead of fighting against each other, the two technologies can instead integrate to push industry even closer to the edge.

What is SCADA?
Supervisory Control and Data Acquisition is just as the name suggests. Essentially, it is a system of software and hardware that allows industries to control industrial processes locally or at remote locations, monitoring, gathering and processing real-time data. It also allows direct interaction with smart devices and human-machine interface software and records events into a log file.
So, SCADA is much like IoT. Yet IoT, the shiny new technology, is developing faster than anything we’ve seen in recent years. However, SCADA is still an important concept in the oil and gas industry. Especially when it comes to monitoring offshore or onshore extraction processes or pipeline from a central remote location. It is used similarly in the mining industry to monitor environmental factors and to track assets. Power utilities use SCADA in Energy Management Systems (EMS) as well as Distribution Management Systems (DMS) to optimize the performance of transmission and distribution networks and to protect the grid network. Then, SCADA is also used by railways to control traction power supply, implement train control automation, and manage communication, electrical and mechanical assets at stations.
So, SCADA systems are still predominant within heavy asset industries. With three generations of SCADA – standalone, distributed and networked – some industries are starting to utilize what some known as the fourth generation SCADA application. Some also know this to be the Internet of Things. And, as the fourth Industrial Revolution is upon us, implementing fourth generation SCADA with the revolutionizing technology of IoT seems very fitting.

What is PLC?
One technology that has been running relatively parallel to SCADA over the past few decades is the Programmable Logic Controller (PLC). The PLC is yet another form of technology that is believed to be becoming slightly outdated due to so many IoT developments within Industry 4.0.
The Programmable Logic Controller receives information from connected sensors or input devices, processes the data, and triggers outputs based on pre-programmed parameters. Essentially, a PLC can monitor and record real-time data such as machine productivity or operating temperature. It can also automatically start and stop processes, and generate alarms if a machine malfunctions.
Many of the functions of a PLC operate in correlation to those of SCADA and IoT. However, in Industry 4.0, programmable controllers are still being called upon to communicate data via web browser, connect to databases via Structured Query Language (SQL) and to the cloud via Message Queuing Telemetry Transport.

A partner in IoT
Ease of installation, reduced cost, increased data accuracy and worldwide remote control and monitoring are all things that IoT offers heavy asset industries. However, as IoT is a relatively new technology in relation to SCADA and PLC, its capabilities are naturally adaptable to modern industry demands. That being said, when SCADA began, it allowed manufacturers’ systems to work together in real-time, much like IoT is doing now. Therefore, it’s very much apparent that the strength of SCADA systems and its technological capabilities are still relevant even in industry 4.0.
Currently, IoT is revolutionizing SCADA by offering more standardization and openness. IoT is also providing scalability, interoperability and enhanced security by introducing the concept of the IoT platform. Essentially, both platforms are used to increase overall productivity by integrating smart maintenance. As well as waste reduction, increase in efficiency, a decrease in downtime and the extension of equipment life.
So, while the IoT market is still in early production, it can coexist with SCADA and PLCs. IoT is bringing about a wave of new business models and technologies that are changing the landscape of industrial automation.

Integrate or die
Admittedly, the SCADA platform is lacking particular innovations, otherwise, the need for IoT would be far more subjective. SCADA is currently being influenced by IoT concepts and solutions that are quickly being integrated into SCADA architecture. This is done so seamlessly that we won’t ever notice a difference.
However, SCADA is still currently limited to the factory floor. Data taken from the factory devices are being viewed only inside the plant. Whereas IoT takes that data, offers insights to the user and makes it available anywhere, anytime. This, in turn, enables new business models to be created. Without the supportive innovations that IoT offers the SCADA and PLC platforms, it is possible that these technologies could, down the track, lose some necessity as more technologies come along that don’t consist of the same integrative nature that IoT carries

How IoT can help
If you already have a SCADA system in place, you can integrate the IoT solution with your SCADA system and collect data from a Data Acquisition Systems (DAS) machine. By leveraging the power and scalability of IoT, you can use collected data to create a wide range of reports such as Overall Equipment Effectiveness reports, Production Data reports as well as utility reports (gas, water, power).
In the future, it’s likely that SCADA systems will evolve into those of IoT. Equipment and PLC will become more intelligent and will be able to integrate different cloud platforms. This will enable new security platforms that will further secure any data that is recorded. This means that improvements that will save money can be performed.
SCADA is more about allowing humans to interact remotely with a process. Whereas IoT is generally used as a machine-to-machine communication tool. Rather than something that exists primarily to present information to a human. That is just a small part of its process. IoT ensures that information is shared with both people and machine, rather than just people. In short, it makes sure that everyone and everything is kept in the loop at all times.

The comparative analysis 
In the end, both SCADA and IoT involve sensors and data acquisition. Although they do differ in many aspects, they both share the one common goal. The optimization of use and, eventually, better control over some devices or a process. The whole idea of a smart grid leads to SCADA and IoT integration. As SCADA is not a full control system, rather a computer system that gathers and analyses real-time data, it is useful in monitoring and controlling a plant or industrial equipment. It will gather information about a mishap, transfer it back to a central site and alert the home station. It will then carry out any necessary analysis and control and display the information in a logical and organized fashion for humans to then interpret and use accordingly.
The Internet of Things is made up of a network of physical devices connected via electronic embedding, software setups, sensor-actuators and network connectivity which all act together for the objects to connect and exchange data. IoT allows objects to be sensed or controlled remotely across different networking infrastructures. Therefore, it creates opportunities for more direct integration of the physical world into computer-based systems. This results in improved efficiency, accuracy and economic benefit and also cuts down on human intervention.
Both platforms offer an abundance of advantages, as well as some vulnerabilities. It is predicted that by 2020, 50 billion devices or things will be connected to the internet. Therefore, the dynamics of an Internet-based control system are becoming a living reality. Industry 4.0 is an era in which emerging trend automation and data exchange in manufacturing technologies are allowing for a shift from traditionally implemented SCADA to an IoT implemented one. With SCADA, cyber-physical systems, the Internet of Things, cloud computing and cognitive computing, Industry 4.0 is an era that will change the dynamics of the entire automation industry.



source:https://www.controleng.com/articles/

Wednesday, April 3, 2019

PROGRAMMING LANGUAGES FOR PLC

There are 5 programming languages that are all a part of the IEC (International Electrotechnical Commission) Section 61131-3 Standard. This IEC Standard allows some fundamental rules that standardize PLCs and their languages.
The 5 most popular PLC Programming Languages are:
1. Ladder Diagram (LD)
2. Sequential Function Charts (SFC)
3. Function Block Diagram (FBD)
4. Structured Text (ST)
5. Instruction List (IL)

LADDER LOGIC


 Ladder Diagram is the oldest PLC language. This graphical programming language was modeled from relay logic to allow engineers and electricians to transition smoothly into programming PLCs.
Within Ladder, rungs and rails represent the real world electrical connections. Specifically, the vertical “rails” represent the supply power of the device while the rungs that are connected to the rails are equal to the amount of control circuits.
Input conditions can be written in input terminals, which then impacts the output on the output terminals. The absence of instructions in ladder logic makes it difficult to model motion or batching–understandably so, because ladder logic strictly adheres to the on/off logic of hard-wired relays.

Ladder Diagram Advantages:

·   The rungs allow it to be organized and easy to follow.
·   It also lets you document comments that are readily visible.
·   It supports online editing very successfully.

Ladder Diagram Disadvantages:

The main disadvantage is that there are some instructions that are not available, which might make it more difficult for programming such as motion or batching.

SEQUENTIAL FUNCTION CHARTS


A sequential function chart is a graphical programming language that mimics a flow chart. Int this language we use steps and transitions to get output.
Steps are functions within the program and house events that are activated based on state and other specified conditions.
Transitions are instructions based on true/false values that move you from one step to another.
Branches are used to initiate multiple steps at a time. The branches act like threads where functions can run concurrently.
All of these steps, transitions, and branches are housed in a series of scripts that execute in a procedural manner. The visual nature of the language allows users to monitor processes that both heavily use conditional logic and run parallel instructions. PLCs that are prone to suffering from bottlenecks can be more intuitively maintained and troubleshoot using the chart to follow the logic of the program.

Sequential Function Charts Advantages
·   Processes can be broken into major steps that can make troubleshooting faster and easier. Having a direct access in the logic to see where a piece of equipment faulted.
·   It can be faster to design and write the logic due to the ability to use repeated executions of individual pieces of logic.
Sequential Function Charts Disadvantages:

Even when you consider the advantages of the Sequential Function Charts, this PLC programming Language does not always fit every application.

Function Block Diagram (FBD)


Block based programming languages are a type of graphical language that minimizes code into blocks, which allows for a simple way to create executable commands.
FBD in particular describes a function between inputs and outputs that are connected by connection lines. The logic of the inputs and outputs are stored in blocks. The blocks are programmed onto sheets and the PLC scans these sheets in order or by specified connections between blocks, much like procedural languages.
The I/O focus mirrors that of ladder logic. Yet, the code that the blocks contain allow engineers to develop more complex batch control tasks among other repeatable tasks.

Function Block Diagram Advantages:
·      The Function Block Diagram does work well with motion controls.
·      The visual method is easier for some users.
·      The biggest advantage of Function Block Diagram is that you can take many lines of programming and put it into one or several function blocks.

Function Block Diagram Disadvantages
The code can get disorganized using this PLC Programming Language because you can place the function blocks anywhere on the sheet. This can also make it more difficult to troubleshoot.

INSTRUCTION LIST (IL)


This is the PLC’s equivalent to assembly language. This gives you immediate access to the machine itself, which allows you to write code that is compressed and fast. The code is represented in the manner that the language’s name suggests: in a list of commands.

 

Instruction List Advantages


The Instruction List language is valuable for applications that need code that is compact and time critical.

Instruction List Disadvantages


There are few structuring possibilities with the “Goto” command being one of them.
There can also be many errors that are more difficult to deal with in comparison to many of the other languages that I have previously reviewed.

STRUCTURED TEXT (ST)


Structured Text is a high level language designed to program PLCs. This language is essentially the C++ of the PLC world. Any PLC that requires complex data handling will most likely use ST.
Advantages of Structured Text:

It is very organized and good at computing large mathematical calculations.
It will enable you to cover some instructions that are not available in some other languages like the Ladder Diagram.

Structured Text Disadvantages


·   The syntax can be difficult.
·   It is hard to debug.
·   It is difficult to edit online.


PLC Communication Protocols