• Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    event based task, toggle block not working

    Scheduled Pinned Locked Moved Mervis
    2 Posts 2 Posters 1.3k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      Christian
      last edited by

      The FUPLA toggle block is only working once in an event based task.
      If i setup a task with rising edge on an di input with the associated programm, the toggle block switches the output to true.
      The following inputs (rising edge) after the first executed toggle to true are completely ignored by the toggle.
      The outpout remains in true state.
      Is this a bug?

      A xor does the job right.

      0_1550689683558_37bf1faa-e514-4fc5-83bf-c0b12dd33392-grafik.png

      0_1550689771919_a10a730b-f2f6-4f28-b5ba-da380d8052cb-grafik.png

      0_1550689825391_5aef311d-32a7-40c8-bf64-56dfb3aecd2e-grafik.png

      Martin KudláčekM 1 Reply Last reply
      Reply Quote 0
      • Martin KudláčekM
        Martin Kudláček @Christian
        last edited by

        Hi @christian,
        frankly, we don't use event based tasks at all, since it makes the program harder to read. What is your motivation to use them?

        I must say that I don't understand the first example and from what I see it leads to oscillation:

        0_1550739082329_ac247ff3-0c9f-4ffd-91b7-dda8d62cef51-image.png

        For me, simply using the toggle in Freewheeling NormalOperationTask is straightforward and error free. We use it like this in many situations.

        If you want to directly wire DI to DO/RO, take a look at our Direct Switch functionality: https://kb.unipi.technology/en:sw:01-mervis:advanced-modes-of-digital-inputs-hidden

        1 Reply Last reply
        Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post