There are a total of eight projects in the PLC-1 class that I’m taking. This one involves counter. Here is the problem, and the ladder I developed that follows. Is there anything that anyone can see that I missed? The ladder solved the problem, but without a resource to compare to, I don’t know if I am missing something that would do the job in a better way, or should have include something else for future development.
A company that makes electronic assembly kits needs a counter to count and control the number of resistors placed in each kit. The controller must stop the take-up spool at a predetermined amount of resistors (10). A worker on the floor will then cut the resistor strip and place it in the kit. The circuit operates as follow:
1. A start button is pressed to start the spool drive.
2. A through beam photo sensor is used to count the resistors going by.
3. A counter with a preset of ten will automatically stop the take-up spool drive when the count is reached.
4. A second counter is required to track the grand total of resistors packaged per day.
5. A stop button is provided to stop the take-up spool at any time. The counters are not affected.
The Ladder-
I know it looks kind of simple, but I sent quite a bit of time trying to remedy a problem that I came up to first. I had to add the C5 exc in line 1 because the counter added an extra count when I pushed the start button.
What do you think?
Barry.
PS. Is there a better way to enter a ladder than the way I did?
A company that makes electronic assembly kits needs a counter to count and control the number of resistors placed in each kit. The controller must stop the take-up spool at a predetermined amount of resistors (10). A worker on the floor will then cut the resistor strip and place it in the kit. The circuit operates as follow:
1. A start button is pressed to start the spool drive.
2. A through beam photo sensor is used to count the resistors going by.
3. A counter with a preset of ten will automatically stop the take-up spool drive when the count is reached.
4. A second counter is required to track the grand total of resistors packaged per day.
5. A stop button is provided to stop the take-up spool at any time. The counters are not affected.
The Ladder-
Stop Start motor run light
I:3/7 I:3/6 C5:0/DN O:4/0
0 |------] [-------------] [----------------]/[------------------------------( )------------------|
| | | |
| | O:4/0 | |
| |-----] [-------| |
| |
| Start |
| I:3/7 C5:0/DN C5:0 |
1 |--------] [-----------------] [---------------------------------------------(RES)-----------|
| |
| Resister Counter |
| C5:0 I:3/4 -----CTU----------- |
2 |----]/[------------] [-------------------------------------| C5:0 |-(CU)-----|
| | Preset 10< | |
| | Accum 0< |--(DN)- |
| ---------------------- |
| |
| Resister Counter |
| I:3/4 -----CTU----------- |
3 |-------------------] [-----------------------------------| C5:1 |-(CU)- ----|
| | Preset 0< | |
| | Accum 0< |--(DN)- |
| ---------------------- |
4 |--------------------------------------------------------------------------(END)-------------|
I know it looks kind of simple, but I sent quite a bit of time trying to remedy a problem that I came up to first. I had to add the C5 exc in line 1 because the counter added an extra count when I pushed the start button.
What do you think?
Barry.
PS. Is there a better way to enter a ladder than the way I did?
Last edited: