DL205 User Manual, 4th Edition, Rev. D
5-100
Chapter 5: Standard RLL Instructions
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.
DirectSOFT
C5
INC
V1400
Increment the value in
V1400 by “1”.
V1400
8935
V1400
8936
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
DirectSOFT
C5
DEC
V1400
Decrement the value in
V1400 by “1”.
V1400
8935
V1400
8934
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
250-1
260
230
240
250-1
260
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