Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Prosys OPC UA Client do not read variables. The connection is FAILED.
February 10, 2020
20:56, EET
Avatar
gselvas92
Member
Members
Forum Posts: 3
Member Since:
February 10, 2020
sp_UserOfflineSmall Offline

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.

February 11, 2020
12:09, EET
Avatar
gselvas92
Member
Members
Forum Posts: 3
Member Since:
February 10, 2020
sp_UserOfflineSmall Offline

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 –
——————————————————-

February 11, 2020
13:11, EET
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 469
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

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.

February 11, 2020
16:48, EET
Avatar
gselvas92
Member
Members
Forum Posts: 3
Member Since:
February 10, 2020
sp_UserOfflineSmall Offline

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 …

February 12, 2020
9:52, EET
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 469
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

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.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 267

Currently Online:
9 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 93

pramanj: 86

ibrahim: 69

kapsl: 57

gjevremovic: 49

TimK: 41

Fransua33: 39

fred: 36

Rainer Versteeg: 32

Thomas Reuther: 26

Member Stats:

Guest Posters: 0

Members: 957

Moderators: 13

Admins: 1

Forum Stats:

Groups: 3

Forums: 14

Topics: 935

Posts: 3932

Newest Members:

mattiee679022481, osvaldolennox12, brandenmallette, mellisafcm, P0001, launastanfill, Oleksandr, Matti Siponen, gselvas92, ashleighfinlay

Moderators: Jouni Aro: 834, Otso Palonen: 32, Tuomas Hiltunen: 5, janimakela: 0, Pyry: 1, Terho: 0, Petri: 0, Bjarne Boström: 469, Heikki Tahvanainen: 402, Jukka Asikainen: 1, Teppo Uimonen: 18, Markus Johansson: 11, Matti Siponen: 6

Administrators: admin: 0