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
Update node on server from client
June 29, 2021
17:30, EEST
Avatar
Sabari
Member
Members
Forum Posts: 35
Member Since:
June 21, 2021
sp_UserOfflineSmall Offline

Hello,

I am using prosys sdk for java and i want to update a node on server that contains two variables. Does the SDK provide a method for this ?

Thanks

June 30, 2021
11:32, EEST
Avatar
Sabari
Member
Members
Forum Posts: 35
Member Since:
June 21, 2021
sp_UserOfflineSmall Offline

Hello,
I try uaClient.writeAttribute(nodeId,Attributes.Value,myValue) but i got this error
com.prosysopc.ua.StatusException: Bad_NotWritable (0x803B0000) “The access level does not allow writing to the Node.” StatusCode=Bad_NotWritable (0x803B0000) “The access level does not allow writing to the Node.”

June 30, 2021
11:53, EEST
Avatar
Matti Siponen
Moderator
Members

Moderators
Forum Posts: 189
Member Since:
February 11, 2020
sp_UserOfflineSmall Offline

Hello,

StatusCode Bad_NotWritable means that the user isn’t allowed to write the Value of the specified Node. The Server might allow another user to write the Value, but it could also not allow any users to write it.

Please, check the AccessLevel and UserAccessLevel Attributes of the Nodes. If they contain the CurrentWrite flag, then writing the Value of the Node is allowed. Otherwise, writing it is not allowed.

June 30, 2021
13:05, EEST
Avatar
Sabari
Member
Members
Forum Posts: 35
Member Since:
June 21, 2021
sp_UserOfflineSmall Offline

Hello,

The AccessLevel and UserAccessLevel Attributes are set to CurrentRead.

How can i set thoses Attributes to CurrentWrite on opc ua server ?

Thanks

June 30, 2021
16:17, EEST
Avatar
Jimmy Ni
Moderator
Members

Moderators
Forum Posts: 25
Member Since:
February 1, 2019
sp_UserOfflineSmall Offline

Hello Sabari,
You need to access the source code of your OPC UA server to modify these attributes of the node. Please refer to the sample code in SampleConsioleServer.java which is included in the SDK.

June 30, 2021
18:35, EEST
Avatar
Sabari
Member
Members
Forum Posts: 35
Member Since:
June 21, 2021
sp_UserOfflineSmall Offline

Hello,

I try myNode.setAccessLevel(AccessLevelType.CurrentWrite) and myNode.setUserAccessLevel(AccessLevelType.CurrentWrite)
but i still get the error :com.prosysopc.ua.StatusException: Bad_TypeMismatch (0x80740000) “The value supplied for the attribute is not of the same type as the attribute’s value.” StatusCode=Bad_TypeMismatch (0x80740000) “The value supplied for the attribute is not of the same type as the attribute’s value.”

July 2, 2021
9:29, EEST
Avatar
Matti Siponen
Moderator
Members

Moderators
Forum Posts: 189
Member Since:
February 11, 2020
sp_UserOfflineSmall Offline

Hello,

As the name of the StatusCode suggests there has been a mismatch of data types. This StatusCode is returned by Write Service when attempting to Write a value with DataType that isn’t the same or a subtype of the target Attribute’s DataType. Verify that the value you’re attempting to write has a proper DataType. See https://reference.opcfoundation.org/Core/docs/Part4/5.10.4/ for more information on the Write Service.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 267

Currently Online:
12 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 116

pramanj: 86

ibrahim: 74

rocket science: 60

kapsl: 57

gjevremovic: 49

Xavier: 42

fred: 41

TimK: 41

Fransua33: 39

Member Stats:

Guest Posters: 0

Members: 2528

Moderators: 17

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1243

Posts: 5291

Newest Members:

BeelineDooxync, aimeerp18, TerryMob, AslanProom, nichol4818, damonesson, hqbchanel1, BriceLag, KarenJaw, maziebaylor0055

Moderators: Jouni Aro: 925, Otso Palonen: 32, Tuomas Hiltunen: 5, janimakela: 0, Pyry: 1, Terho: 0, Petri: 0, Bjarne Boström: 761, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 25, Teppo Uimonen: 21, Markus Johansson: 38, Niklas Nurminen: 0, Matti Siponen: 189, Lusetti: 0

Administrators: admin: 1