DL205 User Manual, 4th Edition, Rev. B
5–100
Chapter 5: Standard RLL Instructions - Math
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
Increment (INC)
The Increment instruction increments a BCD value in a
specified V-memory location by “1” each time the instruction
is executed.
Decrement (DEC)
The Decrement instruction decrements a BCD value in a
specified V-memory location by “1” each time the instruction
is executed.
NOTE:
Status flags are valid only until another instruction uses the same flag.
In the following increment example, the value in V1400 increases by one each time that C5 is
closed (true).
In the following decrement example, the value in V1400 is decreased by one each time that
C5 is closed (true).
NOTE: Use a pulsed contact closure to INC/DEC the value in V–memory once per closure.
A aaa
INC
Discrete Bit Flags
Description
SP63
On when the result of the instruction causes the value in the accumulator to be zero.
SP75
On when a BCD instruction is executed and a NON-BCD number was encountered.
Direct
SOFT
C5
INC
V1400
Increment the value in
V1400 by “1”.
V1400
8 9 3 5
V1400
8 9 3 6
Handheld Programmer Keystrokes
STR
$
5
F
ENT
8
I
ENT
NEXT
NEXT
NEXT
NEXT
SHFT
TMR
N
1
B
4
E
0
A
0
A
2
C
CV
P
SHFT
3
D
A aaa
DEC
Direct
SOFT
C5
DEC
V1400
Decrement the value in
V1400 by “1”.
V1400
8 9 3 5
V1400
8 9 3 4
Handheld Programmer Keystrokes
STR
$
5
F
ENT
3
D
ENT
NEXT
NEXT
NEXT
NEXT
SHFT
4
E
1
B
4
E
0
A
0
A
2
C
CV
P
SHFT
3
D
ý
ý
þ
þ
230
240
2
5
0
-1
2
6
0
ý
ý
þ
þ
230
240
2
5
0
-1
2
6
0
Operand Data Type
DL250-1 Range
DL260 Range
A
aaa
aaa
V-memory V
All V mem (See page 3 - 55)
All V mem (See page 3 - 56)
Pointer P
All V mem (See page 3 - 55)
All V mem (See page 3 - 56)
DS
Used
HPP Used