Now that we finished the forward direction of our signals journey, time to follow our foot steps back from SCADA to the field, giving automatic and manual control commands to our process to alter it.
Previous:
“Journey to the Center of the Plant – from FIELD to SCADA and Back – Part I”
“Journey to the Center of the Plant – from FIELD to SCADA and Back – Part II – Network and OPC”
“Journey to the Center of the Plant – from FIELD to SCADA and Back – Part III – SCADA Software”
SCADA Systems Information Flow from Field Instruments to Control Room and Back – Part IV
Back to our process, we had one sensor and one actuator, sensor was a temperature transmitter that is measuring the tank’s temperature, and the actuator was a solenoid valve that when opened shall allow steam to pass through a heating coil embedded into the tank to heat up its contents.
In order to clearly understand the journey back, allow me to start it from the middle, at the PLC control logic that controls the solenoid valve, not from the SCADA.
Sounds strange I know, but don’t worry, later you will thank me for that.
PLC Control Logic
As per the process guys, they told you that they wish to control the temperature so it would be fixed at 75 ºC, and they allow for a variation of the process temperature between 70 and 80 ºC.
So you decided to have the following control philosophy:
- When tank temperature drops below 72 ºC, turn ON the solenoid valve.
- When tank temperature rises above 78 ºC, turn OFF the solenoid valve.
Once you drafted that down, you translated this into that simple, single Rung, ladder diagram below.
You run a simulation and it works just fine. Logic seems to be air-tight.
But then you think: How on earth my SCADA is going to get involved with, and to interrupt, this air-tight logic? I will tell you how.
Prepare the PLC Program to Receive SCADA Commands
First, you need to define what the operator needs to do with the valve. Write down a list:
- Operator needs to see the valve status.
- Operator needs to be able to change the control mode of the valve, Automatic with the logic, or Manual from the SCADA screen.
- Operator needs to be able to issue a manual command to open or close the valve from the SCADA screen.
Second, allocate a memory location in the PLC memory for each function, so when the SCADA wants to do these functions, it only has to write (or read) information to (or from) these locations. In our case we will allocate three memory bits (or internal relays, or markers), the name highly depends on the PLC vendor’s manual but they are all the same. We chose bits and not words as its all discrete information and commands.
- For valve status, allocate M10
- For AUTO selection, allocate M11
- For Manual Command, allocate M12
Let’s modify our PLC program.
Now our PLC program is ready to receive SCADA commands, time to add these new variables to our OPC server.
Note: In actual applications, we mostly rely on an external feedback signal to indicate the actual valve status on the field, it’s not correct to just use the PLC output, as we might have a failure on the actuator and never knew it. This is only done here to simplify the subject.
Modify the OPC Server
Just as we did in Part II, open your ABC OPC server and modify the configuration file by adding three more OPC items to the same OPC Group “TANK”, your configuration should look like the figure below.
You can actually use the OPC server software with the PLC itself to test if writing 0s or 1s in these memory bits is doing the needed function or not, once you are sure it’s working, you need to modify your XYZ SCADA software.
For more information about how OPC works, review Part II – Network and OPC.
Update the SCADA
Back to our SCADA software, first thing to do is to create three new tags in the Tags Database for your three new variables (Valve_Status, Valve_Auto and Valve_Manual_Command).
Next, go to your graphics editor, open your tank screen, and add a valve symbol, set the data source property to your Valve_Status Tag and click Save. Now you have a valve symbol that is changing it’s according to the actual solenoid valve status.
Add a couple of toggle switch symbols to your screen, one for the mode selection and one for the manual command, link them to your tags, and you have a fully functioning system.
Now run your SCADA, test everything life, 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 your Solenoid valve to the PLC output, wait let me see …… oops!
Your solenoid valve nameplate says it operates @ 220 VAC, and your PLC output module is a transistor type that can only handle up to 24 VDC, you should have planned that 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!
The Interface Relay
Sometimes called the interposing relay, but I like the first name better.
Whichever the name, we have to install one of those in the PLC panel. It shall provide isolation between the PLC output and the solenoid valve, allowing the PLC to operate the relay coil with 24 VDC, and the relay contact will connect the 220 VAC supply to the solenoid valve.
Interface relays, like normal relays consists of two parts:
- The relay base (or socket), greed part in the photo above, it provides an easy way to plug/unplug the relay, it provides also the connection of the coil and contacts of the relay.
- The relay, the white part in the photo above, consists of the coil and the contacts, and it provides the switching function needed.
The interface relay socket provides additional protection to the PLC output point, a separate post will come about the wiring of PLC I/O points will cover that issue in details.
With that done, you can now control the solenoid using the PLC output Q1 safely. Our job here is finished, your SCADA application is fully functional.
Conclusion
Through the four parts of this topic, we went through all the various steps and transformations of signals, data and information from the field to SCADA and then back to field again. We tried to cover the subject in enough details, without sinking in the details.
Follow The Control Blog to receive more posts around similar subjects.
August 10, 2015 at 8:51 am
muy simple y explicito toda la informacion gracias por ser tan breve, seguimos en contacto.
LikeLike
August 11, 2015 at 1:33 am
All four module are having very good information, it is helpful to understand the hole cycle.
LikeLike
August 11, 2015 at 2:46 am
I am glad you took the time to read them all.. Today we have a new post about PLC timers.. hope you enjoyed it as well…
LikeLike
August 11, 2015 at 2:50 pm
Awesome series I am really impressed you took the time to mention having external feedback and making sure you I/O was actually connected and mention inter posing relays.
Good job
LikeLike
August 11, 2015 at 2:53 pm
Thanks to you Kyle, I hope you follow the blog for future posts, another post is coming soon about more timer functions.
LikeLike
August 13, 2015 at 8:39 pm
Great explanation sir.thank you very much
LikeLike
August 18, 2015 at 8:47 pm
Great post, Thanks Shady, you have resume as simple as you can, the information that take a lot of hours of time in google search.
I will stay tuned to your blog.
LikeLike
August 24, 2015 at 11:48 am
Great series of posts, Shady. Very easy to understand, yet covers the necessary information.
BTW, are you sure you ran a simulation, and the logic is air tight? 😉
LikeLike
August 24, 2015 at 11:57 am
Not really, did you?
LikeLike
August 24, 2015 at 2:02 pm
No, only in my head.
I’m pretty sure the first contact should be a |<|, though.
LikeLike
August 24, 2015 at 2:40 pm
You are right… that’s a mistake… will fix it once i am on a computer… many thanks…
LikeLike
August 30, 2015 at 7:54 pm
Great explanation, thank you very much
LikeLike
December 29, 2015 at 12:33 pm
Dear Mr. Shady Yehia
Thanks alot, but still I have confusion between SCADA and DCS. could you please cover DCS in the same way I will be grateful.
LikeLike
January 3, 2016 at 10:31 am
Dear Mohammed,
You can try reading my Article in Control Engineering Magazine, November Issue, it explains how to choose between PLC/SCADA and DCS. Below is the link to it..
http://www.controleng.com/single-article/six-steps-to-choose-between-plc-and-dcs-for-process-industries/371966174aae11e3c5810f1a833994d9.html?OCVALIDATE=
LikeLike
January 5, 2016 at 8:30 am
Thank you very much brother
LikeLike
March 18, 2016 at 4:56 pm
I was trying to find a simplified explanation on how the signals transfers from the transmitter to the operator. You saved me a lot of time. Now I wonder whats different in case the PLC is replaced with DCS. What’s added to that?
LikeLike
September 30, 2017 at 2:21 am
Very helpful information about automation industry.
LikeLike
August 11, 2018 at 1:24 pm
A very informative blog. Thank you for sharing with us. To learn more about SCADA visit our website i.e., Innovic India Pvt. Ltd
LikeLiked by 1 person
March 27, 2019 at 10:08 am
Your articles are usually detailed, with practical information to help engineers on the ground. Thanks for sharing this great post.
LikeLike
October 10, 2019 at 7:16 am
Great explanation ….
LikeLike
May 17, 2021 at 11:59 am
PLC SCADA Online Training Institute in Noida as per the current industry standards. Our training programs will enable professionals to secure placements in MNCs. We are providing our world-class training facilities for all the students who want to become professional.
LikeLike