Hello all,
First let me state that I am fairly new to PLCs.
I am attempting to create a rotating tabletop, which will manuver four cups under a liquid dispencer one at a time. Once the cup is located under the liquid dispencer, a combination of two to four liquids will be poured into the cup. The liquid combination will be determined by user controlled input switches.
I am using a 24V DC motor (yes, I know I probably should have used a servo) to rotate the tabletop and four magnets and a hall-effect sensor to determine the position of the cups.
I would like to automate this process using a PLC (AB SLC-5/02 using RSLogix).
I want the tabletop to spin ninety degrees after the liquids have been poured and after a ten second delay to minimize drippage. I tried using the Done Bit of a TON timer to latch the motor and the hall-effect sensor to unlatch it, but had no luck.
I would really like to use subroutines for each liquid combination, but I have had a hard time latching a JSR with the output of a timer.
Sorry if I'm rambling. Any suggestions with the ladder logic, especially the subroutines, would be greatly appreciated.
Thanks,
Zucker
First let me state that I am fairly new to PLCs.
I am attempting to create a rotating tabletop, which will manuver four cups under a liquid dispencer one at a time. Once the cup is located under the liquid dispencer, a combination of two to four liquids will be poured into the cup. The liquid combination will be determined by user controlled input switches.
I am using a 24V DC motor (yes, I know I probably should have used a servo) to rotate the tabletop and four magnets and a hall-effect sensor to determine the position of the cups.
I would like to automate this process using a PLC (AB SLC-5/02 using RSLogix).
I want the tabletop to spin ninety degrees after the liquids have been poured and after a ten second delay to minimize drippage. I tried using the Done Bit of a TON timer to latch the motor and the hall-effect sensor to unlatch it, but had no luck.
I would really like to use subroutines for each liquid combination, but I have had a hard time latching a JSR with the output of a timer.
Sorry if I'm rambling. Any suggestions with the ladder logic, especially the subroutines, would be greatly appreciated.
Thanks,
Zucker