I want to count the number of pulses from a digital input point. How do I prevent the CTU function from being incremented on every program scan?
(R-Trig Function Block)
You need to use the r-trig block before CTU block if you want to count pulses. Otherwise, the CTU will count up by one every scan as long as the CU input is enabled.