EasyManua.ls Logo

Automationdirect.com DL06 - Page 263

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-102
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 example, when X1 is on, the value in V1400 and V1401 will be loaded
into the accumulator using the Load Double instruction. The binary value in V1420 and
V1421 is subtracted from the binary value in the accumulator using the Subtract Binary
Double instruction. The value in the accumulator is copied to V1500 and V1501 using the
Out Double instruction.
SUBBD
A aaa
LDD
V1400
X1
SUBBD
V1420
Thebinaryvalue in V1420 and
V1421 is subtracted from the
binar yvalue in theaccumulator
OUTD
V1500
Copy thevalue in the
accumulatortoV1500
and V1501
FE0005
FF0006
6
0
(V1421 and V1420)
0
0
E
00
E
6 00FF
(Accumulator)
V1500
0
V1400
6FE
V1401
V1501
0005
00 01A01
Acc.
Use either OR Constant
V-memory
LD D
BIN
K393471
Load the value in V1400
and V1401 into the
accumulator
-
DirectSOFT
HandheldProgr ammerKeystrokes
STR X(IN) 1
D V 1 4 0 0
OUT V 1 5 0 0
V 1 4 0
S
2
SHFT B
SHFT D
ENT
SHFT
L ENT
U B
ENT
ENT
SHFT
Operand Data Type DL06 Range
A
aaa
V-memory V See memory map
Pointer P See memory map
Constant K 0-FFFF FFFF
Discrete Bit Flags Description
SP63 On when the result of the instruction causes the value in the accumulator to be zero.
SP64 On when the 16-bit subtraction instruction results in a borrow.
SP65 On when the 32-bit subtraction instruction results in a borrow.
SP70 On anytime the value in the accumulator is negative.
Handheld Programmer Keystrokes
STR
$
SHFT
ISG
U
1
B
OUT
GX
SHFT
3
D
1
B
ENT
3
D
1
B
RST
S
SHFT
1
B
4
E
2
C
0
A
ENT
SHFT
ANDST
L
3
D
1
B
4
E
0
A
0
A
ENT
3
D
1
B
5
F
0
A
0
A
ENT
DS Used
HPP Used
Subtract Binary Double (SUBBD)
Subtract Binary Double is a 32-bit instruction that subtracts the
binary value (Aaaa), which is either two consecutive V-memory
locations or an 8-digit (max.) binary constant, from the binary
value in the accumulator. The result resides in the accumulator.