1. Registered Partner
Join Date
13.11.2017
Posts
7

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. 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. Registered Partner
Join Date
13.11.2017
Posts
7

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. 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. Registered Partner
Join Date
13.11.2017
Posts
7

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. 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...