Journey to the center of the plant: SCADA returns system information to sensors, process tools

After the supervisory control and data acquisition (SCADA) software is in place and the system is optimized, system information flows from sensors, field instruments, and other process tools to the control room and back again. Users must provide automatic and manual control commands to alter the process.

10/09/2016


This article originally appeared on The Control Blog.

To understand the return of supervisory control and data acquisition (SCADA) to the field, the journey begins at the programmable logic controller (PLC). Reasons for looking at the PLC will become apparent by considering an example of a transmitter measuring a tank's temperature and a solenoid valve opening to allow steam to pass through a heating coil in the tank to heat its contents. In the example, PLC logic (not the SCADA) controls the solenoid valve.

PLC control logic

Consider that the process operations department is asking for the tank's temperature to be controlled at 75°C (167°F) with a process temperature variation between 70°C (158°F) and 80°C (176°F). The control is designed according to these parameters:

  • When tank temperature drops below 72°C (161.6°F), turn "ON" the solenoid valve.
  • When tank temperature rises above 78°C (172.4°F), turn "OFF" the solenoid valve.

Having documented the control parameters, they can be translated into a single-rung ladder diagram (see Figure 1).

Figure 1: After documenting control parameters, they can be translated into a single-run ladder diagram. Courtesy: Shady Yehia, The Control Blog

The next step is to run a simulation which works as expected. The logic seems to be air-tight. But now consider, how will the SCADA interface with and/or interrupt this air-tight logic? Stay tuned.

Preparing the PLC program

The PLC program must be prepared to receive SCADA commands. The first step is to define and document the operator's involvement with the valve. The operator must:

  • Observe the valve status
  • Have program access to change the valve's control mode-automatically with the logic or manually from the SCADA screen
  • Have the capability of issuing a manual command to open or close the valve from the SCADA screen.

