EasyManua.ls Logo

Automationdirect.com DirectLOGIC DL205 Series

Automationdirect.com DirectLOGIC DL205 Series
587 pages
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...
DL205 User Manual, 4th Edition, Rev. B
5–108
Chapter 5: Standard RLL Instructions - Math
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
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.
NOTE: The status flags are only valid until another instruction that uses the same flag is executed.
In the following example when C5 is on, the value in V2000 is decreased by 1.
þ
þ
þ
þ
230
240
250-1
260
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
CV
P
3
D
SHFT
Discrete Bit Flags Description
SP63 On when the result of the instruction causes the value in the accumulator to be zero.
Operand Data Type DL230 Range DL240 Range DL250-1 Range DL260 Range
A aaa aaa aaa aaa
V-memory V All (See page 3 - 53) All (See page 3 - 54) All (See page 3 - 55) All (See page 3 - 56)
Pointer P -
All V-memory
(See page 3 - 54)
All V-memory
(See page 3 - 55)
All V-memory
(See page 3 - 56)
DS Used
HPP Used
A aaa
DECB

Table of Contents

Related product manuals