800xA 5.1-4 -- Creating a static reference to parent object with Expression Editor and PG2 Graphic Builder
ISSUE: I'm attempting to create an aspect (Graphic Element PG2) under a Generic OPC Object with an array of indicators to indicate if a controller is in alarm and what alarms are occurring. For each indicator I used a rectangle to indicate the state of each alarm using the follow code in the [FillColor] field:
if AlarmList1 = True then
This works fine for the first object, but when I copy the aspect to another object the new aspect pulls the original object's reference information to the [FillColor] field. As seen below:
if ACT020:AlarmList1 = True then
DESIRED BEHAVIOR: I would like the AlarmList1 to be statically referenced in any subsequent copies of the aspect. The control connection has the same alarm arrays for all actuators. I would prefer not to place the aspect in the Object Library because there are so many Generic OPC Object's in the project.
Insert the URL that your highlighted text will link to.
Copy the video's "embed" tag into Embedded Video below.