Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could it cread ModellingRule? #46

Closed
yealfor opened this issue May 16, 2017 · 10 comments
Closed

Could it cread ModellingRule? #46

yealfor opened this issue May 16, 2017 · 10 comments
Assignees

Comments

@yealfor
Copy link

yealfor commented May 16, 2017

I created my address space, but there is no ModellingRule in the xml. When I implement the new model with open62541(a opc ua sdk), it can't present the correct variant , because that variant has no ModellingRule. So help!

@oroulet
Copy link
Member

oroulet commented May 16, 2017 via email

@zerox1212
Copy link
Collaborator

I also do not know how to use ModellingRule. If you can explain we can probably add it.

@yealfor
Copy link
Author

yealfor commented May 17, 2017

This is a variant which can be implemented in address space:
"<UAVariable BrowseName="1:State" DataType="Float" NodeId="ns=1;i=2008" ParentNodeId="ns=1;i=2005">
<DisplayName>State<\DisplayName>
<Description>State<\Description>
<References>
<Reference IsForward="false" ReferenceType="HasComponent">ns=1;i=2005<\Reference>
<Reference ReferenceType="HasModellingRule">i=78<\Reference>
<Reference ReferenceType="HasTypeDefinition">i=63<\Reference>
<\References>
<Value>
uax:Float\9.99<\uax:Float>
<\Value>
<\UAVariable>"
where the reference(<Reference ReferenceType="HasModellingRule">i=78<\Reference>) can't be added in free uamodeler.
As I know, the ModellingRule includes Mandatory and Optional at least. If the ModellingRule of a variant is not Mandatory, the address space may not implement it, but there is a need to implement that variant.

@oroulet
Copy link
Member

oroulet commented May 17, 2017

OK, HasModellingRule is a type reference and reference editor is not implemented yet. But this is very high on my todo list. Should have a look..

@oroulet oroulet self-assigned this May 17, 2017
@zerox1212
Copy link
Collaborator

Do you have anything started with this? If you have some code already I might have time to help out with this.

@oroulet
Copy link
Member

oroulet commented May 19, 2017

I have a lot of copy paste code. I need to make the basic work, then I can publish for testing/improvement

@oroulet
Copy link
Member

oroulet commented May 19, 2017

started work here. FreeOpcUa/opcua-widgets#8
not finished. I am not sure how to modify a reference. Looks like I need to delete and rewrite it

@zerox1212
Copy link
Collaborator

I'll take a look at it.

@oroulet
Copy link
Member

oroulet commented May 20, 2017

ready for testing now. I have not tested much myself, but it should work. suggestions to improve and PR are welcome

@oroulet
Copy link
Member

oroulet commented May 20, 2017

and merged to master. So now it is easy to test

@oroulet oroulet closed this as completed Jun 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants