Example for PLC code for OPC UA Connection - startup and recovery

Is there an example PLC code for OPC UA Connection - startup and recovery?

Best reply by atubbs

When using the OPC UA Client app, it is necessary to start the connection manually as of version 1.16.0.  

This is detailed in this post:

/ctrlx-automation-how-tos-qmglrz33/post/connect-opc-ua-client-to-mlc-and-siemens-s7-opc-ua-server-DJ0QiVRytd6pEuC

In this same post, a Node Red example is given for starting the OPC UA Client if the current state is Disconnected.  This can be used on startup or to recover if the connection is lost during runtime.

Attached is PLC Code to do the same.  The file is a  PLCOpenXML file that can be imported into the ctrlX PLC Engineering program.

connectOPCUAClientg.xml
7.62KB
View original
1 reply