EasyManua.ls Logo

Automationdirect.com DL06 - Page 259

Automationdirect.com DL06
533 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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
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
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.
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
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.