Automationdirect.com DirectLOGIC DL205 Series User Manual page 311

Table of Contents

Advertisement

Chapter 5: Standard RLL Instructions - Math
Multiply (MUL)
1
Multiply is a 16-bit instruction that multiplies the BCD
230
value (Aaaa), which is either a V-memory location or a
240
4–digit (max.) constant, by the BCD value in the lower 16
2
250-1
bits of the accumulator The result can be up to 8 digits and
resides in the accumulator.
260
3
Operand Data Type
4
V-memory
Pointer
5
Constant
6
Discrete Bit Flags
SP63
SP70
7
SP75
NOTE: The status flags are only valid until another instruction that uses the same flags is executed.
8
In the following example, when X1 is on, the value in V2000 will be loaded into the
9
accumulator using the Load instruction. The value in V2006 is multiplied by the value in the
accumulator. The value in the accumulator is copied to V2010 and V2011 using the Out
Double instruction.
10
DS
Used
11
HPP Used
12
13
14
A
B
C
D
5–94
DL205 User Manual, 4th Edition, Rev. B
DL230 Range
A
aaa
V
All (See page 3 - 53)
P
-
K
0-9999
On when the result of the instruction causes the value in the accumulator to be zero.
On anytime the value in the accumulator is negative.
On when a BCD instruction is executed and a NON-BCD number was encountered.
DirectSOFT
X1
LD
V2000
Load the value in V2000 into
the lower 16 bits of the
accumulator
MUL
V2006
The value in V2006 is
multiplied by the value in the
accumulator
OUTD
V2010
Copy the value in the
accumulator to V2010 and
V2011
Handheld Programmer Keystrokes
$
B
ENT
STR
1
L
D
SHFT
ANDST
3
M
U
L
SHFT
ORST
ISG
ANDST
GX
D
SHFT
OUT
3
DL240 Range
DL250-1 Range
aaa
All (See page 3 - 54)
All (See page 3 - 55)
All V-memory
(See page 3 - 54)
(See page 3 - 55)
0-9999
Description
The unused accumulator
bits are set to zero
0
0
0
0
X
Acc.
0
0
0
2
0
0
0
2
V2011
C
A
A
A
ENT
2
0
0
0
C
A
A
G
2
0
0
C
A
B
A
ENT
2
0
1
0
MUL
A aaa
DL260 Range
aaa
All (See page 3 - 56)
All V-memory
All V-memory
(See page 3 - 56)
0-9999
0-9999
V2000
1
0
0
0
1 0 0 0
(Accumulator)
(V2006)
2
5
5
0
0
0
5
0
0
0
V2010
ENT
6
aaa

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DirectLOGIC DL205 Series and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents

Save PDF