![background image](http://html1.mh-extra.com/html/ls-industrial-systems/xbc-dn10e/xbc-dn10e_user-manual_1943831253.webp)
Chapter 6 Instruction Details
XBC E-Type Main Unit
6-136
Ver. 1
6.24.3 DEC, DECP, DDEC, DDECP
Instruction
Area Available
Step
Flag
P M K F L T C S Z D.x R.x
Co
nst.
U N D R
Error
(F110)
Zero
(F111)
Carry
(F112)
DEC(P)
DDEC(P)
D O O O - O O O - O -
-
- O O O O 2/3
-
-
-
Operand
Description
Data Type
D
Data address to perform operation.
INT
1) DEC (Decrement)
(1) Saves the result of D minus 1 again in D.
(2) D is processed as Signed Integer.
2) DDEC (Double Decrement)
(1) Saves the result of D+1,D minus 1 again in D+1, D.
3) Flag Process
(1) As for INC/DINC Instruction, no flag will be processed by operation result. Carry Flag (F112) is not
generated when Minimum value is decreased 1.
4) Program Example
(1) If Input Signal P00000 is changed to On from Off status, the result 1233 (1234 minus 1) is saved in P1000.
When P00000 is repeated On from Off status the value which is saved in P1000 is decreased 1 (1234-
>1233->1232->1231->1230…..).
1234
1233
-1
b15
b0
P0100
b15
b0
P0100
DECP P1000
P00000
DEC,
DDEC
DECP,
DDECP
D
means
DEC/DDEC
P D
Command
1
2
3
4
1
2
3
3
b0
b15
S
b0
b15
S
DEC
-1
1
2
3
4
5
6
7
8
b31
1
2
3
4
5
6
7
7
b31
DDEC
-1
S
S
b0
b0
Command
Summary of Contents for XBC-DN10E
Page 1: ......
Page 10: ...Table of Contents Table of Contents 6 10 10 CLEAR ALL PLC 29...