EasyManua.ls Logo

Cutler-Hammer D50 - Adc, Dadc, Adcb, Dadcb

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...
82 D50 PLC User's Manual
Instruction
Command Addition with Carry Range
Bit
Byte
ADC
DADC
ADCB
DADCB
Decimal addition with carry (ADC,
DADC)
BCD addition with carry (ADCB,
DADCB)
Word
Ladder
D = S1 + S2 + carry
Decimal: S1 = 21, and S2 = 22
Hexadecimal: S1 = $15 and S2 = $16
Carry Flag: F1.8 = On
ADC Example:
Decimal: 21 + 22 + 1 = 44
ADCB Example:
BCD: $15 + $16 + $1 = $32
Description
1. Add the data in the S1 and S2 addresses. If the carry flag F1.8 is On, add 1, otherwise add 0.
Then store the result in the D register.
2. When using ADC and ADCB, the calculation ranges are as follows:
S1: 0 to 255 (0 to $FF)
S2: 0 to 255 (0 to $FF)
D: 0 to 255 (0 to $FF)
3. When using DADD and DADDB, the calculation ranges are as follows:
S1: 0 to 65,535 (0 to $FFFF)
S2: 0 to 65,535 (0 to $FFFF)
D: 0 to 65,535 (0 to $FFFF)
4. If the result exceeds the range of calculation, a carry occurs. The carry flag (F1.8) is changed
to On.
5. This operation will occur on every scan for which the input condition is true (On). To perform
the operation only on a change of input condition, use the rising/falling edge contact.
A
DC
D =
S1 =
S2 =
R
R
ADCB
D =
S1 =
S2 =
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

Table of Contents

Related product manuals