EasyManuals Logo

Automationdirect.com DirectLOGIC DL205 Series User Manual

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
Page #336 background imageLoading...
Page #336 background image
DL205 User Manual, 4th Edition, Rev. B
5–119
Chapter 5: Standard RLL Instructions - Math
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
Multiply Binary Top of Stack (MULBS)
Multiply Binary Top of Stack is a 16-bit instruction that
multiplies the 16-bit binary value in the first level of the
accumulator stack by the 16-bit binary value in the
accumulator. The result resides in the accumulator and can be
32 bits (8 digits max.). The value in the first level of the
accumulator stack is removed and all stack locations are
moved up one level.
NOTE: Status flags are valid only until another instruction uses the same flag.
In the following example, when X1 is on, the Load instruction moves the value in V1400 into
the accumulator. The value in V1420 is loaded into the accumulator using the Load
instruction, pushing the value previously loaded in the accumulator onto the stack. The
binary value in the accumulator stack’s first level is multiplied by the binary value in the
accumulator using the Multiply Binary Stack instruction. The Out Double instruction copies
the value in the accumulator to V1500 and V1501.
ý
ý
ý
þ
230
240
250-1
260
MU L B S
Discrete Bit Flags Description
SP63 On when the result of the instruction causes the value in the accumulator to be zero.
SP70 On anytime the value in the accumulator is negative.
LD
V1400
X1
Load the value in V1400 into
the accumul ator
LD
V1420
Load the value in V1420 into
the accumul ator
OUTD
V1500
Copy the val ue in the
accum ulator to V1500
and V1501
XXXXXXXXLevel 1
XXXXXXXXLevel 2
XXXXXXXXLevel 3
XXXXXXXXLevel 4
XXXXXXXXLevel 5
XXXXXXXXLevel 6
XXXXXXXXLevel 7
XXXXXXXXLevel 8
0000C350Level 1
XXXXXXXX
Level 2
XXXXXXXXLevel 3
XXXXXXXX
Level 4
XXXXXXXXLevel 5
XXXXXXXX
Level 6
XXXXXXXXLevel 7
XXXXXXXX
Level 8
MULBS
Multiply the binary value in
the accumul ator w ith the
binary value in the fir st level
of the accumulator stack
Acc.
V1400
C350
0000 C350
Acc.
V1420
0014
0000 0014
Accum ulator stack
after 1st LDD
Accum ulator stack
after 2nd LDD
Acc.
000F 4240
000F 4240
V1500V1501
The unused accumulator
bits ar e set to zero
The unused accumulator
bits ar e set to zero
Handheld Programmer Keystrokes
SHFT
ANDST
L
3
D
STR
$
SHFT
ORST
M
ISG
U
ANDST
L
OUT
GX
SHFT
3
D
1
B
5
F
0
A
0
A
ENT
1
B
ENT
1
B
4
E
0
A
0
A
ENT
ENT
SHFT
ANDST
L
3
D
1
B
4
E
2
C
0
A
1
B
RST
S
ENT
DirectSOFT
DS Used
HPP Used

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

Automationdirect.com DirectLOGIC DL205 Series Specifications

General IconGeneral
BrandAutomationdirect.com
ModelDirectLOGIC DL205 Series
CategoryController
LanguageEnglish

Related product manuals