Applied Instructions
《Bit shift left》
《Bit shift right》
Function & Action
⑥ M15~M12→Overflow
⑦ M11~M 8→M15~M 12
⑧ M 7~M 4→M11~M8
⑨ M 3~M 0→M7~M4
⑩ X 3~X 0→M3~M0
⑥ M 3~M 0→Overflow
⑦ M 7~M 4→M3~M0
⑧ M11~M 8→M7~M4
⑨ M15~M12→M11~M8
⑩ X 3~X 0→M15~M12
z In every scan cycle, loop shift left/right action will be executed
[SFTL] & [SFTR]
16 bits instruction:SFTL、SFTR 32 bits instruction:DSFTL、DSFTR
Suitable Models:
XC3、XC5
n1
n2
Word
Device
D
FD
DM
DX
DY
DS
TD
CD
K/H
Bit
Device
X Y M S T C Dn.m
D·
S·
z The instruction copies n2 source devices to a bit stack of length n1. For every new addition of n2
bits, the existing ta within the bit stack is shifted n2 bits to the left/right. Any bit data moving to
the position exceeding the n1 limit is diverted to an overflow area. The bit shifting operation will
occur every time the instruction is processed unless it is modified with either the pulse suffix or a
controlled interlock.
da
175