20:56, EET
February 10, 2020
Hello, excuse my English
I have a Siemens PLC configured as an OPC server configured as “No security – NONE”.
When I try to connect to the Prosys OPC Client application by entering the URL of the PLC address to connect, the FAILED status appears, but I can enter and navigate through the different PLC data blocks, however, by dragging a variable into the “value” column is empty. Before it did not happen to me, since when entering the url, “Running” always appeared. I have another PLC with the same model and version and it is configured the same and I have no problems.
In this PLC that I comment, if I try to connect the UAExpert application I have no problem and I can see the values perfectly.
I am running it locally. I have ping. Everything is perfect.
When I run the application made in Java, I do not receive any error, I get the message “SERVER CONNECTED”, I visualize all the variables that are available in the block, but the value is always 0. It does not read them.
I’m desperate since I can’t find any solution about it. Why does UAExpert allow me to connect and view data and Prosys OPC UA Client does not?
Does the Prosys OPC UA application have a log to be able to visualize what is happening when the “FAILED” connection results?
Thank you.
12:09, EET
February 10, 2020
I have taken the SampleConsoleClient to see the log and I get the following message:
ServerState changed from Unknown to Failed
Log:
Enter the connection URL of the server to connect to
(press enter to use the default address=opc.tcp://1.1.5.2:4840):
02/11/2020 11:00:00.215 INFO Prosys OPC UA SDK for Java v4.2.0-955
02/11/2020 11:00:00.215 INFO (c) Prosys OPC Ltd.
Select the security mode to use.
(n=None,s=Sign,e=SignAndEncrypt)
n
02/11/2020 11:00:02.490 INFO Loading certificates..
02/11/2020 11:00:02.492 INFO Reading application certificate from C:\Users\.\Documents\NetBeansProjects\SampleConsole\PKI\CA\private\SampleConsoleClient@BCN-PO-367.mshome.net_2048.der
02/11/2020 11:00:02.498 INFO Reading private key from keystore C:\Users\.\Documents\NetBeansProjects\SampleConsole\PKI\CA\private\SampleConsoleClient@BCN-PO-367.mshome.net_2048.pem
Connecting to opc.tcp://1.1.5.2:4840
Using SecurityPolicy http://opcfoundation.org/UA/Se…..olicy#None
02/11/2020 11:00:06.205 INFO Using an alternate endpoint URL ‘opc.tcp://192.168.0.2:4840’ instead of the requested ‘opc.tcp://1.1.5.2:4840’
02/11/2020 11:00:08.424 INFO Server sent a certificate, although SecurityPolicy NONE is used
02/11/2020 11:01:49.557 WARN Encountered null or empty DataTypeDictionary NodeId: ns=3;i=6001, skipping
02/11/2020 11:01:56.892 INFO TypeDictionary initialized successfully
ServerState changed from Unknown to Failed
ServerStatus: ServerStatusDataType [StartTime=”02/11/20 08:54:08.8959614 GMT”, CurrentTime=”02/11/20 09:59:10.0240569 GMT”, State=”Failed”, BuildInfo=”BuildInfo [ProductUri=”https://www.siemens.com/s7-1500″, ManufacturerName=”SIEMENS AG”, ProductName=”SIMATIC S7-1500 OPC UA”, SoftwareVersion=”V02.05.00″, BuildNumber=”00″, BuildDate=”01/01/01 00:00:00.0000000 GMT”]”, SecondsTillShutdown=”0″, ShutdownReason=””]
*** Connected to: opc.tcp://1.1.5.2:4840
*** Current Node: Root: FolderType (ID: i=84)
——————————————————-
– Enter x to close client
——————————————————-
– Enter 0 to start discovery –
– Enter 1 to connect to server –
– Enter 2 to disconnect from server –
– Enter 3 to browse the server address space –
– Enter 4 to read values –
– Enter 5 to write values –
– Enter 6 to register nodes –
– Enter 7 to unregister nodes –
– Enter 8 to create a subscription –
– Enter 9 to call a method –
– Enter 10 to read history –
——————————————————-
13:11, EET
April 3, 2012
This is most likely the same as: https://forum.prosysopc.com/forum/opc-ua-java-sdk/java-nio-bufferunderflowexception-when-connecting-to-a-opc-ua-server/. We are aware of the problem (while I would like to argue it is not our problem, we still need to implement a workaround).
If needed, you might need to downgrade to 4.1.4 before we make the next release with some kind of a fix.
16:48, EET
February 10, 2020
Bjarne Boström said
This is most likely the same as: https://forum.prosysopc.com/forum/opc-ua-java-sdk/java-nio-bufferunderflowexception-when-connecting-to-a-opc-ua-server/. We are aware of the problem (while I would like to argue it is not our problem, we still need to implement a workaround).If needed, you might need to downgrade to 4.1.4 before we make the next release with some kind of a fix.
I have already tried with the SDK version 4.2.0, 4.1.2, and 4.1.4 and continue with the same problem …
9:52, EET
April 3, 2012
Hmm, sorry, should have read better, the problem is visible in your log. The ServerState is Failed, i.e.meaning the actual server-side node Root/Objects/Server/ServerStatus/State value is “1 (Failed)” (it is an Enumeration with value 1). If UaExpert somehow works, you should be able to confirm this with it.
The OPC UA Specification 1.04 Part 5 section 12.6 ServerState Table 136 lists the “Failed” as follows:
“
FAILED_1 A vendor-specific fatal error has occurred within the Server. The Server is no longer
functioning. The recovery procedure from this situation is vendor -specific. Most Service
requests should be expected to fail.
“
I do not think I have seen that one used by any servers. However if it is anything other than “0 (Running)” it means the server is not in operable state (by the specification) and thus we wont e.g. send PublishResponses, thus if you make Subscriptions you wont get any data to them (assuming you could make them even in the first place). Therefore you will need to somehow fix the server so that it is in proper “Running” state.
Most Users Ever Online: 1919
Currently Online:
61 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 88
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 739
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1524
Posts: 6453
Newest Members:
shaylamaggard4, rickyjuarez140, jonathonmcintyre, fannielima, kristiewinkle8, rust, christamcdowall, redaahern07571, nigelbdhmp, travistimmonsModerators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1027, Jimmy Ni: 26, Matti Siponen: 346, Lusetti: 0
Administrators: admin: 1