Write the script in the PLC or HMI

Snap25

Lifetime Supporting Member
Join Date
Dec 2014
Location
Michigan
Posts
237
The biggest time and productivity killer for me during projects are :
  1. Being OCD with the architecture and tagname structure
  2. Deciding where to house alot of my structure text code
  3. GRAPHICS!!


Right now I'll just discuss number 2. Example : In the HMI>Recipe Manager Page, I created a dropbox list to select a recipe. On the same page I have a list of 10 different memory tags as my user-defined parameters. Once the save button is pressed, I wrote a script in the Archestra graphic to move all that data to the PLCs "Recipe_1" tags.

I spend a lot of unnecessary time second guessing if I'm doing it the best way possible or trying to decide if I should a dozen similar scripts in the PLC or HMI?
 
Last edited:
The biggest time and productivity killer for me during projects are :
  1. Being OCD with the architecture and tagname structure
  2. Deciding where to house alot of my structure text code
  3. GRAPHICS!!


Right now I'll just discuss number 2. Example : In the HMI>Recipe Manager Page, I created a dropbox list to select a recipe. On the same page I have a list of 10 different memory tags as my user-defined parameters. Once the save button is pressed, I wrote a script in the Archestra graphic to move all that data to the PLCs "Recipe_1" tags.

I spend a lot of unnecessary time second guessing if I'm doing it the best way possible or trying to decide if I should a dozen similar scripts in the PLC or HMI?


As a general rule, I try to avoid doing any logic in an HMI that could instead be done in the PLC. That said, I'm not obsessive about it when HMI scripting obviously offers the most efficient method to handle things like recipe management. I definitely avoid doing motor control within an HMI, although it is feasible to do so. I've had to work on applications in which HMI toggles directly control solenoids, etc., and that's something that I just wouldn't do.
 
You haven't really described your problem, you say "Structured Text", but that's a PLC thing not a SCADA thing. You then use an example of recipe interaction from SCADA??

From a script perspective, Are you talking about script organization in SCADA. Should it be all on a 'button' object, or should it call a function and pass parameters from the button?

You can code the PLC to work with the data it has, if the PLC doesn't have access to data (like recipes) then SCADA has to send it to the PLC, there insn't really an option. And no, PLCs shouldn't be a the primary recipe storage area unless a "recipe" consists of 10 setpoints and there aren't many of them.
 

Similar Topics

People are telling me that I need the "Advanced" version for this purpose. Should I uninstall the "Professional" version beforehand?
Replies
7
Views
3,279
Hello guys I need a help from you all to complete my assignment I have more than 1000 tags in my project Now I have to make cause and effect chart...
Replies
0
Views
3,483
Can any one write script / batch commands ?? Iknow its not a PLC question but it is related in a way. This is for use at work with the...
Replies
2
Views
3,160
Hi everyone, I hope you're all doing well. I'm currently working on updating an HMI project for the GP2500, and I've encountered a bit of a...
Replies
1
Views
24
I've gotten to the learning curve where I can program a call for pump to come on at set point but I'm not sure how to turn the same pump off when...
Replies
1
Views
112
Back
Top Bottom