Warren Boswell
Member
Hello all.
I've been looking into sequencer blocks on RSLogix 500 and am planning to rewrite a sequence based program that I originally wrote in ladder, using sequencer blocks this time to familiarise myself with the concept.
I have 22 Outputs in the program however, and a 16-channel output card. I will have to create two seperate rungs, read two seperate words and output it via two seperate SQO instructions to the two different output cards for each step in the sequence. Not a train wreck, I know, but I'm sure there must be a neater way to do it.
Installing a 32-channel Output card will not solve my woes either, since the 32-channel card is divided into two words (eg: O:3.0/15 for channel 16 and O:3.1/0 for channel 17).
Two questions:
1) How could I write the necessary sequence using one word per step? Is there some way of linking two words to be read as one, or can I use a different data type to write each step in the sequence (An array of strings seems like a plausible alternative, or am I fishing?).
2) Is there some way I can write to the two different output cards with the single SQO instruction? As I'm writing this it seems more and more unlikely, but maybe one of you wizards have a fancy trick up your sleeve.
Thanks in advance.
Warren Boswell.
I've been looking into sequencer blocks on RSLogix 500 and am planning to rewrite a sequence based program that I originally wrote in ladder, using sequencer blocks this time to familiarise myself with the concept.
I have 22 Outputs in the program however, and a 16-channel output card. I will have to create two seperate rungs, read two seperate words and output it via two seperate SQO instructions to the two different output cards for each step in the sequence. Not a train wreck, I know, but I'm sure there must be a neater way to do it.
Installing a 32-channel Output card will not solve my woes either, since the 32-channel card is divided into two words (eg: O:3.0/15 for channel 16 and O:3.1/0 for channel 17).
Two questions:
1) How could I write the necessary sequence using one word per step? Is there some way of linking two words to be read as one, or can I use a different data type to write each step in the sequence (An array of strings seems like a plausible alternative, or am I fishing?).
2) Is there some way I can write to the two different output cards with the single SQO instruction? As I'm writing this it seems more and more unlikely, but maybe one of you wizards have a fancy trick up your sleeve.
Thanks in advance.
Warren Boswell.