SHRB (shift bit) TI505

karivelm

Member
Join Date
Nov 2006
Location
Quebec
Posts
66
I am using the SHRB instruction to shift bits with TISOFT. I was wondering if it is possible to set bits (by an interface) that are used by this function.

Example I reset the function & then I want to set 3 bits to 1 and continue using the SHRB function. Is it possible ?
 
There is no reason why you can't set/clear bits within the scope of the shift register. The SHRB instruction has no memory of what it has done after each clock pulse, so further manipulation of bits does not cause any problems. Provided you know which bits you want to set manually, carry on and they should be moved through the register just like any others.

Ken
 
SHRB manual bit set

Lets say I have bit3 (0), bit2(0), bit1(0) which are used in my SHRB function

For a reason I want to set bit2(1) for the next shift bit. So I set it using the following function. SET C

When it has power flow, a SET C coil sets a specified bit to one. Otherwise,the bit remains unchanged. When it has power flow, a RST (Reset) C coil clears a specified bit to zero. Otherwise, the bit remains unchanged.
Will bit2 remain set even after the SHRB has been executed, note bit1(0) before SHRB ?
 

Similar Topics

I want to use a shift register in S7 similiar to the Allen-Bradley BSL/BSR shift instructions. I found the FC92 bit shift register under standard...
Replies
17
Views
10,883
Hello fellas Im having trouble downloading this program to s7-200. (Se attachment) No problem in program but just before it ends the download it...
Replies
4
Views
1,697
I am using a SHRB for registers between 4082 to 4084. (see pic SHRB) I am using an interface to sometimes directly set values. So in the PLC...
Replies
0
Views
1,343
Replies
1
Views
1,726
I've got a Powerflex 700 that doesn't like to get going in the mornings. This motor will run anywhere from 30 seconds to 5 minutes before it just...
Replies
3
Views
197
Back
Top Bottom