Show latest event formula

Forum Home Forums Understanding the Software Using Formulas Show latest event formula

This topic contains 3 replies, has 3 voices, and was last updated by Mikhail Mikhail 4 weeks ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #5755
    Avatar
    scadarapid
    Participant

    Hi.

    If I have 3 doors and I have 1 Dynamic Text on my scheme. Then, I need to know the latest event which door is close. example Door1 is opened, Door2 is opened, Door3 is opened.
    when Door1 is close the Dynamic Text on the scheme will show Door1 is close then, Door2 is closed the Dynamic Text on the scheme will Show Door2 is closed, after that Door3 is closed the Dynamic Text on the scheme will show Door3 is closed, then, Door2 is opened and it close the scheme show door2 is closed.

    I need to know the latest events.
    How can we write the formula?

    Thank you so much.

    #5756
    Avatar
    manjey73
    Participant

    what if two doors close at the same time ? 🙂

    #5758
    Avatar
    scadarapid
    Participant

    Hi. Manjery73

    it can show door1 or door2.

    Thank you so much.

    #5759
    Mikhail
    Mikhail
    Moderator

    Hi,

    You should create an extra input channel of the calculated type.
    In the channels of particular doors use SetVal(…) to set the calculated channel.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.