Chapter 6 Instruction Details
XBC E-Type Main Unit
6-138
Ver. 1
6.24.5 INCU, INCUP, DINCU, DINCUP
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)
INCU(P)
DINCU(P)
D O O O - O O O - O -
-
- O O O O 2/3
O
O
O
Operand
Description
Data Type
D
Data address to perform operation.
WORD
[Flag Set]
Flag
Description
Device
Number
Error
To be set if INCU(P) is executed when D is 32767(h7FFF).
To be set if DINCU(P) is executed when D is 2147483647(h7FFFFFFF).
F110
Zero
To be set if (D)INCU(P) is executed when D is –1(FFFF or FFFFFFFF).
F111
Carry
To be set if (D)INCU(P) is executed when D is –1(FFFF or FFFFFFFF).
F112
1) INCU (Increment)
(1) Saves the result of D plus 1 again in D.
(2) Performs Unsigned Operation.
(3) If INCU(P) is executed when D’s value is 65,535 (h7FFF), 0(h0000) will be output, and Zero Flag and
Carry Flag will be set.
2) DINCU (Double Increment)
(1) Saves the result of D+1,D plus 1 again in D+1,D.
(2) Performs Unsigned Operation.
(3) If DINCU(P) is executed when D+1,D’s value is 4,294,967,295(hFFFFFFFF), 0 (h00000000) will be output
and Zero Flag and Carry Flag will be set.
3) Program Example
(1) For P1000=100, when Input Signal P00000 is changed to On from Off status, the value saved in P1000 is
increased 1.
INCUP P1000
P00000
INCU,
DINUC
INCUP,
DINCUP
D
means
P D
Command
Command
Summary of Contents for XBC-DN10E
Page 1: ......
Page 10: ...Table of Contents Table of Contents 6 10 10 CLEAR ALL PLC 29...