How Do I Program A One-Shot Output?

Modified on Sun, 11 May, 2025 at 10:39 PM



In a one-shot program, as long as the trigger input stays ON for longer than a certain time (see note), the output bit will be turned ON for a specific period of time regardless of how long the trigger input is ON.

Note:Usually this time is equal to the time of a one CPU Unit cycle.
As shown in Figure 1, when the trigger input (CIO 0.00) is ON for either 1.0 s or 2.5 s, the pulse output bit (CIO 2.00) will be turned ON for 1.5 s.


Program Operation
OFF Operation of Pulse Output Bit (CIO 2.00)

  • If the Trigger Input Bit ON Time Is Less Than the One-shot Time:
    The pulse output bit (CIO 2.00) is turned OFF by ---|/|--- T0001 programmed for the self-holding work bit (W0.00).
  • If the Trigger Input Bit ON Time Is Greater Than the One-shot Time:
    The pulse output bit (CIO 2.00) is turned OFF by ---|/|--- T0001 programmed on the same rung as the pulse output bit.
 

 




 



 

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article