Status Box not Showing Alarm Status
Hello, in compact HMI, I have about 12 object instances. Status boxes were added to the display independent from these instances (they are not part of the instance graphics). In the AlarmState field, I use the general expression
if instance:isAlarmActive then 2 else 0. This works fine for about half of the components. If there is an A&E alarm from the PLC, the box turns red.
However, for some components, this won't work, despite the alarm showing up in compact HMI alarm list. I believe it has something to do with the names, as all components that work properly have an expression such as "ValveIn_PressureSensor:IsAlarmActive", whereas the ones that don't work have the expression "$'OPC Server for AC 800M/Tank_RTD:Alarm Global Properties:IsAlarmActive'. For the non-working instances, I have tried to write the expression "Tank_RTD:IsAlarmActive", but compact HMI tells me that the the symbol "Tank_RTD:IsAlarmActive" is ambiguous.
For all instances in the control structure, I have simplified the names of each component by removing the "OPC Server for AC 800M:" part under the "name" and "OPC name" aspects. Some work, some don't. Would very much appreciate some help on this.
if instance:isAlarmActive then 2 else 0. This works fine for about half of the components. If there is an A&E alarm from the PLC, the box turns red.
However, for some components, this won't work, despite the alarm showing up in compact HMI alarm list. I believe it has something to do with the names, as all components that work properly have an expression such as "ValveIn_PressureSensor:IsAlarmActive", whereas the ones that don't work have the expression "$'OPC Server for AC 800M/Tank_RTD:Alarm Global Properties:IsAlarmActive'. For the non-working instances, I have tried to write the expression "Tank_RTD:IsAlarmActive", but compact HMI tells me that the the symbol "Tank_RTD:IsAlarmActive" is ambiguous.
For all instances in the control structure, I have simplified the names of each component by removing the "OPC Server for AC 800M:" part under the "name" and "OPC name" aspects. Some work, some don't. Would very much appreciate some help on this.
Answers
Problem solved.
Looks like I had duplicate "Object Names" between some object instances that were used in the HMI and some functions that were used in the PLC. Changing the names in the controller allowed compact HMI to associate the alarms with the proper object instances and show the alarm status correctly.
Looks like I had duplicate "Object Names" between some object instances that were used in the HMI and some functions that were used in the PLC. Changing the names in the controller allowed compact HMI to associate the alarms with the proper object instances and show the alarm status correctly.
Add new comment