Graphics Builder > Dynamic Associations > Use Equipment References with Dynamic Associations

Use Equipment References with Dynamic Associations

When defining dynamic associations, you can use full or partial associations to generate the complete 'equipment.item' reference when a page is displayed at runtime.

For example, you can define dynamic associations to display the values of the following equipment from the Example Project:

To do this, you can configure object properties as follows:

Numeric expression

?Equip.FailStop?

Numeric expression

?Equip.FailStart?

Numeric expression

?Equip.Running?

For each numeric expression, a full association has been used as a dynamic association.

When configuring an object to call the dynamic association page, each 'equipment.item' reference will be passed to the dynamic association using an association Cicode function. Each dynamic association needs to be configured in the object.

Ass(-2, “Equip.FailStop”,” “Example_Motor.FailStop”);
Ass(-2, “Equip.FailStart”, “Example_Motor.FailStart”);
Ass(-2, “Equip.Running”, “Example_Motor.Running”);
WinNewAt(“equipSg”,100,100,0);
			

Using a partial association (where only part of the 'equipment.item' reference is used), you can configure the numeric expressions as follows:

Numeric expression

?Equip?.FailStop

Numeric expression

?Equip?.FailStart

Numeric expression

?Equip?.Running

When configuring the object to call the dynamic association page, only one 'equipment.item' reference needs to be passed to the dynamic association using an association Cicode function.


Ass(-2, “Equip”, “Example_Motor”);
WinNewAt(“equipSg”,100,100,0);

See Also

Published June 2018