Error diagnosis
In the following sections, possible errors for all components of the OPC UA setup are shown in the form of a table. In addition, helpful troubleshooting hints are provided for the respective errors.
Behavior | Remedy |
|---|---|
The attempt to read or write a StructuredDataType from a server using the PLCopen function blocks fails. | Structured Data Types are not supported by the PLCopen-based client. Please use the I/O client for this purpose. |
When the PLCopen function blocks are executed, the Busy output remains TRUE, but no error is output and the timeout is not triggered. | This is an indication of insufficient ADS router memory. Please increase the router memory in the corresponding settings of the TwinCAT ADS router. |
When creating a new I/O client by specifying the Server URL with the host name of the server, no connection can be established subsequently via the AddNodes dialog. | Please check if name resolution is working in your network. Alternatively, try again via the IP address of the server. |
Some configuration items from the I/O client are not present, although they should be according to the documentation. | In this case, the System Manager description file (TMC) was probably not updated after a TF6100 update. Please execute the command "Reload TMC" from the context menu of the I/O client to reload the description file. |
Write commands to a variable are not executed by the I/O client or do not reach the server. | Please check whether the "Write Enable" output has been enabled on the I/O client. |
After an upgrade from product version 1.x to 2.x, a PLCopen function block reports ADS error "6". | To use the PLCopen function blocks in product version 2.x, you must create a Virtual OPC UA Device in the I/O area of your TwinCAT project and store its AMS Net ID (to be found in the Settings tab) in the "sNetId" variable of the parameter list of the Tc3_PLCopen_OpcUa library. |
After the initial activation of a configuration on a newly set up system, TwinCAT remains in stop mode for a longer period of time. | When activating a configuration on a newly set up system for the first time, the TwinCAT OPC UA Client generates a self-signed certificate. As this process takes place within the TwinCAT context, the start may be slightly delayed, depending on the performance class of the target platform. Please note that this is a one-off process that only occurs the first time a configuration is activated. |