Posted 7 Jun 2020 (edited) Hello! Can anyone tell me please if this script the script below it's correct to use a capacitive sensor that counts workpieces which are eliminated on a conveyor. The number of the counting can be displayed? Edited 7 Jun 2020 by baub Share this post Link to post Share on other sites
Posted 8 Jun 2020 I couldn't get the counter to work in simulation (step one) so I just did it using increment/decrement instructions below it, hopefully that will help you move along. Maybe someone will have a working counter program and is going to be able to share it. Increment Decrementprg.cxp Share this post Link to post Share on other sites
Posted 8 Jun 2020 Omron's CNT can be used as a Bit or a WORD. Share this post Link to post Share on other sites
Posted 8 Jun 2020 Interesting. It seems that I had everything in order before and just wasn't able to simulate successfully. Below I'm attaching another example I just cooked up from the IO_Rack example Share this post Link to post Share on other sites