Shift Instructions
75
S7-400 Instruction List
A5E00267845-01
Shift Instructions
Shifting the contents of ACCU1 and ACCU1-L to the left or right by the specified number of places. If no address identifier is specified,
the contents of ACCU2-LL are used as the number of places. The last bit shifted is loaded into condition code bit CC 1.
Instruc-
Address
Description
Length
in
Execution Time in
s
Instruc-
tion
Address
ID
Description
Length
in
Words
CPU 412
CPU 414
CPU 416
CPU 417
SLW
1)
Shift the contents of ACCU1-L to the left. Positions
that become free are provided with zeros.
1
0.1
0.06
0.04
0.03
SLW
0 ... 15
Shift the contents of ACCU1-L to the left. Positions
that become free are provided with zeros.
1
0.1
0.06
0.04
0.03
SLD
Shift the contents of ACCU1 to the left. Positions that
become free are provided with zeros.
1
0.1
0.06
0.04
0.03
SLD
0 ... 32
Shift the contents of ACCU1 to the left. Positions that
become free are provided with zeros.
1
0.1
0.06
0.04
0.03
SRW
1)
Shift the contents of ACCU1-L to the right. Positions
that become free are provided with zeros.
1
0.1
0.06
0.04
0.03
SRW
0 ... 15
Shift the contents of ACCU1-L to the right. Positions
that become free are provided with zeros.
1
0.1
0.06
0.04
0.03
Status word for:
SLW, SLD, SRW
BR
CC1
CC0
OV
OS
OR
STA
RLO
/FC
Instruction evaluates:
–
–
–
–
–
–
–
–
–
Instruction affects:
–
Yes
0
0
–
–
–
–
–
1)
No. of places shifted: 0 to 16