Control Freak
Member
- Join Date
- Jul 2004
- Posts
- 44
Hey all,
Stupid question time... I've put a couple hours into this already, and I've decided that I'd run it up the flagpole. I'm sure this is much simpler than I think it is, but you've got to know when to say when.
When using Omron PLCs, there is a handy Word Shift instruction. It's a nice little way to shift a full word of data the same way that you might shift an individual bit with a BSL [AB] or a ROL [Omron]. It makes part tracking/sorting a piece of cake.
I might use, for example,
bit 0 of the word to indicate part presence
bit 1 of the word to verify inspection #1's results
bit 2 of the word to verify inspection #2's results
etc
The ability to shift word data down the machine gives me some functionality at the end of the line. Perhaps I might have the ability to rework a part that failed inpection #1, but definately scrap a part that failed inspection #2.
In the past I've done a cheap and easy fix by running parallel BSL's to accomplish similar results. This has worked fine so far, but what if I wanted to keep more specific data from each inspection other than simply Pass/Fail, and shift the data with the part?
For example: Inspection #1 fails because the analog result of a test is out of limits. What if I wanted to keep the data from the inspection, and shift it along with the part?
I've thought of a bunch of parallel MOV's, but that would be a pretty large rung - especially if I'm shifting multiple words of data for each part. Am I missing the obvious? Maybe a FIFO instruction or something? Maybe some fancy indirect addressing?
Thoughts? Ideas?
Stupid question time... I've put a couple hours into this already, and I've decided that I'd run it up the flagpole. I'm sure this is much simpler than I think it is, but you've got to know when to say when.
When using Omron PLCs, there is a handy Word Shift instruction. It's a nice little way to shift a full word of data the same way that you might shift an individual bit with a BSL [AB] or a ROL [Omron]. It makes part tracking/sorting a piece of cake.
I might use, for example,
bit 0 of the word to indicate part presence
bit 1 of the word to verify inspection #1's results
bit 2 of the word to verify inspection #2's results
etc
The ability to shift word data down the machine gives me some functionality at the end of the line. Perhaps I might have the ability to rework a part that failed inpection #1, but definately scrap a part that failed inspection #2.
In the past I've done a cheap and easy fix by running parallel BSL's to accomplish similar results. This has worked fine so far, but what if I wanted to keep more specific data from each inspection other than simply Pass/Fail, and shift the data with the part?
For example: Inspection #1 fails because the analog result of a test is out of limits. What if I wanted to keep the data from the inspection, and shift it along with the part?
I've thought of a bunch of parallel MOV's, but that would be a pretty large rung - especially if I'm shifting multiple words of data for each part. Am I missing the obvious? Maybe a FIFO instruction or something? Maybe some fancy indirect addressing?
Thoughts? Ideas?