Chapter 6 Instruction and Flag List
XBC E-Type Main Unit
6-206
Ver. 1
6.32.6 UNI, UNIP
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)
UNI(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 UNI operation
WORD
D
Address to save operation result in
WORD
N
Number of 4-bit data to be united from S
WORD
[Flag Setting]
Flag
Description
Device Number
Error
If number of N’s range starting from S exceeds acceptable range of specified device, it
will be set.
To be set if N exceeds 4.
F110
1) UNI (Unite)
(1) Saves the result of the lower 4 bits in the N words, starting from S, in word data D. The upper 12 bits are
ignored.
(2) Each 4-bit data will be united from the lower bits in regular order and saved in word data D.
(3) Except for the lower N 4-bit data in word data D, all will be 0.
(4) If N exceeds 4, Error Flag will be set.
2) Program Example
(1) When D1000=h0004, D1001=h003 ,D1002=h0002 if D1200=h0003, and Input Signal P00000 is changed
from Off to On status, it saves D1100=h0234.
UNIP D1000 D1100 D1200
P00000
S+1
0 1 0 0 1 0 1 0 1 0 0 0 1 0 0 1
S
0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 1
S+2
0 1 1 1 0 0 0 0 1 0 0 0 1 0 1 1
S+3
0 1 1 1 0 0 0 0 1 0 0 0 1 1 1 1
b15
b8
b0
b7
D
1 1 1 1 1 0 1 1 1 0 0 1 1 1 0 1
b15
b8
b0
b7
UNI
means UNI
P S
D
UNIP
S
D
N
N
Summary of Contents for XBC-DN10E
Page 1: ......
Page 10: ...Table of Contents Table of Contents 6 10 10 CLEAR ALL PLC 29...