Fnc213 - Sfr / Bit Shift Right With Carry - Mitsubishi Electric FX3G SERIES Programming Manual

Programmable controllers
Hide thumbs Also See for FX3G SERIES:
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
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
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 (SFR and SFRP)
Command
input
FNC213
SFRP
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 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
M8022.
3)
"0" is set to "n" bits from the most significant bit.
b15
D
1
In the case of "n = 6"
b15
D
0
650
Mnemonic
16-bit Instruction
P
SFR
5 steps
SFRP
Device number storing data to be shifted
Number of times of shift (0 ≤ n ≤ 15)
Digit Specification
D
n
D
are shifted rightward by "n" bits.
b14
b13
b12
b11
b10
b9
1
1
0
1
1
1
b14
b13
b12
b11
b10
b9
0
0
0
0
0
1
Become "0".
Operation Condition
Continuous
Operation
Pulse (Single)
Operation
Description
Word Devices
Special
System User
Unit
T
C D R U \G
b8
b7
b6
b5
b4
b3
b2
0
1
1
1
0
1
b8
b7
b6
b5
b4
b3
b2
1
1
0
1
1
1
27 Data Operation 3 – FNC210 to FNC219
27.4 FNC213 – SFR / Bit Shift Right with Carry
Mnemonic
32-bit Instruction
Con-
Real
Index
stant
Number
V
Z Modify K
H
E
is transferred to the carry flag
D
b1
b0
1
1
0
Carry flag
M8022
b1
b0
0
1
1
1
Operation Condition
Data Type
16-bit binary
Others
Charac-
Pointer
ter String
" "
P

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents