Specifications
SIMATIC Instructions
9-123
S7-200 Programmable Controller System Manual
C79000-G7076-C233-01
Shift Register Bit
The Shift Register Bit (SHRB) instruction shifts the
value of DATA into the Shift Register. S_BIT specifies the
least significant bit of the Shift Register. N specifies the
length of the Shift Register and the direction of the shift
(Shift Plus = N, Shift Minus = -N).
Each bit shifted out by the SHRB instruction is placed in
the overflow memory bit (SM1.1).
Error conditions that set ENO = 0: SM4.3 (run-time),
0006 (indirect address), 0091 (operand out of range),
0092 (error in count field)
This instruction affects the following Special Memory bit:
SM1.1 (overflow)
Inputs/Outputs Operands Data Types
DATA, S_BIT I, Q, M, SM, T, C, V, S, L BOOL
N VB, IB, QB, MB, SMB, LB, AC, Constant, *VD, *AC, SB, *LD BYTE
L
A
D
S
T
L
SHRB DATA, S_BIT, N
SHRB
EN
S_BIT
N
DATA
F
B
D
ENO
222 224
333
221