EasyManua.ls Logo

Cutler-Hammer D50 - Inc Dinc Incb Dincb

Cutler-Hammer D50
228 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 6: Instructions 75
Instruction
Mnemonic Increment Range
Bit
■ Byte
INC
DINC
INCB
DINCB
Increment (INC, DINC)
BCD increment (INCB, DINCB)
■ Word
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 byte instructions for processing 8 bit data.
4. DINC and DINCB are word instructions for processing 16 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
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

Table of Contents