Nrus_73 (Customer) asked a question.

SCNT or CNT Oneshot or not behaviour

My first P-2000 program and most is working as expected. I am however running into an issue with either a SCNT or CNT when it comes to tracking the number of pump starts.

I have the input to "cnt up" as a pump running DI and the Counter set to oneshot. i am using the Dataview and forcing the input bit and the counter increments 1 as you would expect, every now and then when the force is removed it increments another count.

I have tried re-writing the code to have an edge contact input to the timer with no timer oneshot and the same deal. The running input is used elsewhere in the program so i created a standalone tag used only for the input to the timer in case that might be an issue and same deal. I am experiencing this whether i use a SCNT or a TMR. Probably a simple mistake on my part but i am at a loss.


  • Nrus_73 (Customer)

    It appears to be something to do with using the Dataview and forcing the tag. By closing the actual input on the DI module it looks like it's working well.

  • ADC Community_02 (Automationdirect.com)

    I've done my best to reproduce the issue on my end but was unable to duplicate it after extensive testing. To better assist you, could you please send me your project file via PM? Having the actual project will help me investigate further and identify what may be causing the behavior you're experiencing.

     

    Thank you!

  • Nrus_73 (Customer)

    Apologies for the delay, i will forward the project file to you.

  • ADC Community_02 (Automationdirect.com)

    Thanks for the detailed report — I was unable to reproduce the issue after 100+ forced input toggles on the counter across software versions 4.5.1.6 and 4.6.2.2, all of which performed as expected.

  • ADC Community_02 (Automationdirect.com)

    Can you provide a short video showing the issue occurring?

  • PouchesInc (Customer)

    The DI you are using may be "bouncing" and happens fast enough that viewing software doesnt see it but the PLC scan time is fast enough to catch it. You dont mention what specifically your input is other than it comes from a pump, but just a thought on a possibility. Mechanical input behavior has this happen sometimes and is why the debounce input was created.

  • Nrus_73 (Customer)

    Thank you for testing, i will replicate and send a video.