Multiply Formatted (MULF)
Multiply Formatted is a 16-bit instruction that multiplies the
230
BCD value in the accumulator by the BCD value (Aaaa)
240
which is a range of discrete bits. The specified range (Kbbb)
250-1
can be 1 to 16 consecutive bits. The result resides in the
accumulator.
260
Operand Data Type
DS
Used
HPP Used
Inputs
Outputs
Control Relays
Stage Bits
Timer Bits
Counter Bits
Special Relays
Global I/O
Constant
Discrete Bit Flags
SP63
SP70
SP75
NOTE: Status flags are valid only until another instruction uses the same flag.
In the following example, when X6 is on, the value formed by discrete locations X0–X3 is
loaded into the accumulator using the Load Formatted instruction. The value formed by
discrete locations C0–C3 is multiplied by the value in the accumulator using the Multiply
Formatted instruction. The value in the lower four bits of the accumulator is copied to
Y10–Y13 using the Out Formatted instruction.
DirectSOFT
X6
Handheld Programmer Keystrokes
$
STR
L
SHFT
ANDST
M
SHFT
ORST
GX
SHFT
OUT
A
X
Y
C
S
T
CT
SP
GX/GY
K
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.
Load the value represented
LDF
X0
by discrete locations X0- - X3
K4
into the accumulator
Multiply the value in the
MULF
C0
accumulator with the value
K4
represented by discrete
locations C0- - C3
Copy the lower 4 bits of the
OUTF
Y10
accumulator to discrete
K4
locations Y10- - Y13
G
ENT
6
D
F
A
E
3
5
0
U
L
F
NEXT
NEXT
ISG
ANDST
5
F
B
A
E
5
1
0
Chapter 5: Standard RLL Instructions - Math
DL260 Range
aaa
0-1777
0-1777
0-3777
0-1777
0-377
0-377
0-777
0-3777
-
Description
OFF
The unused accumulator
bits are set to zero
0
0
0
0
0
X
Acc.
0
0
0
0
0
Y13
OFF
ENT
4
A
E
NEXT
NEXT
0
4
ENT
4
DL205 User Manual, 4th Edition, Rev. B
A aaa
MULF
K bbb
bbb
-
-
-
-
-
-
-
-
1-16
X3
X2
X1
X0
OFF
ON
ON
(Accumulator)
0
0
3
C3
C2
OFF
OFF
2
(C0- - C3)
0
0
6
Y12
Y11
Y10
ON
ON
OFF
ENT
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
C1
C0
ON
OFF
B
C
D
5–111
Need help?
Do you have a question about the DirectLOGIC DL205 Series and is the answer not in the manual?