10/12/2019 9:39 PM | |
Joined: 5/15/2018 Last visit: 10/4/2022 Posts: 2 Rating: (0) |
Hi, I try to use the template which is placed in the forum to describe my problem;
The Problems (Bugs) : OPC_UA_Connect errors; 16#8005_0000 and 16#8081_0000. OPC_UA_ConnectionGetStatus error; 16#A000_0105 I have a Profinet Subnet which is connected to one of the interfaces of the CPU to control process components. I use the second interface in order to connect to an OPC UA Server and only read the tags as an OPC UA Client. OPC UA Server: KEPServer EX/UA Server V.3 I use example projects which are placed in the subject;TIP: S7 1500 OPC UA Server Client Communication, ... The main problem is even I can connect to the OPC UA Server from TIA Portal (while I'm trying to create Client Interface) I can't establish communication between PLC and OPC UA Server in the logic. Actually I have followed all the instructions. I can reach to the OPC UA Server from TIA Portal when I try to create Client Interface (in attached file Online OPC Server Communication in TIA Portal) Also, I can drag and drop the items that I try to read to Read List in the Client Interface from Online OPC UA Server connection (in attached file Online Creation of Read List from OPC UA Server) I use also BlockMonitoring FB which is already in example projects to monitor communication status. I got two errors after triggering a communication from OPC_UA_Connect function. The first one is 16#8005_0000. I also sometimes have another error as 16#8081_0000. However, I haven't succeeded a communication through OPC UA Server yet. (screenshots are attached in the file) I have also 16#A000_0105 error when I monitor OPC_UA_ConnectionGetStatus function. I couldn't find any explanation for this error in the help (Information System TIA Portal)
OpcUa_BadCommunicationError : Possible causes: The server address (ServerEndpointURL) is incorrect or incomplete. The server does not accept the buffer size sent by the client during connection establishment. The client's connection resources required to establish the connection are used up. Since I have a communication from TIA Portal through OPC UA Server I think the server address that I defined shouldn't be wrong. However, buffer size could be a problem but I don't have any idea about OPC UA Server which is out of my control.
BadTcpNotEnough Resources : There are not enough resources to process the request. I don't have any idea about this error. I'm pretty sure about configurations in CPU properties and network properties of the interface which is used to communicate through OPC UA Server. I use the same IP adress, subnet mask and gateway in my computer when I connect to the server from TIA portal. But I have a doubt about HW Configuration. Do I have to define a subnet to the CPU interface which is dedicated to communicating to OPC UA Server? Is there anyone who has had a similar problem during OPC UA (Client) communication? How should I approach to the problem to solve it? Thanks. AttachmentOPCUAClientCommunicationError.pdf (1400 Downloads) |
6/16/2022 2:29 PM | |
Joined: 3/16/2022 Last visit: 5/7/2024 Posts: 1 Rating: (0) |
Anybody already a solution? I tried all the proposed solutions from this topic but nothing works. EDIT: AttachmentOpcUA Error.pdf (594 Downloads) |
Last edited by: fschilder02 at: 01/29/2024 13:39:07 |
|
4/10/2024 8:05 PM | |
Joined: 9/8/2023 Last visit: 5/9/2024 Posts: 1 Rating: (0) |
Hi Chnztrk and to everyone I've found the solution for this problem well, this worked for me and I hope it works for you too. I did what comes in the following Link: in the solution #1, I have assigned the IP address with its port # of the server opc ua server. I did this in the following tag: <name>_Configuration > Connection > ConnectionInfo > ServerUri. Before doing this, first set the "opcUaConnect" bit to FALSE, this variable is linked to the communication block "opcUaClient". Once the IP address + port # of the opc ua server is set. Enter the PLC in online mode and send it to Stop mode, then apply a MRES. Wait for the connection to re-establish, put it in RUN again and try to establish communication again with the opc ua server. To do this set the ControlingInterface_opcUaConnect variable to TRUE, the error will no longer appear in the Status variable and in the SubFunctionStatus. Anyway, if this did not work for you, there is another possible solution in this link: https://support.industry.siemens.com/cs/de/en/view/109771693 |
Last edited by: Jen_Moderator at: 04/11/2024 08:05:41Text formatting and link optimized. |
|
This contribution was helpful to1 thankful Users |