EasyManua.ls Logo

Mitsubishi Electric MELSEC FX Series - Page 528

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.13 Data Operation 2
526
FXCPU Structured Programming Manual
(Basic & Applied Instruction)
Function and operation explanation
1. 16-bit operation (DIS/DISP)
1) This instruction separates 16-bit data of the device specified by in 4-bit unit, and storing in the
device specified by as follows.
2) Any one of 1 to 4 is specified by n.
In the case of n=0, instruction is not processed.
3) 0 is set in higher 12 bits in the device of n points from the device specified by .
Related instructions
Cautions
FX3UC PLC supports at V2.20 or later.
Error
In the following case, it is an operation error, error flag M8067 is turned ON, and error code is stored in
D8067.
1) When the range of n points from the device specified by exceeds the device range of specified
device. (Error code: K6706)
2) When n is specified other than 0 to 4. (Error code: K6706)
Program example
This is a program for separating D0 in 4 bits each when the X000 is turned ON, and storing in D10 to D13.
Instruction Content
UNI This instruction couples lower 4 bits of 16-bit data.
DISP
EN
s
n
ENO
d
Device for storing the data to be separated.
Command
input
Number of separates
Head device for storing the separated data.
Lower 4 bits
Lower 4 bits
Lower 4 bits
Lower 4 bits
b15 b4 b3 b0
+0
+1
+2
To be set in 0.
n points
+3
Storing area
b15 b12 b11 b8 b7 b4 b3 b0
s d
[Structured ladder]
DISP
EN
s
n
ENO
d
D0
X000
K4
D10
[ST]
DISP(X000,D0,K4,D10);
b15 b4 b3 b0b2 b1
D0
b15 b12 b11 b4 b3 b0
0011 000000000000
1010000000000000
1001000000000000
Storing area
0011000000000000
To be set in 0.
D10
D11
D12
D13
b8 b7
100010101001 1000

Table of Contents

Other manuals for Mitsubishi Electric MELSEC FX Series

Related product manuals