![]() |
||
|
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc. |
||
| ||
New Here? Please read this important info!!!
|
|
#1 |
|
Member
![]() Join Date: Nov 2003
Posts: 122
|
Parallel loading Omron CJ1 shift register
Hi all. Say I'm using address W1 as my starting (and end) words in the SFT(010) instruction; does anyone know whether it's ok to "parallel load" W1 from other sources in the program (set a bit or bits, for example)? I need to look at various stages in a linear array of processes, any of which could generate an output bit, and then track all instances to the last bit in W1 for pass/reject action. Thanks, Steve.
Edit: Hmm, I can see this getting complicated, as I'd have to reset the "set" bits when the next shift occurs and that would interfere with the "next" bit in the register. So... how about a one-shot masked move with the mask arranged to match the station number so only the appropriate bit is loaded?
__________________
For the Present is the point at which Time touches Eternity. C.S. Lewis. Last edited by Steve Kemp; September 29th, 2006 at 05:28 AM. |
|
|
|
#2 |
|
Member
![]() Join Date: Feb 2005
Location: Grand Rapids, MI
Posts: 803
|
Just a thought, you could DIFU the W1.xx bit with the "shift" bit. You would need the DIFU instruction before the SFT instruction.
Hope this will help. |
|
|
|
#3 |
|
Member
![]() Join Date: Nov 2003
Posts: 122
|
Sounds right to me. If I follow you, I'd need to latch the "on" state for the process stage in question and then gate that state via a difu (when the shift operation is required) into the appropriate W1 bit (as a coil instruction).Thanks. Steve.
__________________
For the Present is the point at which Time touches Eternity. C.S. Lewis. |
|
|
|
#4 |
|
Member
|
Steve,
If I get you right, you have different processes to be accomplished to determine the end result at the end of its index. I would rather use Word Shift for this application. It hold all the actual state of the individual results till the process end.(Easier for tracking/trouble shoot). A 'W' word can hold up to 16 results, say for example you have 10 indexes before the process complete I may use a block of W words start from say W0 ~ W9. Regards _______ |
|
|
|
#5 |
|
Member
![]() Join Date: Feb 2005
Location: Grand Rapids, MI
Posts: 803
|
Steve,
Yes, you understand what I was suggesting. Let me know if you have any other questions. |
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Topics
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Conveyor window reserve, 1st come 1st, FIFO or Shift Register? | cmet | LIVE PLC Questions And Answers | 16 | August 31st, 2006 02:14 AM |
| Make shift register with ladder solution | sis | LIVE PLC Questions And Answers | 7 | October 28th, 2005 07:36 PM |
| Bit shift register for Siemens S7 | Dutchass | LIVE PLC Questions And Answers | 16 | March 29th, 2005 01:45 PM |
| Shift register | Divad016 | LIVE PLC Questions And Answers | 6 | November 11th, 2003 07:52 PM |
| Shift register assistance (Modicon) | Bob Bass | LIVE PLC Questions And Answers | 2 | May 13th, 2003 01:20 AM |