I have a machine with a AB Micrologix 1200 PLC which I am trying to write some code for. I cant figure out a good way of doing this. Any help/inputs are appreciated. Here is the problem:
- I have a can filling machine with cans riding on a conveyor feeding back position through an encoder. There is a dispenser and sensor located as in the pic below:
- There are 2 can sizes small & medium. And the plc knows which can size is being fed.
- Based on the sensor trigger (at leading/trailing edge of the can), can size and encoder position I need to fire the dispense pump everytime I see a can.
- The distance between the cans extremely variable and the cans are fed very sporadically.
- The distance between the dispense and the sensor is constant.
Thanks for your inputs in advance!
- I have a can filling machine with cans riding on a conveyor feeding back position through an encoder. There is a dispenser and sensor located as in the pic below:
- There are 2 can sizes small & medium. And the plc knows which can size is being fed.
- Based on the sensor trigger (at leading/trailing edge of the can), can size and encoder position I need to fire the dispense pump everytime I see a can.
- The distance between the cans extremely variable and the cans are fed very sporadically.
- The distance between the dispense and the sensor is constant.
Thanks for your inputs in advance!