DL06 Micro PLC User Manual, 3rd Edition, Rev. E
5-105
Chapter 5: Standard RLL Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
In the following example when C5 is on, the binary value in V2000 is increased by 1.
NOTE: Status flags are valid only until another instruction uses the same flag.
In the following example when C5 is on, the value in V2000 is decreased by 1.
A aaa
INCB
Handheld Programmer Keystrokes
Direct
SOFT32
C5
INCB
V2000
Increment the binary value
in V2000 by“1”
4A3C
4A3D
STR
$
2
C
5
F
SHFT ENT
SHFT
8
I
TMR
N
2
C
1
B
2
C
0
A
0
A
0
A
ENT
V2000
Handheld Programmer Keystrokes
DirectSOFT
C5
DECB
V2000
Decrement the binary value
in V2000 by“1”
V2000
4A3C?
V2000
4A3B?
STR
$
2
C
5
F
SHFT
ENT
SHFT
2
C
3
D
4
E
1
B
2
C
0
A
0
A
0
A
ENT
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.
A aaa
DECB
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.
DS Used
HPP Used
DS Used
HPP Used
DirectSOFT
Increment Binary (INCB)
The Increment Binary instruction increments a binary value
in a specified V-memory location by “1” each time the
instruction is executed.
Decrement Binary (DECB)
The Decrement Binary instruction decrements a binary value in
a specified V-memory location by “1” each time the instruction
is executed.