One to many reference

General topics regarding OPC Foundation and communication technology in general.

Moderator: Support Team

Post Reply
mimuel
Jr. Member
Jr. Member
Posts: 2
Joined: 05 Dec 2011, 10:47

One to many reference

Post by mimuel »

Hello,
I want to create a above mentioned reference between self defined types with the UaModel application. Found some hints to do so ... e. g. 'create variable for a type, set the dimension for that variable ...', and so on. But, how can I define those variables as 'Array' or 'List' type.

Any help is appreciated.

Thanks in advance, Michael.

User avatar
Support Team
Hero Member
Hero Member
Posts: 3068
Joined: 18 Mar 2011, 15:09

Re:One to many reference

Post by Support Team »

Hello Michael,

You can add a one-to-many-realtionship between two types by using the modelling rule "MandatoryPlaceholder".

For example you have a VariableType VType and an ObjectType OType. OType has an instance declaration with the type definition VType and the modelling rule MandatoryPlaceholder. This means that an instance of OType must have at least one child with the TypeDefinition VType.

Kind Regards, Support Team
Best regards
Unified Automation Support Team

Post Reply