The second step is to allocate a location in the PLC memory for each function so that when the SCADA wants to do these functions, it has to only write (or read) information to (or from) these locations. In this case, three memory bits (or internal relays or markers-the name highly depends on the PLC vendor's manual, but they are all the same) will be allocated. Bits and not words were chosen because these are discrete commands and information. Allocate memory locations as follows:

  • For valve status, allocate M10
  • For AUTO selection, allocate M11
  • For Manual Command, allocate M12.

Now it's time to modify the PLC program (see Figure 2).

Figure 2: After allocating memory locations in the PLC for each function, modify the PLC program. Courtesy: Shady Yehia, The Control Blog

Now the updated PLC program is ready to receive SCADA commands. It's also time to add these new variables to the OPC server. Note that in actual applications, users mostly rely on an external feedback signal to indicate the actual valve status in the field. It is not advisable to use only the PLC output because in doing so, there could be an unknown actuator failure. This is done here only to simplify the subject. 

Modify the OPC server

Referring to the steps performed in the article, "Journey to the center of the plant: SCADA systems information flow," open the ABC OPC server and modify the configuration file by adding three more OPC items to the same OPC Group "TANK." The configuration should look like the one in Figure 3. The PLC's OPC server software can be used to test the required functionality by writing 1s or 0s into these memory bits. After operation is verified, modify the XYZ SCADA software.

Figure 3: The OPC configuration file is modified by adding three items to the TANK group. Courtesy: Shady Yehia, The Control Blog

Update the SCADA

Back to the SCADA software, first create three new tags in the "Tags Database" for three new variables:

  • Valve_Status
  • Valve_Auto
  • Valve_Manual_Command.

Next, go to the graphics editor, open the "Tank" screen, add a valve symbol, set the data source property to the "Valve_Status" tag, and click "save." Now there is a valve symbol that is changing according to the actual solenoid valve status.

Add a couple of toggle switch symbols to the screen-one for the mode selection and one for the manual command. Link them to the tags, and this is a fully functioning system (see Figure 4).

Figure 4: The SCADA screen is updated to reflect the changes to the tags’ database including the addition of the mode selection and manual toggle switches. Courtesy: Shady Yehia, The Control Blog

Run the SCADA, test everything live, and it works like a charm.

What? The valve is not operating? No? Why?

Let me have a look ... oh, here you go, you forgot to connect the solenoid valve to the PLC output, wait let me see...

The solenoid valve nameplate says it operates at 220 V ac, and the PLC output module is a transistor type that can only handle up to 24 V dc. This should have been planned from the beginning. But don't worry. If there is a will, there is a way. This time the way is called the interface relay. 

Figure 5: The interface relay base, or socket, shown in green, provides the connections to the coil and contacts of the relay. The actual relay, shown in white, contains the coil and contacts, which provide the switching function needed. Courtesy: Shady YThe interface relay

The interface relay is also sometimes called the interposing relay. Now, an interface relay must be installed in the PLC panel. It provides isolation between the PLC output and the solenoid valve, allowing the PLC to operate the relay coil with 24 V dc, and the relay contact will connect the 220 V ac supply to the solenoid valve.

As with normal relays, interface relays have two parts (see Figure 5). The relay base (or socket) provides the connections to the coil and contacts of the relay and an easy way to plug and unplug the device. The actual relay contains the coil and contacts, which provide the switching function needed.

With the interface relay installed, the solenoid can be controlled using the PLC output Q1. The SCADA application is fully functional. 

Shady Yehia is the Founder and Author of The Control Blog. He is the Instrumentation, Control, and Automation Proposals & Engineering manager in a process technology integration company based in Qatar and operates in the EMEA region. Courtesy: Shady YehiaShady Yehia is the founder and author of The Control Blog and is the instrumentation, control, and automation proposals and engineering manager in a process technology integration company based in Qatar and operating in the EMEA region. The Control Blog is a CFE Media content partner. Edited by Jack Smith, content manager, CFE Media, Control Engineering, jsmith@cfemedia.com

Key concepts

  • To understand the SCADA return to the field, the journey begins in the middle at the programmable logic controller.
  • It is not advisable to use only the PLC output because in doing so, there could be an unknown actuator failure.
  • The interface relay is also sometimes called the interposing relay.

Consider this

Ensure all of the planning is done before you embark on the project.



The Engineers' Choice Awards highlight some of the best new control, instrumentation and automation products as chosen by Control Engineering subscribers. Vote now (if qualified)!
The System Integrator Giants program lists the top 100 system integrators among companies listed in CFE Media's Global System Integrator Database.
Each year, a panel of Control Engineering and Plant Engineering editors and industry expert judges select the System Integrator of the Year Award winners in three categories.
This eGuide illustrates solutions, applications and benefits of machine vision systems.
Learn how to increase device reliability in harsh environments and decrease unplanned system downtime.
This eGuide contains a series of articles and videos that considers theoretical and practical; immediate needs and a look into the future.
HMI effectiveness; Distributed I/O; Engineers' Choice Award finalists; System Integrator advice; Inside Machines
Women in engineering; Engineering Leaders Under 40; PID benefits and drawbacks; Ladder logic; Cloud computing
Robotic integration and cloud connections; SCADA and cybersecurity; Motor efficiency standards; Open- and closed-loop control; Augmented reality
Programmable logic controllers (PLCs) represent the logic (decision) part of the control loop of sense, decide, and actuate. As we know, PLCs aren’t the only option for making decisions in a control loop, but they are likely why you’re here.
This digital report explains how motion control advances and solutions can help with machine control, automated control on assembly lines, integration of robotics and automation, and machine safety.
This article collection contains several articles on how advancements in vision system designs, computing power, algorithms, optics, and communications are making machine vision more cost effective than ever before.

Find and connect with the most suitable service provider for your unique application. Start searching the Global System Integrator Database Now!

Control room technology innovation; Practical approaches to corrosion protection; Pipeline regulator revises quality programs
Cloud, mobility, and remote operations; SCADA and contextual mobility; Custom UPS empowering a secure pipeline
Infrastructure for natural gas expansion; Artificial lift methods; Disruptive technology and fugitive gas emissions
Automation Engineer; Wood Group
System Integrator; Cross Integrated Systems Group
Jose S. Vasquez, Jr.
Fire & Life Safety Engineer; Technip USA Inc.
This course focuses on climate analysis, appropriateness of cooling system selection, and combining cooling systems.
This course will help identify and reveal electrical hazards and identify the solutions to implementing and maintaining a safe work environment.
This course explains how maintaining power and communication systems through emergency power-generation systems is critical.
The Engineers' Choice Awards highlight some of the best new control, instrumentation and automation products as chosen by Control Engineering subscribers. Vote now (if qualified)!
The System Integrator Giants program lists the top 100 system integrators among companies listed in CFE Media's Global System Integrator Database.
Each year, a panel of Control Engineering and Plant Engineering editors and industry expert judges select the System Integrator of the Year Award winners in three categories.
This eGuide illustrates solutions, applications and benefits of machine vision systems.
Learn how to increase device reliability in harsh environments and decrease unplanned system downtime.
This eGuide contains a series of articles and videos that considers theoretical and practical; immediate needs and a look into the future.
HMI effectiveness; Distributed I/O; Engineers' Choice Award finalists; System Integrator advice; Inside Machines
Women in engineering; Engineering Leaders Under 40; PID benefits and drawbacks; Ladder logic; Cloud computing
Robotic integration and cloud connections; SCADA and cybersecurity; Motor efficiency standards; Open- and closed-loop control; Augmented reality
Programmable logic controllers (PLCs) represent the logic (decision) part of the control loop of sense, decide, and actuate. As we know, PLCs aren’t the only option for making decisions in a control loop, but they are likely why you’re here.
This digital report explains how motion control advances and solutions can help with machine control, automated control on assembly lines, integration of robotics and automation, and machine safety.
This article collection contains several articles on how advancements in vision system designs, computing power, algorithms, optics, and communications are making machine vision more cost effective than ever before.

Find and connect with the most suitable service provider for your unique application. Start searching the Global System Integrator Database Now!

Control room technology innovation; Practical approaches to corrosion protection; Pipeline regulator revises quality programs
Cloud, mobility, and remote operations; SCADA and contextual mobility; Custom UPS empowering a secure pipeline
Infrastructure for natural gas expansion; Artificial lift methods; Disruptive technology and fugitive gas emissions
Automation Engineer; Wood Group
System Integrator; Cross Integrated Systems Group
Jose S. Vasquez, Jr.
Fire & Life Safety Engineer; Technip USA Inc.
This course focuses on climate analysis, appropriateness of cooling system selection, and combining cooling systems.
This course will help identify and reveal electrical hazards and identify the solutions to implementing and maintaining a safe work environment.
This course explains how maintaining power and communication systems through emergency power-generation systems is critical.
The Engineers' Choice Awards highlight some of the best new control, instrumentation and automation products as chosen by Control Engineering subscribers. Vote now (if qualified)!
The System Integrator Giants program lists the top 100 system integrators among companies listed in CFE Media's Global System Integrator Database.
Each year, a panel of Control Engineering and Plant Engineering editors and industry expert judges select the System Integrator of the Year Award winners in three categories.
This eGuide illustrates solutions, applications and benefits of machine vision systems.
Learn how to increase device reliability in harsh environments and decrease unplanned system downtime.
This eGuide contains a series of articles and videos that considers theoretical and practical; immediate needs and a look into the future.
HMI effectiveness; Distributed I/O; Engineers' Choice Award finalists; System Integrator advice; Inside Machines
Women in engineering; Engineering Leaders Under 40; PID benefits and drawbacks; Ladder logic; Cloud computing
Robotic integration and cloud connections; SCADA and cybersecurity; Motor efficiency standards; Open- and closed-loop control; Augmented reality
Programmable logic controllers (PLCs) represent the logic (decision) part of the control loop of sense, decide, and actuate. As we know, PLCs aren’t the only option for making decisions in a control loop, but they are likely why you’re here.
This digital report explains how motion control advances and solutions can help with machine control, automated control on assembly lines, integration of robotics and automation, and machine safety.
This article collection contains several articles on how advancements in vision system designs, computing power, algorithms, optics, and communications are making machine vision more cost effective than ever before.

Find and connect with the most suitable service provider for your unique application. Start searching the Global System Integrator Database Now!

Control room technology innovation; Practical approaches to corrosion protection; Pipeline regulator revises quality programs
Cloud, mobility, and remote operations; SCADA and contextual mobility; Custom UPS empowering a secure pipeline
Infrastructure for natural gas expansion; Artificial lift methods; Disruptive technology and fugitive gas emissions
Automation Engineer; Wood Group
System Integrator; Cross Integrated Systems Group
Jose S. Vasquez, Jr.
Fire & Life Safety Engineer; Technip USA Inc.
This course focuses on climate analysis, appropriateness of cooling system selection, and combining cooling systems.
This course will help identify and reveal electrical hazards and identify the solutions to implementing and maintaining a safe work environment.
This course explains how maintaining power and communication systems through emergency power-generation systems is critical.
click me