FX Series Programmable Controlers Applied Instructions 5
5-48
5.4.6 SFTL (FNC 35)
Operation:
The instruction copies n
2 source devices to a bit
stack of length n
1. For every new addition of n2 bits,
the existing data within the bit stack is shifted n
2bits
to the left. Any bit data moving to a position
exceeding the n
1 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.
Mnemonic Function
Operands
Program steps
SDn
1 n2
SFTL
FNC 35
(
Bit shift left)
The status of the
source devices are
copied to a
controlled bit stack
moving the existing
data to the left
X, Y, M, S Y, M, S K,H,
)
Note:
FX users: n2 ≤ n1 ≤ 1024
FX
0,FX0N users:
n2 ≤ n1 ≤ 512
SFTL,SFTLP:
9steps
FX
1S
FX
1N
FX
2N
FX
2NC
PULSE-P
16 BIT OPERATION
32 BIT OPERATION
X7
SFTL
X 10
Y 0
K 12
K 3
[S] [D] [n1] [n2]
Y2 Y1 Y0
X12
X11 X10
Y5 Y4 Y3
Y10 Y7
Y6
Y13 Y12 Y11