DL06 Micro PLC User Manual, 3rd Edition, Rev. E
5-103
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 will be loaded into the accumulator
using the Load instruction. The binary value in V1420 is multiplied by the binary value in the
accumulator using the Multiply Binary instruction. The value in the accumulator is copied to
V1500 using the Out instruction.
MULB
A aaa
DirectSOFT32 Display
Handheld Programmer Keystrokes
LD
V1400
X1
MULB
V1420
The binary value in V1420 is
multiplied by the binary
value in the accumulator
OUTD
V1500
0
(Accumulator)
0
0
0
(V1420)
V1400
A 0 1
0 0 0
A 0 1
0 2 E
The unused accumulator
bits are set to zero
2 E
0 0 0 1
C
C
C
V1500
C 2 E
V1501
0 0 0 1
Acc.
STR
X
1
D
V
1
4
0
0
OUT
V
1
5
0
0
V
1
4
0
M
2
SHFT
B
SHFT
D
ENT
SHFT
L
ENT
U
L
ENT
ENT
Copy the value of the accumulator
to V1500 and V1501
Use either OR Constant
V-memory
LD
BIN
K2561
Load the value in V1400
into the lower 16 bits of
the accumulator
x
Operand Data Type
DL06 Range
A
aaa
V-memory
V
See memory map
Pointer
P
See memory map
Constant
K
0-FFFF
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.
DS
Used
HPP Used
Direct
SOFT
Multiply Binary (MULB)
Multiply Binary is a 16-bit instruction that multiplies the
binary value (Aaaa), which is either a V-memory location or
a 4-digit (max.) binary constant, by the binary value in the
accumulator. The result can be up to 32 bits and resides in the
accumulator.