baub

Counting Sensor

5 posts in this topic

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Mr_PLC_CNT_MOV.JPG.56a28b51cfb8fd0b5d541

 

Omron's CNT can be used as a Bit or a WORD.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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