100
D320 PLC User's Manual
Instruction
Mnemonic
Increment
Range
Bit
■
Word
INC
DINC
INCB
DINCB
Increment (INC, DINC)
BCD increment (INCB, DINCB)
■
Double words
Ladder
D = D + 1: Decimal number increment
D = D + 1: BCD increment
Description
1. INC and DINC increase D in decimal by 1 when the input is On.
2. INCB and DINCB increase D in BCD (Binary Coded Decimal) by 1.
3. INC and INCB are word instructions for processing 16 bit data.
4. DINC and DINCB are double word instructions for processing 32 bit data.
Example
Program Expression
Time Chart
INC
D =
R
R
INCB
D =
0
1
2
9
10
11
Max $FFFF $9999
...... 0 0 0 0 0 ….. 0 0 0 0 0
...... 0 0 0 0 1 ….. 0 0 0 0 1
Input (R0.1) M0005 (decimal) M0008(BCD)
...... 0 0 0 1 0 ….. 0 0 0 1 0
...... 0 1 0 0 1 ….. 0 1 0 0 1
...... 0 1 0 1 0 ….. 1 0 0 0 0
...... 0 1 0 1 1 ….. 1 0 0 0 1
INC
D = M0005
INCB
D = M0008
R000.1
R
Summary of Contents for D320 PLC
Page 1: ...D320 PLC User s Manual...
Page 18: ...6 D320 PLC User s Manual...
Page 28: ...16 D320 PLC User s Manual...
Page 34: ...22 D320 PLC User s Manual...
Page 78: ...66 D320 PLC User s Manual...
Page 176: ...164 D320 PLC User s Manual...
Page 210: ...198 D320 PLC User s Manual...
Page 258: ...246 D320 PLC User s Manual...