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 Link to comment Share on other sites More sharing options...
MVP 2023 kratmel Posted March 4, 2021 MVP 2023 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. 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 Link to comment Share on other sites More sharing options...
MVP 2023 kratmel Posted March 5, 2021 MVP 2023 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. 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now