Jump to content

Recommended Posts

Posted (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?

 

 

 

 

numarare 1.JPG

Edited by baub

Posted

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 decrement.png

Increment Decrementprg.cxp

Posted

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

counter example working.png

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...