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.
7.5.6 DIS, DISP 4-bit d issociation 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
38 to Y3F
*1: The data Y38 to Y3F will not change until the next data is 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
b0b3b7 b4b11 b8
b4b15 b0b3
n
Filled with 0s.
Storage area
b12b15
D
S
D
D
D
+1
+2
+3
S
D