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
OPC UA Client cannot connect to Sinumerik PLC
July 11, 2022
15:39, EEST
Avatar
SebastianS
Member
Members
Forum Posts: 3
Member Since:
June 1, 2022
sp_UserOfflineSmall Offline

Hello,

I’m currently working on a problem that an OPC UA client which has been implemented with the SDK Version ua-client-server-sdk-4.5.8-1468 is not able to connect to an
OPC UA server (Siemens SinumerikServer / Software Version 03.01.02.00). I’ve already checked the plc configuration and there’s no rejection of the certificate or something similar. The service is also definitely using the correct authentification data but unfortunately it still doesn’t connect to the server while logging the following information in its log file:

caused by:
com.prosysopc.ua.stack.common.ServiceFaultException: ServiceFault [ResponseHeader=”ResponseHeader [Timestamp=”07/08/22 12:16:47.5761468 GMT”, RequestHandle=”0″, ServiceResult=”Bad_UserAccessDenied (0x801F0000) “User does not have permission to perform the requested operation.””, ServiceDiagnostics=”Diagnostic Info:
“, StringTable=”[]”, AdditionalHeader=”null”]”]

Thanks a lot in advance for your helpful comments regarding this topic!

July 12, 2022
9:46, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1009
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

As the error indicates, you don’t have access to that service with your user account. Are you using Anonymous user or UserName and Password? Check out which ServiceRequest this is, for example with Wireshark, and find out from the server which user account you need to use to be able to access it.

July 12, 2022
9:48, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1009
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Or since you mention that you cannot connect, the server is probably just prohibiting Anonymous access, so you will need to use a Username and Password – or reconfigure the server.

July 13, 2022
12:42, EEST
Avatar
SebastianS
Member
Members
Forum Posts: 3
Member Since:
June 1, 2022
sp_UserOfflineSmall Offline

I’m using the access via Username and Password. I also checked the access data with the help of another client and it works fine there. But as soon as I start the OPC UA Service which is programmed with the sdk it shows the mentioned line of my first post in its log.

July 13, 2022
17:30, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1009
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

OK, so I assume you have used UaClient.setUserIdentity(userName, password), then.

Could you verify the functionality with Wireshark as instructed in this article and preferably compare the logs with the communication of the other client. Maybe that helps you to figure out what you are doing differently.

If you can’t figure out yourself, you can send the logs to our support by email.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 518

Currently Online:
15 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 135

pramanj: 86

Francesco Zambon: 81

rocket science: 77

ibrahim: 75

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

fred: 41

Member Stats:

Guest Posters: 0

Members: 679

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1467

Posts: 6259

Newest Members:

DonaldPooma, fidelduke938316, Jan-Pfizer, DavidROunc, fen.pang@woodside.com, aytule, rashadbrownrigg, christi10l, ahamad1, Flores Frederick

Moderators: Jouni Aro: 1009, Otso Palonen: 32, Tuomas Hiltunen: 5, Pyry: 1, Petri: 0, Bjarne Boström: 983, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 26, Teppo Uimonen: 21, Markus Johansson: 42, Niklas Nurminen: 0, Matti Siponen: 321, Lusetti: 0, Ari-Pekka Soikkeli: 5

Administrators: admin: 1