Fnc213 - Sfr / Bit Shift Right With Carry - Mitsubishi FX3U Series Programming Manual

Hide thumbs Also See for FX3U Series:
Table of Contents

Advertisement

FX
/FX
Series Programmable Controllers
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
27.4
FNC213 – SFR / Bit Shift Right with Carry
Outline
This instruction shifts 16 bits stored in a word device rightward by "n" bits.
1. Instruction format
FNC 213
SFR
P
2. Set data
Operand Type
D
n
3. Applicable devices
Bit Devices
Oper-
System User
and
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 (SFR and SFRP)
Command
input
FNC213
SFRP
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 rightward by the remainder of "n/16".
For example, when "n" is set to "18", 16 bits are shifted rightward by 2 bits (18/16 = 1 ... 2).
2) The ON (1)/OFF (0) status of the "n"th bit (bit "n-1") in the word device
flag M8022.
3) "0" is set to "n" bits from the most significant bit.
b15
b14
D
1
In the case of "n = 6"
b15
b14
D
0
Mnemonic
16-bit Instruction
SFR
5 steps
SFRP
Device number storing data to be shifted
Number of times of shift (0 ≤ n ≤ 15)
Digit Specification
D
n
are shifted rightward by "n" bits.
D
b13
b12
b11
b10
b9
b8
1
1
0
1
1
1
0
b13
b12
b11
b10
b9
b8
0
0
0
0
0
1
1
Become "0".
27 Data Operation 3 – FNC210 to FNC219
27.4 FNC213 – SFR / Bit Shift Right with Carry
Operation Condition
32-bit Instruction
Continuous
Operation
Pulse (Single)
Operation
Description
Word Devices
Special
System User
Unit
V Z Modify K H
b7
b6
b5
b4
b3
b2
b1
1
1
1
0
1
1
1
b7
b6
b5
b4
b3
b2
b1
1
0
1
1
1
0
1
Mnemonic
Operation Condition
Data Type
16-bit binary
Others
Con-
Real
Charac-
Index
stant
Number
ter String
E
" "
is transferred to the carry
D
b0
0
Carry flag
M8022
b0
1
1
21
22
23
24
Pointer
25
P
26
27
28
29
30
639

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3uc seriesMelsec-f

Table of Contents