Fnc214 - Sfl / Bit Shift Left With Carry - Mitsubishi Electric MELSEC FX3U Programming Manual

Melsec fx series programmable logic controllers
Table of Contents

Advertisement

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
P
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 T C D R U \G
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 in the range 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
flag M8022.
3) "0" is set to "n" bits from the least significant bit.
Carry flag
M8022
1
Mnemonic
16-bit Instruction
SFL
5 steps
SFLP
Device number storing data to be shifted
Number of times of shift (0 ≤ n ≤ 15)
Digit Specification
D
n
are shifted leftward by "n" bits.
D
b15
b14
b13
b12
D
1
1
1
1
b15
b14
b13
b12
D
0
0
0
0
27 Data Operation 3 – FNC210 to FNC219
27.5 FNC214 – SFL / Bit Shift Left with Carry
Operation Condition
32-bit Instruction
Continuous
Operation
Pulse (Single)
Operation
Description
Word Devices
Special
System User
Index
Unit
V Z Modify K H
b11
b10
b9
b8
b7
b6
b5
0
0
1
1
0
0
0
b11
b10
b9
b8
b7
b6
b5
1
1
1
1
0
0
0
Mnemonic
Operation Condition
Data Type
16-bit binary
Others
Con-
Real
Charac-
stant
Number
ter String
E
" "
is transferred to the carry
D
b4
b3
b2
b1
b0
0
1
1
1
1
In the case of "n = 8"
b4
b3
b2
b1
b0
0
0
0
0
0
Become "0".
21
22
23
24
Pointer
25
P
26
27
28
29
30
685

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents