
Chapter 6 Instruction Details
XBC E-Type Main Unit
6-134
Ver. 1
6.24 Increase/Decrease Instruction
6.24.1 INC, INCP, DINC, DINCP
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)
INC(P)
DINC(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) INC (Increment)
(1) Saves the result of D plus 1 again in D.
(2) Performs Signed Operation.
2) DINC (Double Increment)
(1) Saves the result of D+1,D plus 1 again in D+1,D.
3) Flag Process
(1) For INC/DINC Instruction, no flag will be processed by operation result.
4) Program Example
(1) If Input Signal P00001 Off status is changed to On status, 5678 adds 1 and then 5679, which is added
result, is saved in P1100. When P00001 is repeated Off and On, the value saved in P1100 is increased one.
(5678 -> 5679 -> 5680 -> 5681, ...)
5678
5679
+1
b15
b0
P1100
b15
b0
P1100
INCP P1100
P00001
INC,
DINC
INCP,
DINCP
D
means
P D
Command
Command
Содержание XBC-DN10E
Страница 1: ......
Страница 10: ...Table of Contents Table of Contents 6 10 10 CLEAR ALL PLC 29...
Страница 52: ...Chapter 3 Installation and Wiring XBC E Type Main Unit 3 24 Ver 1 3 7 2 XBC DR10E 4 point relay output...
Страница 54: ...Chapter 3 Installation and Wiring XBC E Type Main Unit 3 26 Ver 1 3 7 3 XBC DN10E 4 point transistor output...
Страница 56: ...Chapter 3 Installation and Wiring XBC E Type Main Unit 3 28 Ver 1 3 7 4 XBC DR14E 6 point relay output...
Страница 58: ...Chapter 3 Installation and Wiring XBC E Type Main Unit 3 30 Ver 1 3 7 5 XBC DN14E 6 point transistor output...
Страница 60: ...Chapter 3 Installation and Wiring XBC E Type Main Unit 3 32 Ver 1 3 7 6 XBC DR20E 8 point relay output...
Страница 62: ...Chapter 3 Installation and Wiring XBC E Type Main Unit 3 34 Ver 1 3 7 7 XBC DN20E 8 point transistor output...
Страница 64: ...Chapter 3 Installation and Wiring XBC E Type Main Unit 3 36 Ver 1 3 7 8 XBC DR30E 12 point relay output...
Страница 66: ...Chapter 3 Installation and Wiring XBC E Type Main Unit 3 38 Ver 1 3 7 9 XBC DN30E 12 point transistor output...