DL205 User Manual, 4th Edition, Rev. D
5-111
Chapter 5: Standard RLL Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
Multiply Formatted (MULF)
Multiply Formatted is a 16-bit instruction that multiplies the
BCD value in the accumulator by the BCD value (Aaaa) which
is a range of discrete bits. The specified range (Kbbb) can be 1
to 16 consecutive bits. The result resides in the accumulator.
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.
230
240
250-1
260
MULF
A aaa
K bbb
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
SP75 On when a BCD instruction is executed and a NON-BCD number was encountered
LDFX0
K4
X6
Load thevalue represented
by discretelocations X0 --X3
into theaccumulator
MULF C0
K4
Multiply thevalue in the
accumulator withthe value
repr esented by di screte
locations C0--C3
OUTF Y10
K4
Copy thelower 4bitsofthe
accumulatortodiscret e
locations Y10--Y13
060000 0
000
0
0 0003
(C0--C3)
(Accumulator)
2
X0X1X2X3
ONONOFFOFF
C0C1C2C3
OFFONOFFOFF
Y10Y11Y12Y13
OFFONONOFF
The unused accumulator
bits areset to zero
Acc.
Handheld Programmer Keystrokes
STR
$
SHFT
ISG
U
ANDST
L
OUT
GX
SHFT
5
F
0
A
4
E
ENT
6
G
ENT
1
B
4
E
0
A
ENT
SHFT
ANDST
L
3
D
0
A
4
E
ENT
5
F
5
F
ORST
M
NEXT NEXT NEXTNEXT
X
DirectSOFT
Operand Data Type DL260 Range
A aaa bbb
Inputs X 0-1777 -
Outputs Y 0-1777 -
Control Relays C 0-3777 -
Stage Bits S 0-1777 -
Timer Bits T 0-377 -
Counter Bits CT 0-377 -
Special Relays SP 0-777 -
Global I/O GX/GY 0-3777 -
Constant K - 1-16
DS Used
HPP Used