jdbrandt
Lifetime Supporting Member
Does anyone know how to generate a 'some bit is set' function or
logic, without using a 255 contact series rung with n.c. contacts?
I need a rung/instruction that answers the following question:
Are any of the bits between %M001 and %M255 set?
This is a piece of cake in AB (one of the few things), since you
can address a 'group of 16 bits' as a word. And, if I could, say,
move %M001 thru %M016 into %R001, etc, then, this would be a
good thing, and I could continue in my AB ways.
I'm sure there's an easier way to do this, but I can't for the
life of me see it in the book.
logic, without using a 255 contact series rung with n.c. contacts?
I need a rung/instruction that answers the following question:
Are any of the bits between %M001 and %M255 set?
This is a piece of cake in AB (one of the few things), since you
can address a 'group of 16 bits' as a word. And, if I could, say,
move %M001 thru %M016 into %R001, etc, then, this would be a
good thing, and I could continue in my AB ways.
I'm sure there's an easier way to do this, but I can't for the
life of me see it in the book.