Line color based on two variables

Line color based on two variables

Dear All,

I am using zenon Supervisor v7.11.
I am new in zenon Supervisor and that is why, I can not figure out, how I can change color of polyline base on values of two variables.
I have device with two network ports. For each port, I got status variable, which is:
  • 0 when the port is not connected
  • 1 when the port is connected. The device are connected in ring.
I want to change the color of polyline, when both ports of two neighbout devices are connected to each other (i.e. are in status 1).

I need AND (&) operation between the variable values. I see that the combi element allows such functionality. The problem is that it will be not very suitable to put combi element between device symbol.

Any ideas how I can achieve this functionality?

Best regards,
Svetozar Yolov

This is a migrated post! Originally posted on 21.05.2020 by user yolovs. Please be aware that information can be outdated.