Chapter 6 Instruction and Flag List
XBC E-Type Main Unit
6-204
Ver. 1
6.32.4 DECO, DECOP
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)
DECO(P)
S
O 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 DECO operation
WORD
D
Address to save operation result in
WORD
N
Available multipliers of bits to decode
WORD
[Flag Setting]
Flag
Description
Device Number
Error
If effective number of bits N is other than 0 ~ 8
Number of effective 2
N
which is started D is exceeds the device area
F110
1) DECO (Decode)
(1) Decodes the lower N bits among saved data in specified S and the result is saved in specified D device
for 2
N
bits. (8 bit is decoded to 256 bit)
(2) 1~8 is available for N.
(3) If N is 0, D will not be changed.
2) Program Example
(1) If D1000=h1234 and D1200=h0005, if Input Signal is changed from Off to On status, It saves
D1101=h0010 and D1100=h0000.
DECOP D1000 D1100 D1200
P00000
DECO
means DECO
P S
D
DECOP
S
D
N
N
2
5
bits
N (5)
bits
b15
b8
b0
b7
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
P0001
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
P0012
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
P0013
b15
b8
b0
b7
b15
b8
b0
b7
24
th
bit set
Summary of Contents for XBC-DN10E
Page 1: ......
Page 10: ...Table of Contents Table of Contents 6 10 10 CLEAR ALL PLC 29...