FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
27.5
FNC214 – SFL / Bit Shift Left with Carry
Outline
This instruction shifts 16 bits stored in a word device leftward by "n" bits.
1. Instruction format
FNC 214
SFL
2. Set data
Operand Type
D
n
3. Applicable devices
Bit Devices
Oper-
and
System User
Type
X Y M T C S D .b KnX KnY KnM KnS
D
n
Explanation of function and operation
1. 16-bit operation (SFL and SFLP)
Command
input
FNC214
SFLP
1)
16 bits stored in a word device
Specify a value ranging from "0" to "15" as "n".
If "16" or larger value is specified as "n", 16 bits are shifted leftward by the remainder of "n/16".
For example, when "n" is set to "18", 16 bits are shifted leftward by 2 bits (18/16 = 1 ... 2).
2)
The ON (1)/OFF (0) status of the "n+1"th bit (bit "n") in the word device
M8022.
3)
"0" is set to "n" bits from the least significant bit.
Carry flag
M8022
1
652
Mnemonic
16-bit Instruction
P
SFL
5 steps
SFLP
Device number storing data to be shifted
Number of times of shift (0 ≤ n ≤ 15)
Digit Specification
D
n
D
are shifted leftward by "n" bits.
b15
b14
b13
D
1
1
1
b15
b14
b13
0
0
0
D
Operation Condition
32-bit Instruction
Continuous
Operation
Pulse (Single)
Operation
Description
Word Devices
Special
System User
Unit
T
C D R U \G
b12
b11
b10
b9
b8
b7
1
0
0
1
1
0
b12
b11
b10
b9
b8
b7
0
1
1
1
1
0
27 Data Operation 3 – FNC210 to FNC219
27.5 FNC214 – SFL / Bit Shift Left with Carry
Mnemonic
Operation Condition
⎯
⎯
Con-
Real
Index
stant
Number
V
Z Modify K
H
E
D
is transferred to the carry flag
b6
b5
b4
b3
b2
b1
b0
0
0
0
1
1
1
In the case of "n = 8"
b6
b5
b4
b3
b2
b1
b0
0
0
0
0
0
0
Become "0".
Data Type
16-bit binary
Others
Charac-
Pointer
ter String
" "
P
1
0