• Not Answered

round 3 colors

Good morning all,

i searched through the website but i was not able to find out something helpful. Btw, sorry for my english... i am italian..

I've been hired by a company that works with emerson system and i got some troubles figuring out some "easy" items.

We got a page (DeltaV Operate) with a round inside, this round becomes green, yellow and red depending on different input. The issue is that who made the page created 3 different rounds, with different colors and they enable the visibility depending on the control module state.

I try to explain better:

From the "control module" we have

- valve opened  associated to the green round

-valve closed associated to the red round

-Expression that checks if either no open/closed or all open/closed are 1 associated with a third yellow round.

Do you know if there is a chance to make an expression that changes the foreground of the round in 3 ways ?

Also, do you know f i can find some manuals regarding the expression builder?

10 Replies

  • Hi Guiseppe, your English is good enough to understand, if not perfect !
    Anyway, I see you found the solution already!
    In Books Online you can search for 'animations'. The books explain how to use this.
    As for the valve: I guess you can use the (numeric) value of the PV (0, 1, 255) to indicate the Open, Closed, Undefined position.
    In this case, browse using the "Browse DeltaV Control Parameters" to the PV.F_CV parameter of your module.
    Then for "Exact Match" specify the colors for 0, 1 and 255 and delete the other value/color lines.

    What DeltaV version is used?
  • You can use DC_STATE instead


    Sent from Yahoo Mail for iPhone

    On Wednesday, September 19, 2018, 7:13 PM, Giuseppe Di Tommaso <bounce-Giuseppe_Di_Tommaso@emersonexchange365.com> wrote:

    Update from Emerson Exchange 365
    Giuseppe Di Tommaso

    Good morning all,

    i searched through the website but i was not able to find out something helpful. Btw, sorry for my english... i am italian..

    I've been hired by a company that works with emerson system and i got some troubles figuring out some "easy" items.

    We got a page (DeltaV Operate) with a round inside, this round becomes green, yellow and red depending on different input. The issue is that who made the page created 3 different rounds, with different colors and they enable the visibility depending on the control module state.

    I try to explain better:

    From the "control module" we have

    - valve opened  associated to the green round

    -valve closed associated to the red round

    -Expression that checks if either no open/closed or all open/closed are 1 associated with a third yellow round.

    Do you know if there is a chance to make an expression that changes the foreground of the round in 3 ways ?

    Also, do you know f i can find some manuals regarding the expression builder?

    View online

     

    You received this notification because you subscribed to the forum.  To stop receiving updates from only this thread, go here.

    Flag this post as spam/abuse.

  • In reply to Maarten van der Waal:

    thanks for the reply. the version is 12.3.1 ( checked the deltaV explorer version).

    I understood what you wrote before but i think i did not explain very well myself.
    In the explorer, we need to replace a lot of calc because the customer does not like it, so i need to find another way to make different colors without any calc, also all the technicians sugested me to not use any kind of logic inside the explorer... I was thinking Emerson had some default blocks to do this.

    if i have 2 DI on the explorer, inside the Expression builder is possible to create a little logic to change 3 colors to the valve? Without make any logic inside the control module?

    i tried to type in the following lines:

    (DVSYS.CONTROLPROVA/DI1/OUT_D.F_CV = 1 AND
    DVSYS.CONTROLPROVA/DI2/OUT_D.F_CV = 0 = 0) OR
    (DVSYS.CONTROLPROVA/DI1/OUT_D.F_CV = 0 AND
    DVSYS.CONTROLPROVA/DI2/OUT_D.F_CV = 1 = 20) OR
    (DVSYS.CONTROLPROVA/DI1/OUT_D.F_CV = 1 AND
    DVSYS.CONTROLPROVA/DI2/OUT_D.F_CV = 1 OR
    DVSYS.CONTROLPROVA/DI1/OUT_D.F_CV = 0 AND
    DVSYS.CONTROLPROVA/DI2/OUT_D.F_CV = 0 = 40)

    but it does not work.

    Is it possibile to use IF inside the expression builder?

    Thanks
  • In reply to Giuseppe Di Tommaso:

    News,
    i did some tests and it looks like the software does not recognize numbers different from 0 and 1.
    (DVSYS.CONTROLPROVA/DI1/OUT_D.F_CV = 1 AND DVSYS.CONTROLPROVA/DI2/OUT_D.F_CV = 0 = 0) works
    (DVSYS.CONTROLPROVA/DI1/OUT_D.F_CV = 1 AND DVSYS.CONTROLPROVA/DI2/OUT_D.F_CV = 0 = 20) does not work
    Maybe i need to change some definitions?
  • In reply to Giuseppe Di Tommaso:

    Just check your expression - and add parenthesis where (possibly) needed.
    So: ( (PAR1 = 1) AND (PAR2 = 0) )
    or: NOT ( (PAR1 = 1) AND (PAR2 = 0) )
    What I see is an expression like 'parameter = 0 = 20', which will never be TRUE...
    Also, a DI functionblock only has 0 and 1 as values for OUT.
  • In reply to Maarten van der Waal:

    ok, so through 2 bool input i can not output a value of 20 in the animations? i was thining the 20 was related a byte inside the animation...

    There is any way i can change the foreground color with 3 different color but with only 2 input? Without making logic inside the Control studio?

    PAR1=1 and PAR2=0 --> green
    PAR1=0 and PAR2=1 --> red
    PAR1=1 and PAR2=1 --> yellow

    Actually they are using 3 different images one on top of another.... but i don't think it is a final solution.

  • In reply to Giuseppe Di Tommaso:

    Your question relates to the status of a valve. For the confirmation signals you use DI1 and DI2.
    Why not use a DC block, receiving its inputs from the DI blocks. Then you can use the PV or DCSTATE parameter for animation.
    In order to link the DI inputs to the DC1 block, you should 'Show Parameters' F_IN_D1 and F_IN_D2 as Input parameters and connect to these parameters.
  • In reply to Giuseppe Di Tommaso:

    What should your color be if both DI parameters are 0?

    You can try this animation:
    (DVSYS.CONTROLPROVA/DI1/OUT_D.F_CV + (DVSYS.CONTROLPROVA/DI2/OUT_D.F_CV * 2))

    Then Color Table and Exact Match:
    0 = ?
    1 = Green
    2 = Red
    3 = Yellow
  • In reply to Matt Stoner:

    Great solution! Thanks.
    Btw, the standard is to use 3 round one on top of another making a group or making a solution like the one before?
  • In reply to Giuseppe Di Tommaso:

    Not knowing what you are doing I'm not sure I can answer but I would have a single item or a group of items with the single animation so you only have to make any animation changes once.