Author Topic: How to send Clock Pulse of 2s using the Special Clock Pulse bit  (Read 4102 times)

suhelens

  • Newbie
  • *
  • Posts: 2
    • View Profile
How to send Clock Pulse of 2s using the Special Clock Pulse bit
« on: November 10, 2022, 11:22:45 PM »
Hi! A bit new to TriPLC. This may be a simple question but how do I trigger a coil every 2s using the Special bit Clock pulse?

garysdickinson

  • Hero Member
  • Posts: 502
  • Old PLC Coder
    • View Profile
Re: How to send Clock Pulse of 2s using the Special Clock Pulse bit
« Reply #1 on: November 13, 2022, 04:55:28 PM »
There isn't a Special Clock Pulse bit with a period of 2 seconds.

But there is a 1 second period clock named "Clk:1.0s.

You can use a COUNTER to generate a 2 second clock from Clk:1.0s

The trick is to make the COUTNER count up with the use of special function coil, [UpCntr].

A COUNTER with a set value of 1 will count 0,1,0,1... as an up-counter. The contact for the COUTNER will be active on the "0" count time period.

I have attached a screen shot of of the ladder logic to get this to happen.

Good luck,
   
Gary Dickinson
« Last Edit: November 13, 2022, 05:09:44 PM by garysdickinson »