90-30 Bit Operations

jvcontrols

Member
Join Date
Apr 2011
Location
BC
Posts
2
Hi, I'm a "bit" confused with shift registers for the 90-30, cpu 323.

I'm trying to start a group of 16 motors in sequence using a shift register. How do I write the %R's to %Q's?

Thanks
 
Hi you can simply use MOVE

make sure you target a byte boundary for your %M bits

eg %M0001 / %M0016 etc
 
why not use shift bits. Once you pick Shift Register change type to bits instead of word.
 
Try this. Every scan in which both %M0001 and %M0002 are true and %R00001 has the value 1, you will shift the bit pattern of the sixteen bits starting at %Q0001 by one place and move a 1 into the vacated LSB.

You can clear all sixteen bits by putting the value 16 into %R00001, turning %M0002 off and turning %M0001 on.

|
|%M0001 +-----+
+--] [---+ SHL_|
| | WORD|
| | |
|%Q0001 -+IN B2+-
| | LEN |
| |00001|
|%R00001-+N Q+-%Q0001
| | |
|%M0002 | |
+--] [---+B1 |
| +-----+
|

 

Similar Topics

See the screenshot of EIP tag list. We are trying to read in a digital input that is hard-wired. It is shown here as I31.1. I believe we cannot...
Replies
7
Views
282
A couple days ago I accidentally toggled an alwasyoff bit. The issue is it was set up as a single OTU on a rung, nothing else, and used as XICs...
Replies
3
Views
226
Hi I have an old panel builder 32 that I’m replacing for a factory talk me hmi . In the plc for the old panel builder there is a coms bit for the...
Replies
0
Views
74
Hello, Haven't been on in a while. I need to generate a bit level pdf of the I/O for RSLogix 500. I can generate a report but it just shows the...
Replies
1
Views
158
I tried researching but I still don't quite get it. As far as I understood, it's used after a function is called in STL and then if the function...
Replies
1
Views
143
Back
Top Bottom