Showing results 1 to 6 of 6

Thread: Visibility from 2 variables

  1. #1
    Join Date
    13.11.2017
    Posts
    7

    Frage Visibility from 2 variables

    Hello,

    Is any posibility to make a visibility depends of 2 different variables? 

    Current status I have:
    -variable "Pos[BVAR]" where BVAR is changed for 10 positions (10 different blocks of HMI)
    -graphic with visibility from "Pos[BVAR]" (graphic is visible on block no.2 when i have value from 1 to 5 for Pos[2] )
    -working visibility for this graphic with good one position (eg. if on position 2 I have value 1, I can see a graphic)

    What i need:
    -If "Pos[2]" have value 1 (I can see a graphic in 2nd block) I need extra rectangle on this graphic which one will represent occupied state. But this new rectangle have to get visibility of variable "Occupied[1]" (1 = value from "Pos[2]") and show it only in this 2nd block, because in the same time I can have this graphic visible in any other blocks with different value than present one and there can be occupied too.

    I hope, that my explanation is enought, to understand it.

  2. #2
    Join Date
    28.02.2013
    Posts
    95

    Default Re: Visibility from 2 variables

    Hi,

    You can create a math-variable (or use zenon Logic) to evaluate the status of two variables and calculate another one for the visibility.

    Regards,
    Felix

  3. #3
    Join Date
    13.11.2017
    Posts
    7

    Default Re: Visibility from 2 variables

    I know, but then If I will do it, the graphic will be appear on all boxes, not just in this good one. 
    When I will get on Pos[5] a value 2, my graphic will appear, and if this trolley no.2 will have an occupied state it will show me a rectangle. But it will show this rectangle on all others too. I just need an idea how to connect occupied state with only this good one trolley. I think that I have to use index of Pos[BVAR] and somehow connect it to the rectangle, but I don't have idea how to do it.

  4. #4
    Join Date
    28.02.2013
    Posts
    95

    Default Re: Visibility from 2 variables

    Why don't you create 10 different rectangles with 10 different visibiltiy variables.
    So each rectangles visibility can be controlled indivdually.

    With that you can create 10 individual formulas. One for each rectangle...

  5. #5
    Join Date
    13.11.2017
    Posts
    7

    Default Re: Visibility from 2 variables

    Because it was just example. In fact I have 119 positions where can be 2 diferent occupied states and each position can be occupied by 16 conveyors. Doing it manually will take forever...

  6. #6
    Join Date
    28.02.2013
    Posts
    95

    Default Re: Visibility from 2 variables

    I understand.

    Did you consider to use combined elements here?
    Their visualisation (i.e. via symbols) can be set based on the input of multiple variables...



Similar Threads

  1. Button visibility variable in vba
    By redjon in forum VBA
    Replies: 1
    Last Post: 25th November 2016, 11:48
  2. Visibility depending on login user level
    By mjackson in forum zenon Supervisor
    Replies: 2
    Last Post: 25th March 2014, 12:49
  3. PLC Variables and Internal Variables
    By madphilly in forum Drivers
    Replies: 1
    Last Post: 4th June 2008, 06:59
  4. Button Visibility
    By madphilly in forum zenon Supervisor
    Replies: 1
    Last Post: 27th May 2008, 12:23

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
  •