4-Bit Dissociation Of 16-Bit Data - Mitsubishi MELSEC-Q/L Programming Manual

Table of Contents

Advertisement

DIS, DISP
Program Example
(1) The following program converts the data from XC to XF to 7-segment display data and outputs it to Y38 to Y3F when X0
is turned ON.
[Ladder Mode]
[Timing Chart]
X0
* 1
Y38 to Y3F
*1: The data Y38 to Y3F will not change until the next data is output.
7.5.6
DIS, DISP

4-bit dissociation of 16-bit data

7.5.6
DIS, DISP
DIS
DISP
: Head number of the devices where data to be dissociated is stored (BIN 16 bits)
S
: Head number of the devices where the dissociated data will be stored (BIN 16 bits)
D
n
: Number of dissociations (1 to 4), 0: No processing (BIN 16 bits)
Setting
Internal Devices
Data
Bit
S
––
D
n
Function
(1) Stores the lower n-digits (1 digit is 4 bits) of the 16-bit data designated by
designated by
.
D
S
(2) The upper 12 bits n-points from the device designated by
(3) The value of n can be designated at between 1 and 4.
(4) If n
0, there will be no processing, and the contents n-points from
362
[List Mode]
Step
Command
Command
R, ZR
Word
Bit
b15
b12
b11 b8
b7
b4
b3
Device
Instruction
High
Basic
performance
S
DIS
S
DISP
J
\
U
\G
Word
––
at the lower 4 bits n-points from the device
S
b0
b15
b4
b3
D
D
+1
+2
D
+3
D
Filled with 0s.
Storage area
become 0.
S
will not change.
D
Process
LCPU
Redundant Universal
n
D
n
D
Constants
Zn
Other
K, H
––
––
––
b0
n

Advertisement

Table of Contents
loading

Table of Contents