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