DL06 Micro PLC User Manual, 3rd Edition, Rev. E
5-98
Chapter 5: Standard RLL Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
NOTE: Status flags are valid only until another instruction uses the same flag.
In the following increment example, when C5 makes an Off-to-On transition the value in
V1400 increases by one.
In the following decrement example, when C5 makes an Off-to-On transition the value in
V1400 is decreased by one.
A aaa
INC
A aaa
DEC
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
Operand Data Type
DL06 Range
A
aaa
V-memory
V
See memory map
Pointer
P
See memory map
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
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
DS
Used
HPP Used
DS
Used
HPP Used
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.