Only execute a Studio 5000 Strategy if an input changes in value

plctek

Member
Join Date
May 2022
Location
toronto
Posts
23
Hello,

The way I have it setup is that my PLC executes various calculations for example :

Calculation 1,
Calculation 2,
Calculation 3,
Calculation 4, and
Calculation 5.

What I want to happen, is to continue to execute my different routines for 1,2 and 3, but I only want 4 and 5 to change if one of the input variables were to change in value if that makes sense.

The reason for this is that my PLC takes a lot of time to perform each calculation and i would like to speed it up, by only executing 4 and 5 on a needed basis. (when variables change)
 
Put those calculations in a separate sub routine and only call those subroutines when you want the calculation to be run.

I did do that. What I was thinking was using a NEQ command, so the routine would only execute assuming the NEQ logic remain. It works when I do it with one variable.

But if I use more than one variable it gets messy.
 
I did do that. What I was thinking was using a NEQ command, so the routine would only execute assuming the NEQ logic remain. It works when I do it with one variable.

But if I use more than one variable it gets messy.


ORing the NEQs is messy?
 

Similar Topics

Hello experts. Anyone has any idea how to make BLKMOV execute only once? I have tried with R_TRIG and (P) but it wont write to my location.
Replies
3
Views
207
Hi, I am currently using ProgramExecute to open a Windows Explorer window in my application to a specific directory (WinCC 7.5). Is there a way...
Replies
1
Views
520
Hi guys, Im back again, this time I cannot minimized excel even though i put 6 on the exec mode.. this is my cicode.. Exec("C:\Program...
Replies
1
Views
1,097
Guys, so I have doing cicode function, to execute excel file, the the values from the excel and extract it to the tags. The problem is, I dont...
Replies
4
Views
1,053
Hello, I am testing a Micro 820 and for whatever reason it won't execute the code. I am toggling inputs but the outputs still show as blue (off)...
Replies
1
Views
1,445
Back
Top Bottom