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
Information Modeling Concept
October 19, 2018
11:29, EEST
Avatar
Talha Ejaz
Member
Members
Forum Posts: 3
Member Since:
October 19, 2018
sp_UserOfflineSmall Offline

Hey Guys,

I am a student and currently doing my Master Thesis , as i am pretty new to OPC UA and i have few questions about the information modelling concept. I am working right now on modeling the data that need to be exposed via OPC UA server.my question at this point is , If i have an object or a variable named as “Errors”. and for that variable , there could be six possible boolean values for Errors , over length-front,over length-back, over length-left,over length-right,,over height,´and overweight and if any error occur, the bool value will be true , lets say if component is overweight, and over height, it will send the value true, and “Error” node should represent it that there are two errors at the moment. .. How exactly should i model it? .. Should i model “Error” as an object and the possible errors(over length,overweight ..etc) should be made its children with HasComponent reference? , or shouid i Model “Error” as a Variable node and possible errors (over length,overweight ..etc) should be its children with HasProperty Reference? In my Opinion the possible errors (over length,overweight ..etc) should not be the children of “Error” node because they are just the possible values of “Error” node,,.may be “error ” node could be a variable with a structure data type, and in that structure i can write the possible error values ? i am confused about it .Can some one please help me in that. and how it should be done while building the OPC UA server,

Many Thanks

Talha

October 19, 2018
15:48, EEST
Avatar
Heikki Tahvanainen
Moderator
Members

Moderators
Forum Posts: 402
Member Since:
April 17, 2013
sp_UserOfflineSmall Offline

Hi,

It seems the question is basically how to model an application specific Error code.

The OPC UA specification contains datatype OptionSet which represents a bit mask. In principle, your error variable corresponds quite nicely to a bitmask with different bits representing certain error condition. Please see the specification part 3 for an explanation about OptionSet datatype.

This being said, the OptionSet datatype is not very widely used and although theoretically the best option, it might not be most convenient in practice.

Other good option would be to model the error variable as an OPC UA structure, as you already mentioned also yourself. It’s also allowed to model a variable which has a structured data type and also expose structure fields as sub-variables of that main variable. An example of this approach is the ServerStatus node i=2256 which is available in all OPC UA servers.

Let us know in case of further questions or issues.

November 5, 2018
12:20, EET
Avatar
Talha Ejaz
Member
Members
Forum Posts: 3
Member Since:
October 19, 2018
sp_UserOfflineSmall Offline

Hey Heikki ,

Thanks alot for ur rapid response, i really appreciate for your help, I have a question regarding the Modelling Rules. If i create some variables in an ObjectType as the Children of that ObjectType, and i want to make these variables having Optional Modelling Rule , How can i expose them in an Instance ? ,I am trying it in server , when i create an Instance of that ObjectType in server , then UaExpert client is unable to browse those variables whose Modelling Rule was optional in ObjectType , I want actually , that the client can also see and browse those variables of Instance who had modelling rule optional in ObjectType. How can we do that , can anyone help me please ? What i read from the Book is that If we make an InstanceDeclaration with Optional Modelling Rule. then each instance may have such a counterpart ,but it is not required that each instance hast such a counterpart.,
i will be greatfull if anyone can help,

Many Thanks,

November 5, 2018
14:48, EET
Avatar
Heikki Tahvanainen
Moderator
Members

Moderators
Forum Posts: 402
Member Since:
April 17, 2013
sp_UserOfflineSmall Offline

Hi,

Only nodes with ModellingRule Mandatory are created by default. You can configure which optional nodes should be created using the NodeBuilder.

Please see the server tutorial document and chapter “7.3.2 Conditions” which shows an example code listing on how to instantiate nodes with ModellingRule Optional.

November 8, 2018
13:54, EET
Avatar
Talha Ejaz
Member
Members
Forum Posts: 3
Member Since:
October 19, 2018
sp_UserOfflineSmall Offline

Hello Heikki ,

Thank you very much for your help, i wanted to ask that how can we Map the data from client to the system in which client is integrated, like if a client is integrated in an application and that client is reading data from an OPC UA server, once client has read all the required data , then this data should be mapped to that application where the client was integrated, so that the system could data from the client and do some processing on it and then wanna send a response to other system where server is integrated.

Many Thanks ,

Talha

November 8, 2018
15:28, EET
Avatar
Heikki Tahvanainen
Moderator
Members

Moderators
Forum Posts: 402
Member Since:
April 17, 2013
sp_UserOfflineSmall Offline

Hi Talha,

This is exactly the ‘application level’ processing which you must figure out when using the Prosys OPC UA Java SDK.

The Java SDK takes care of all the OPC UA communication details, so you don’t have to. But you’ll have to know what you want to do with the data and how it should be mapped to your existing application.

If you had some specific issue or question that I missed, please let me know.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 518

Currently Online:
33 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 135

pramanj: 86

Francesco Zambon: 81

rocket science: 77

Ibrahim: 76

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

fred: 41

Member Stats:

Guest Posters: 0

Members: 682

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1467

Posts: 6261

Newest Members:

karrimacvitie5, graciela2073, sagarchau, elviralangwell4, Donnavek, Eddiefauth, DonaldPooma, fidelduke938316, Jan-Pfizer, DavidROunc

Moderators: Jouni Aro: 1010, 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