Bit Shifting

goatom

Member
Join Date
Feb 2006
Location
Condon, or
Posts
29
Getting closer to understanding BSR/BSL but I still cannot understand the "CONTROL" address function. I am using R6:10 and I can see the 0's amd 1's do their thing, but what purpose is the control segment of this instruction? Also I gave the BSR a length of 8 but bits shift all the way to 15 on a BSL instruction.

Going to go shift some bits at home and will see what the control has to say about that.
 
The 'Control' (R:) registers in AB PLC's are just data blocks that the PLC uses internally to keep track of what the instruction is doing.

If you have played much with AB SLC/PLC processors, you might know that on older CPU's, you needed to reserve a block of integer registers for things like a PID instruction. Newer series CPU's introduced the "PD:" data file. They both store the state and control information so the PID equations could function, but the PD: type is much more user (and, I assume, even processor) friendly.
 
Open the data table address for R6:10 and compare what you see there with what's in the box in the ladder rung for that instruction.
 

Similar Topics

Hello all, What I want to do is take a word of data and move the bits over 1 bit. So to keep it simple: 0001 0011 1100 0110 and move into...
Replies
2
Views
1,514
Hi, I need to bit-shift a block of words in an Omron PLC by a certain amount. Is SFTR the only way to do this? I've tried NSFR/NSFL but from...
Replies
11
Views
3,690
I am looking for an instruction similar to the RS Logix BTD instruction. I need to be able to strip bits in the middle of a 32 bit double word...
Replies
1
Views
1,893
Hello, I have a project at work where I am to set up an alarm sequence. What they want is to have the last two alarm lights that came on to be...
Replies
17
Views
18,760
hi there guys i know this will be easy for you as a newbie here could someone explain the operation of the (AB) bit shift left and bit shift...
Replies
7
Views
7,214
Back
Top Bottom