Chapter 6 Instruction and Flag List
XBC E-Type Main Unit
6-205
Ver. 1
6.32.5 DIS, DISP
Instruction
Area Available
Step
Flag
P M K
F
L
T
C
S
Z D.x R.x
Con
st
U
N
D
R
Error
(F110)
Zero
(F111)
Carry
(F112)
DIS(P)
S
O O O O O O O
-
O
-
-
-
O O O O
4~6
O
-
-
D
O O O
-
O O O
-
O
-
-
-
O O O O
N
O O O
-
O O O
-
O
-
-
O O O O O
Operand
Description
Data Type
S
Data address to perform DIS operation
WORD
D
Address to save operation result in
WORD
N
Number of 4-bit data to be saved in starting D
WORD
[Flag Setting]
Flag
Description
Device Number
Error
To be set if N exceeds 4.
If number of N’s range from D exceeds specified device area
F110
1) DIS (Distribute)
(1) Saves the result of specified S device’s data divided into N nibbles (4-bit) in specified device D. Starting,
in regular order, for the number of N.
(2) If N=0, the instruction will not be executed.
(3) Starting from device D, D+1, … , the lower 1 nibble will be filled with divided data, and the upper bits left
with 0s.
(4) If N exceeds 4, Error Flag will be set.
2) Program Example
(1) For D1000=h1234 and D1200=h0003, if Input Signal P00000 is changed from Off to On status, It saves
D1100=h0004, D1101=h0003 and D1102=h0002.
DISP D1000 D1100 D1200
P00000
DIS
means DIS
P S
D
DISP
S
D
N
N
D+1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1
1
D
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
D+2
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
0
D+3
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
b15
b8
b0
b7
S
1
0
0
0
1
1
1
0
1
0
1
1
1
0
0
1
b15
b8
b0
b7
8
E
B
9
8
E
B
9
Summary of Contents for XBC-DN10E
Page 1: ......
Page 10: ...Table of Contents Table of Contents 6 10 10 CLEAR ALL PLC 29...