Specifications

7. Application Instructions
© DELTA ELECTRONICS, INC. ALL RIGHTS RESERVED
7-22
When M, Y, S are assigned to serve as the bit operand, only K4 (16-bit)
and K8 (32-bit) are effective, e.g. K4M0, K8Y0.
Command Motion Explanation
Ϩʳ When X0 goes from OFFШON, the 16 bit data of D10, along with the
attached carrying flag (M1022), will rotate 4 bits to the left, as shown in
the diagram, and b12 that located at D10 originally will then be moved
to the carrying flag M1022, and that the original contents of the
carrying flag M1022 will be moved to the bit of b3.
X0
RCL D10 K4
000 00 000 0 0011 111
0000101 0001110
b15 b0
b15 b0
*
0
*
1
0
4 bits
Rotate to the left
A
fter one rotation
to the left
Carrying
flag
Carrying
flag
34 SFTR
S D n
1
n
2
Shifts the data of device
specified to the right
Bit device Word device
Device
Operand
X Y M S K H KnX KnY KnM KnS T C D E F
S
ϨϨϨϨ
D
ϨϨϨ
n
1
ϨϨ
n
2
ϨϨ
Requirement: n2Љn1Љ512. Shifts
n
2
data bits of device
S
to
the right by
n
1
bits.
n
2
bits, which begin with
D
, are shifted
to the right.
It is generally advised to use the pulse wave contact to drive this
command, otherwise, it will keep going on and on.
Program Example
X0
SFTR X0 K16M0 K4
X3 X2 X1 X0
M15 M14 M13 M12 M11 M10 M9 M 8 M7 M6 M 5 M4 M3 M 2 M1 M0
123
4
5
4 bits in one group shift to the right
Ϩʳ Please Notice: If use the pulse wave contact to drive this command, X0
will shift
n
2
bits to the right when X0 is in the rising-edge. If use the
normal On contact to drive this command, the bit shifting operation will
occur every time during every scan.
35 SFTL
S D n
1
n
2
Shifts the data of device
specified to the left
Bit device Word device
Device
Operand
X Y M S K H KnX KnY KnM KnS T C D E F
S
ϨϨϨϨ
D
ϨϨϨ
n
1
ϨϨ
n
2
ϨϨ
Requirement: n2Љn1Љ512
Shifts
n
2
data bits of device
S
to the left by
n
1
bits.
n
2
bits, which begin with
D
, are shifted to the left.