Button to light



  • Hi,

    I try to create button to light. Button is connected to digital input. I need this action:
    first click switch on
    secont click switch off

    In next steps i want to try doubleclick.

    Is in Mervis some element for this simulation?
    I Tried it in Fupla with AND, OR and negation elements, but it did not work correctly.

    Thank



  • Hi,

    I try to create button to light. Button is connected to digital input. I need this action:
    first click switch on
    secont click switch off

    In next steps i want to try doubleclick.

    Is in Mervis some element for this simulation?
    I Tried it in Fupla with AND, OR and negation elements, but it did not work correctly.

    Thank



  • Hi,

    first of all you might need to set the sleep mode to minimum because the runtime run in loops which takes some time (not event-driven system) so it is highly possible you will not be able to catch pulses that do not take much time.

    I recommend making your own function block in st (see the video tutorials https://www.youtube.com/playlist?list=P ... ugVSn2K1RL )