I need a simple click plc program written.

This is very simple if someone hasn't helped you already. What HMI/Screen are you using? I've never used a Click PLC, but as far as ladder logic goes:

Rung 1: (sensor input) - (one shot) - (counter) Rung 2: (HMI reset) - (move 0 to counter) Or Rung 2: (keyed reset input) - (move 0)

Notes:

  • A "one-shot" is the terminology Allen Bradley uses to signify a bit which only allows a signal past it for a brief moment, no matter how long the input before it stays on.

  • The counter will store the count in a data bank. The HMI will then just read that data bank and display it on a screen. You'll need to put a button on the HMI and then link the "tags" to a bit in the PLC (HMI reset).

  • The "move" command will move whatever number you want it to into the data bank the counter has been saving to. The HMI will read that then display it.

  • If you don't want to deal with putting the button on the HMI, I'd recommend using a keyed switch as a second input to the PLC to reset the count, that way nobody can just walk by and hit the reset button, screwing you over for the shift.

The terminology I used is Allen-Bradley wording, so I'm not sure what the Click PLC calls it, but most PLCs have the same features just with different names. This should help you get started at least!

/r/PLC Thread