362
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]
[List Mode]
[Timing Chart]
: Head number of the devices where data to be dissociated is stored (BIN 16 bits)
: Head number of the devices where the dissociated data will be stored (BIN 16 bits)
n
: Number of dissociations (1 to 4), 0: No processing (BIN 16 bits)
Function
(1) Stores the lower n-digits (1 digit is 4 bits) of the 16-bit data designated by at the lower 4 bits n-points from the device
designated by .
(2) The upper 12 bits n-points from the device designated by become 0.
(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 will not change.
DIS, DISP
4-bit dissociation of 16-bit data
7.5.6
DIS, DISP
Setting
Data
Internal Devices
R, ZR
J \
U \G
Zn
Constants
K, H
Other
Bit
Word
Bit
Word
––
––
––
––
n
––
Step
Instruction
Device
X0
Y
38
to
Y
3
F
*
1
: T
he
data
Y
38
to
Y
3
F
w
ill
not
change
unt
il
the
next
data
i
s
output
.
*
1
Basic
Process
High
performance
Redundant Universal
LCPU
n
n
DIS
DISP
D
D
Command
Command
DISP
DIS
S
S
S
D
S
D
S
D
b0
b3
b7
b4
b11 b8
b4
b15
b0
b3
n
Filled with 0s.
Storage area
b12
b15
D
S
D
D
D
+1
+2
+3
S
D