EasyManua.ls Logo

Mitsubishi Electric MELSEC FX Series - Page 681

Mitsubishi Electric MELSEC FX Series
838 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7 Applied Instructions
7.21 Data Operation 3
679
FXCPU Structured Programming Manual
(Basic & Applied Instruction)
1
Outline
2
Instruction List
3
Configuration of
Instruction
4
How to Read
Explanation of
Instructions
5
Basic Instruction
6
Step Ladder
Instructions
7
Applied
Instructions
8
Interrupt Function
and Pulse Catch
Function
A
Relationships
between devices
and addresses
Function and operation explanation
1. 16-bit operation (SFR/SFRP)
1) 16 bits stored in a word device specified by are shifted rightward by "n" bits.
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) divided by
(16)".
For example, when "n" is set to "18", 16 bits are shifted rightward by 2 bits as "2" remains when "18" is
divided by "16".
2) The ON (1) or OFF (0) status of the "n"th bit (bit "n-1") in the word device specified by is transferred
to the carry flag M8022.
3) "0" is set to "n" bits from the most significant bit.
When a bit device is specified by digit specification
(4 × K
) bits are shifted according to the data bit specification.)
Related device
For the carry flag use method, refer to Section 1.3.4.
Error
An operation error is caused in the following cases. The error flag M8067 turns ON, and the error code is
stored in D8067.
1) When a negative value is set to "n" (Error code: 6706)
Device Name Description
M8022 Carry flag Shifts the ON/OFF status of bit "n-1"
SFR
EN
n
ENO
d
Number of times
of shift
Command
input
Device storing data to be shifted.
1
b15
1
b14
1
b13
0
b12
1
b11
1
b10
1
b9
0
b8
1
b7
1
b6
1
b5
0
b4
1
b3
1
b2
1
b1
0
b0
0
b15
0
b14
0
b13
0
b12
0
b11
0
b10
1
b9
1
b8
1
b7
0
b6
1
b5
1
b4
1
b3
0
b2
1
b1
1
b0
In the case of "n = 6"
1
Carry flag
M8022
Becomes "0".
d
d
K3M0
LDP
EN
s
ENO
Command
input
SFRP
EN
n
ENO
K4
d
1
M11
0 1 0
M8
1 0 1 0 1 0 1 0
1
Carry flag
M8022
M7 M4 M3 M0
0 0 0 0 1 0 1 0 1 0 1 0
Becomes "0".
M11 M8M7 M4M3 M0

Table of Contents

Other manuals for Mitsubishi Electric MELSEC FX Series

Related product manuals