Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
19 Applied Instructions (Data Operation 2)
19.5 DIS / 4-bit Grouping of Word Data
509
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
11
Applied Instructions
(Data Operation)
12
Applied Instructions
(High Speed
Processing)
13
Applied Instructions
(Handy
Instruction)
14
Applied Instructions
(External FX I/O
Device)
15
Applied Instructions
(External Device
(optional device))
16
Applied Instructions
(External Device)
17
Applied Instructions
(Data Transfer 2)
18
Applied Instructions
(Floating Point)
19
Applied Instructions
(Data Operation 2)
20
Applied Instructions
(Positioning
Control)
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
The instruction is provided in the FX3UC PLC Ver. 2.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/FBD]
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