FX
/FX
/FX
/FX
3G
3U
3GC
3UC
Programming Manual - Basic & Applied Instruction Edition
11. Rotation and Shift Operation – FNC 30 to FNC 39
FNC 30 to FNC 39 provide instructions for rotating and shifting bit data and word data in specified directions.
FNC No.
Mnemonic
30
31
32
33
34
SFTR
35
SFTL
36
WSFR
37
WSFL
38
SFWR
39
SFRD
286
Series
Symbol
ROR
ROL
RCR
RCL
SFTR
SFTL
WSFR
WSFL
11 Rotation and Shift Operation – FNC 30 to FNC 39
ROR
D
n
Rotation Right
ROL
D
n
Rotation Left
RCR
D
n
Rotation Right with Carry
RCL
D
n
Rotation Left with Carry
S
D
n1
n2
Bit Shift Right
S
D
n1
n2
Bit Shift Left
S
D
n1
n2
Word Shift Right
S
D
n1
n2
Word Shift Left
SFWR
S
D
n
Shift write [FIFO/FILO control]
SFRD
S
D
n
Shift read [FIFO control]
Function
Reference
Section 11.1
Section 11.2
Section 11.3
Section 11.4
Section 11.5
Section 11.6
Section 11.7
Section 11.8
Section 11.9
Section
11.10