How Can We Help?

Print

ON delay and OFF delay on an bit or input

This subroutine provides a simple way to apply a delay before or after an event.

Timing diagram

Subroutine

In this example:

  • Input = InBitC1
  • OnDelay = 500 ms
  • OffDelay = 1500 ms
  • Output = OutBitD1

Change the time base in the subroutine

You can dowload the subroutine here