Need help with PLC exercise in textbook

dgrimes

Member
Join Date
Dec 2005
Location
Pennsylvania
Posts
2
I have a problem exercise in my textbook that I can't figure out. Can anybody help me with this?

A conveyor has 6-,8-, and 12-packs of canned soda entering it. Each size of entering pack has an individual pack quanitity counter feeding a PLC register. To know how many total cans are entering the conveyor, set up a program for multiplying and then adding to give a total can count.

Thanks a lot for any help.
 
I hope you realize that you're using an old obsolete PLC. While you will gain some insight into how PLCs work and a little of what they're capable of by working on the old-timers, your school isn't doing you any great favor by giving you dinosaurs for lab experiments. When you're through with the course, you'll be at the leading edge of obsolete technology. Currently available PLCs have made math functions a lot easier to use.

If you're trying to learn on your own, then lose the history book and get a copy of Phil's book from this site. It's not based on any particular brand.

If you're specifically interested in learning AB, then download a copy of the LogixPro simulator from thelearningpit.com
 
A conveyor has 6-,8-, and 12-packs of canned soda entering it. Each size of entering pack has an individual pack quanitity counter feeding a PLC register. To know how many total cans are entering the conveyor, set up a program for multiplying and then adding to give a total can count.
Technically this should work about the same for any PLC.

CTU1 counts 6 packs
CTU2 counts 8 packs
CTU3 counts 12 packs

Multiply CTU1 count by 6 and put in Integer file 1
Multiply CTU2 count by 8 and put in Integer file 2
Multiply CTU3 count by 12 and put in Integer file 3

Add Integer files 1, 2 and 3 and put in Integer file 4 (total can count).
 
What model of mini-PLC2 are you working with?
As I recall, only the -LN3 had multiply and divide instructions - the -LN1 and -LN2 only did add and subtract.

The PLC2's only understand 3-digit BCD numbers. To go beyond 999 requires you to write ladder logic to handle carry/borrow, etc. When multiplying two 3-digit numbers you get a 6-digit result in two consecutive words. Adding 6-digit numbers requires several rungs of ladder.

...are you beginning to realise why they're obsolete?
 
We need more details. What kind of soda is it? And are we sure it's soda or could it be pop?



Sorry, I couldn't help myself.
 

Similar Topics

Hi guys, I have no experience when working with AllenBradley PLC, but I hope someone could clarify the result of multiplication shown in the...
Replies
14
Views
2,193
This is the problem, I need to solve it using a ladder diagram: Write a table of inputs and outputs and propose a control solution for a screw...
Replies
22
Views
3,940
I will be designing an automated hydrostatic system. The system on paper works like this, a plc like the click will get information from an hmi...
Replies
227
Views
43,025
I am working on setting up my own 1756 B series PLC rack, power supply 1756-PB75 /B, 1606-XLS480E -redundant 24 DC power supply, controller...
Replies
6
Views
4,309
Hello. I am working on a PLC program that needs to check input 1 after timer two is complete to see if a valve can close or not. Below is the flow...
Replies
9
Views
2,830
Back
Top Bottom