Simatic Shift And Rotate Instructions; Shift Right Byte, Shift Left Byte - Siemens SIMATIC S7-200 System Manual

Hide thumbs Also See for SIMATIC S7-200:
Table of Contents

Advertisement

SIMATIC Instructions
9.12

SIMATIC Shift and Rotate Instructions

Shift Right Byte, Shift Left Byte

L
A
D
EN
F
IN
B
D
N
EN
IN
N
S
SRB
T
L
SLB
221
222 224
Inputs/Outputs
IN
VB, IB, QB, MB, SB, SMB, LB, AC, Constant, *VD, *AC, *LD
OUT
VB, IB, QB, MB, SB, SMB, LB, AC, *VD, *AC, *LD
N
VB, IB, QB, MB, SB, SMB, LB, AC, Constant, *VD, *AC, *LD
9-120
The Shift Right Byte and Shift Left Byte instructions
shift the input byte (IN) value right or left by the shift
SHR_B
ENO
count (N), and load the result in the output byte
(OUT).
OUT
OUT
The Shift instructions fill with zeros as each bit is shifted
.
out
If the shift count (N) is greater than or equal to 8, the
value is shifted a maximum of 8 times.
SHL_B
ENO
If the shift count is greater than 0, the overflow memory
bit (SM1.1) takes on the value of the last bit shifted out.
OUT
OUT
The zero memory bit (SM1.0) is set if the result of the
shift operation is zero.
Shift right and shift left byte operations are unsigned.
OUT, N
Error conditions that set ENO = 0: SM4.3 (run-time),
0006 (indirect address)
OUT, N
These instructions affect the following Special Memory
bits: SM1.0 (zero); SM1.1 (overflow)
226
Operands
S7-200 Programmable Controller System Manual
Data Types
BYTE
BYTE
BYTE
A5E00066097-02

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents