Bourdon Posted March 4, 2021 Report Share Posted March 4, 2021 Hi I'm a vey new one in Visilogic. I want to count bottles and stop the motor of a conveyor when I have 5 botlles. What function should I use ? increment function. If yes I don't understand exactly how it works. Thanks for your help Quote Link to comment Share on other sites More sharing options...
MVP 2022 kratmel Posted March 4, 2021 MVP 2022 Report Share Posted March 4, 2021 Hi, you can find V130 Counter example project in Visilogic ---- Examples/Version 9000/Project examples/Ladder/ V130_Counter.vlp SB7 bit can be changed by Input signal (for example I2 ). But the main problem with bottles on conveyor - vibration. Vibration of bottle can activate sensor many times and count result can be different. For rectify this problem you must use two sensor and two PLC input. Sensor must be plased on conveyor in series - then bottle must cross 1st one then second one. In PLC ladder code you can operate MB coil (for example MB 10) - Set by 1st sensor and reset by second. This MB10 -|P|- contact must replace SB7 in sample code. C0 counter contact can be used as stop command for conveyor. Quote Link to comment Share on other sites More sharing options...
Bourdon Posted March 5, 2021 Author Report Share Posted March 5, 2021 Thanks for your help I just want to understand how counter works with visilogic (usually I used counters on PL7) so it doesn't matter if I count bottles or something else at the moment. With your help i did the following propgram (see attached file) . But it does'nt work . C1 is activated at the first detected object. Where is the problem ? compteur3.vlp Quote Link to comment Share on other sites More sharing options...
MVP 2022 kratmel Posted March 5, 2021 MVP 2022 Report Share Posted March 5, 2021 I6 must be Positive transition contact I6 -|P|- You use direct and counter incremented to 3 in time of 3 PLC scan. Quote Link to comment Share on other sites More sharing options...
Bourdon Posted March 6, 2021 Author Report Share Posted March 6, 2021 Ok , thanks for helping. It work correctly now Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.