![background image](http://html1.mh-extra.com/html/ls-industrial-systems/xbc-dn10e/xbc-dn10e_user-manual_1943831252.webp)
Chapter 6 Instruction Details
XBC E-Type Main Unit
6-135
Ver. 1
6.24.2 INC4, INC4P, INC8, INC8P
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)
INC4(P)
INC8(P)
D O O O - O -
-
-
- O O - O -
-
-
2/3
-
-
-
Operand
Description
Data Type
D
Data address to perform operation.
NIBBLE/BYTE
1) INC4 (Nibble Increment)
(1) Saves the result of D plus 1 again in D within Nibble data size range.
(2) Performs Signed Operation.
2) INC8 (Byte Increment)
(1) Saves the result of D plus 1 again in D within Byte data size range.
(2) Performs Signed Operation.
3) Flag Process
(1) For INC/DINC Instruction, no flag will be processed by operation result. Carry Flag (F112) is not generated
when Maximum value is increased 1.
4) Program Example
(1) If Input Signal P00000 is changed On from Off status, the result 2, which is the saved value 1 from No. 4
Bit of P0100, plus 1 is saved in No.4 Bit of P0100 by Nibble unit. When P00001 is repeated On from Off
status, the value which is saved in P0100 is increased 1 (h0015 -> h0025 -> h0035 -> h0045).
h0015
h0025
+1
b15
b0
P0100
b15
b0
P0100
INC4P P01004
P00000
INC4,
INC8
INC4P,
INC8P
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...