event based task, toggle block not working



  • 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


  • administrators

    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