FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
11.6
FNC 35 – SFTL / Bit Shift Left
Outline
This instruction shifts bit devices of the specified bit length leftward by the specified number of bits.
After shift, the bit device
1. Instruction format
FNC 35
SFTL
P
2. Set data
Operand Type
S
D
n1
n2
*1.
Do not set a negative value to the number of bits to be shifted leftward.
3. Applicable devices
Bit Devices
Oper-
and
System User
Type
X Y M T C S D .b KnX KnY KnM KnS T C D R U \G
S
D
n1
n2
: "D .b" is available only in FX
is transferred by "n2" bits from the least significant bit.
S
Mnemonic
16-bit Instruction
SFTL
9 steps
SFTLP
Head bit device number to be stored to the shift data after leftward shift
Head bit device number to be shifted leftward
Bit length of the shift data n2 ≤ n1 ≤ 1024
Number of bits to be shifted leftward n2 ≤ n1 ≤ 1024
Digit Specification
and FX
3U
11 Rotation and Shift Operation – FNC 30 to FNC 39
Operation Condition
32-bit Instruction
Continuous
Operation
Pulse (Single)
Operation
Description
*1
Word Devices
Special
System User
Unit
V Z Modify K H
PLCs. However, index modifiers (V and Z) are not available.
3UC
11.6 FNC 35 – SFTL / Bit Shift Left
Mnemonic
Operation Condition
−
−
Data Type
Bit
Bit
16-bit binary
16-bit binary
Others
Con-
Real
Charac-
Index
stant
Number
ter String
E
" "
11
12
13
14
15
Pointer
P
16
17
18
19
20
317