EasyManuals Logo

Automationdirect.com DL05 User Manual

Automationdirect.com DL05
480 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 #260 background imageLoading...
Page #260 background image
Standard
RLL Instructions
5–76
Standard RLL Instructions
Math Instructions
DIVB
A aaa
Divide Binary is a 16 bit instruction that
divides the unsigned 2’s complement
binary value in the accumulator by a
binary value (Aaaa), which is either a V
memory location or a 16-bit unsigned 2’s
complement binary constant. The first part
of the quotient resides in the accumulator
and the remainder resides in the first stack
location.
Operand Data Type DL05 Range
A aaa
Vmemory V All (See p. 4–28)
Pointer P All (See p. 4–28)
Constant K 0–FFFF
Discrete Bit Flags Description
SP53 On when the value of the operand is larger than the accumulator can work with.
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.
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 the accumulator is
divided by the binary value in V1420 using the Divide Binary instruction. The value in
the accumulator is copied to V1500 using the Out instruction.
DirectSOFT Display
Handheld Programmer Keystrokes
LD
V1400
X1
Load the value in V1400 into the
lower 16 bits of the accumulator
DIVB
V1420
The binary value in the
accumulator is divided by
the binary value in V1420
OUT
V1500
Copy the value in the lower 16
bits of the accumulator to V1500
V1500
0
(Accumulator)
F

0
0
F
(V1420)
0
V1400
A01
320
000 A01
050
Acc.
320
The unused accumulator
bits are set to zero
0000000 0
First stack location contains
the remainder
STR
$
SHFT
ANDST
L
3
D
SHFT
ISG
U
OUT
GX
SHFT
1
B
ENT
4
E
2
C
0
A
ENT
1
B
1
B
3
D
5
F
0
A
0
A
ENT
1
B
4
E
0
A
0
A
ENT
1
B
3
D
8
I
Divide Binary
(DIVB)

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

Automationdirect.com DL05 Specifications

General IconGeneral
BrandAutomationdirect.com
ModelDL05
CategoryController
LanguageEnglish

Related product manuals