Showing results 1 to 4 of 4

Thread: Line color based on two variables

  1. #1
    Join Date
    09.05.2013
    Posts
    52

    Default 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

  2. #2
    Join Date
    09.05.2013
    Posts
    52

    Default Re: Line color based on two variables

    Hi,
    This is the author.
    I figure out how to do it. I am writing it for a gents, in my situation.
    I made a symbol with polyline, with a form which suits me. Next I use combi element and use the symbol created. Next I use formula in combi element with logical AND (&) between the tag of my interest. Add the statuses. When both variables are in 1, the conditions will be fulfilled and the color will be changed accordingly.

    regards,
    Svetozar Yolov

  3. #3
    Join Date
    10.12.2007
    Posts
    204

    Default AW: Line color based on two variables

    You could also use a variable from the mathematics driver to calculate the AND logic between the two variables. Then you don't need the combined element.

  4. #4
    Join Date
    09.05.2013
    Posts
    52

    Default Re: Line color based on two variables

    Hi,
    Thank you for you answer. I considered this opportunity.
    In my perspective, if you have got a lot of devices (let say 20 and more), the quantity of work, in case of math driver will be more and more work to support.
    I believe combi element is better!

    Regards,
    Svetozar

Similar Threads

  1. Replies: 1
    Last Post: 16th October 2019, 16:29
  2. Comparison of two string variables to activate color
    By TMeck9 in forum zenon Supervisor
    Replies: 1
    Last Post: 23rd January 2019, 09:08
  3. How to set CEL list single line background color.
    By antonetti in forum zenon Supervisor
    Replies: 2
    Last Post: 13th June 2013, 08:39
  4. Replies: 1
    Last Post: 13th March 2012, 12:13
  5. Automatic line coloring (ALC) and DPI variables
    By gz0000 in forum zenon Energy Edition
    Replies: 2
    Last Post: 22nd July 2009, 14:12

Tags for this Thread

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •