Scripting Aspect read Function does not update
How can the execution of the read-function be "forced" or continuously updated?
To illustrate the problem, I created a simple script in a Scpripting Aspect:
CurrentTime = Time()
When looking at Details->Property View and selecting "Subscribe for live data", the value is updated once, only.
Please see attached image of Scritping Aspect setup.
I don't think this is possible. The reason for the lack of documentation is because scripting is not a publically supported programming interface.
Please tell us what you are trying to create, perhaps there is an alternative available? Eg the Calculation aspect can provide you with a continuous feed of data.
Honestly speaking; System 800xA offers few "sandboxes" where bad code can "explode" without causing any harm. In best case, the local workplace will show an error dialog or two but continue its service. The scripting aspect can be very nasty since it can interact with "hooks". I've seen it "kill" the Alarm Manager service. The Simple Scripting is preferred.
Thanks for the quick response!
Note: This issue is connected to the other question http://www402.abbext.com/Accessing-Ge...
The main problem is a PLC Connect issue causing loss of OPC-update from a Siemens PLC. The communication seems to "freeze" including all the values collected from this PLC.
800xA/PLC Connect does not give any alarm or status message indication that the communication is faulty.
As a workaround, we planned to implement a simple watchdog system, i.e. a "rolling" PLC value and a simple scripted watchdog alarm on the 800xA system. The idea was to script a watchdog to alarm if the value freezes for a few seconds.
Using (Simple) Scripting Aspect to detect communication error seems to work ok, but the transfer to an Alarm Expression and/or General Property (using property transfer) is not updating as expected.