Issue launching script via REMA instant function

Issue launching script via REMA instant function

Afteroon all,

I've come across an issue when using a REMA to fire off a script when limit value is reached using the 'instant' function.

I've narrowed it down to the minimum required to replicate it.

I am using an internal variable to use as a kind of command variable for switching primary / standby server. I use write set value (or do it remotely via process gateway) to write a '1'. I then use a rema to evaluate and if the value is a '1' then start script. The script just runs the 'Redundancy Switch', then also does a WSV to return the value back to 0.
After various troubleshooting, even if I dont use the 2nd part of script to WSV = 0, the script doesnt run when the rema is evaluted.
I know the rema is being evaluated, as the value I put in limit value is showing up in the CEL, so its just the function to call the script which is not firing.

If I put the 'redundancy' switch function in to the REMA... it works.
If I put a function to run a script (even if that script only has the 'redndancy swtich' funtction in it), then it doesnt work.


Is there a reason why the rema shouldn't be able to fire off a script? Is there another way to 'reset' the value back to zero after running the function?

I have tried using allocations so the function isnt being called by the REMA inside the same variable etc, but it seems that is not the issue anyway.. the issue is a REMA is not allowing any 'script' to be triggered by a function.

Zenon 8.20 build 65486.

Thanks,

Dave

This is a migrated post! Originally posted on 11.05.2020 by user HMIdeveloper123. Please be aware that information can be outdated.