Access to PLC connect RTDB from external apps
Hello, I am looking for a way to manipulate one tag's quality in RTDB to force PLC connect to do a switchover to redundant server (switchover at bad quality). Has anyone implimented such code? in VB script or C++. Or some other way of doing the same?
Answers
Hi Tajinder,
in Program Files/ABB Industrial IT/OperateIT/PLC Connect/Samples/PLCVariableAccess you will find two examples written in VB.NET that demonstrate how to do this. Basically add a reference to AdsScadaHdlr 1.0 Type Library and use the Variables/Variable interfaces, first call nit or init2 to point out the control network and then with the WriteValue method you can set both the value and the quality, using the WriteValueEx method you can set the timestamp as well.
Add new comment