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.
Disclaimer
This document governs the use of our Community Forum. By registering and using the platform, you accept these conditions.
The COPA-DATA Community Forum serves to encourage the exchange of information and experience about the zenon software between forum users respectively zenon users.
Please mind that any published information on the Community Forum is the subjective opinion and view based on the experience and the level of knowledge of the author. COPA-DATA does not overtake any responsibility for the content and the accuracy of the shared information.
Users of the Community Forum are encouraged to share only well-founded experiences and to point out any risks associated with the implementation of proposed solutions to problems. COPA-DATA at its absolute discretion, reserves the right to moderate the forum. In this connection COPA-DATA may remove any information containing false facts, potentially dangerous solutions, bad language or content that may insult, degrade or discriminate others. COPA-DATA may block a non-complying user from forum access if the user violated this provision.
COPA-DATA reserves the right to change this document from time to time at own discretion.
Ing. Punzenberger COPA-DATA GmbH
Karolingerstraße 7b · 5020 Salzburg · Austria
www.copadata.com