Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 33 of 60

DL205 PLC User Manual, Volume 1 of 2, pages 321 to 330

Pages 321 to 330 of 598

The original document is the PDF (12 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the AutomationDirect D2-04TD1, AutomationDirect D2-08TD2, AutomationDirect D2-16ND3-2, AutomationDirect D2-32ND3, Konnect-It D2-04TD1, Koyo D2-04TD1, Konnect-It D2-08TD2, Koyo D2-08TD2, and 5 more models

Page 321

Chapter 5: Standard RLL Instructions

Divide (DIV)

1 2 3 Operand Data Type DL230 Range DL240 Range DL250-1 Range DL260 Range A aaa aaa aaa aaa 4 5 Discrete Bit Flags Description 6 7 8 NOTE: The status flags are only valid until another instruction that uses the same flags is executed. In the following example, when X1 is on, the value in V2000 will be loaded into the accumulator 9 using the Load instruction. The value in the accumulator will be divided by the value in V2006 using the Divide instruction. The value in the accumulator is copied to V2010 using the Out 10 instruction. 11 12 13 14 A B C D is a 16-bit instruction that divides the BCD value 230 Divide in the accumulator by a BCD value (Aaaa), which is either 240 a V-memory location or a 4-digit (max) constant. The first 250-1 part of the quotient resides in the accumulator, and the 260 remainder resides in the first stack location.

V-memory

V

All (See page 3-53)

Pointer

P

-

Constant

K

1-9999

SP53 SP63 SP70 SP75

DS Used HPP Used

All (See page 3-54) All V-memory (See page 3-54) 1-9999

DIV

A aaa

All (See page 3-55) All V-memory (See page 3-55) 1-9999

All (See page 3-56) All V-memory (See page 3-56) 1-9999

On when the value of the operand is larger than the accumulator can work with 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

DirectSOFT

V2000

X1

5

0

0

0

The unused accumulator bits are set to zero 0 0 0 0 5

0

0

0

(Accumulator)

5

0

(V2006)

0

0

0

LD

V2000

Load the value in V2000 into the lower 16 bits of the accumulator DIV

÷

V2006

1

Acc.

The value in the accumulator is divided by the value in V2006

0

0

0

0

0

0

0

First stack location contains the remainder

1

OUT

V2010

0

0

V2010

Copy the value in the lower 16 bits of the accumulator to V2010

Handheld Programmer Keystrokes $

B

STR

SHFT

L ANDST

D

SHFT

D

I

GX OUT

3

1

ENT

C

3 8

SHFT

2

V AND V AND

A

C

C

2

A

0

2

0

A A B

0 0 1

A A A

0 0 0

ENT

G

6

ENT

ENT

DL205 User Manual, 4th Edition, Rev. D

5-97

Page 322

Chapter 5: Standard RLL Instructions

1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D

Divide Double (DIVD) Double is a 32-bit instruction that divides the BCD 230 Divide value in the accumulator by a BCD value (Aaaa), which must 240 be obtained from two consecutive V-memory locations (You 250-1 cannot use a constant as the parameter in the box). The 260 first part of the quotient resides in the accumulator, and the

DIVD A aaa remainder resides in the first stack location.

DS Used HPP Used

5-98

Operand Data Type V-memory Pointer

DL250-1 Range aaa aaa

V P

All V-memory (See page 3-55) All V-memory (See page 3-55)

All V-memory (See page 3-56) All V-memory (See page 3-56)

Discrete Bit Flags SP53 SP63 SP70 SP75

DL260 Range

A

Description On when the value of the operand is larger than the accumulator can work with 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

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 and V1401 will be loaded into the accumulator using the Load Double instruction. The value in the accumulator is divided by the value in V1420 and V1421 using the Divide Double instruction. The first part of the quotient resides in the accumulator and the remainder resides in the first stack location. The value in the accumulator is copied to V1500 and V1501 using the Out Double instruction. DirectSOFT V1401

X1

0

LDD

1

V1400

5

0

0

0

0

0

V1400 The unused accumulator bits are set to zero

Load the value in V1400 and V1401 into the accumulator

0

1

5

0

0

0

0

0

(Accumulator)

÷

0

0

0

0

0

0

5

0

(V1421 and V1420)

Acc.

0

0

0

3

0

0

0

0

DIVD V1420 The value in the accumulator is divided by the value in V1420 and V1421

0

V1500

0

0

3

0

V1501

Copy the value in the accumulator to V1500 and V1501

B

SHFT

L ANDST

D

SHFT

D

I

GX OUT

SHFT

3

D

1 3 8 3

ENT D

B

3

V AND

B B

1

F

1 1 5

DL205 User Manual, 4th Edition, Rev. D

E E A

4 4 0

A C A

0 2 0

A A

0 0

ENT

0

0

V1500

Handheld Programmer Keystrokes STR

0

0

0

0

0

0

0

First stack location contains the remainder

OUTD

$

0

ENT ENT

0

Page 323

Chapter 5: Standard RLL Instructions

Divide Real (DIVR)

1 2 3 Operand Data Type DL250-1 Range DL260 Range A aaa aaa 4 5 Discrete Bit Flags Description 6 7 8 9 NOTE: Status flags are valid only until another instruction uses the same flag. 10 11 12 13 14 A B C NOTE: The current HPP does not support real number entry with automatic conversion to the 32-bit IEEE format. You must use DirectSOFT for this feature. D

Divide Real instruction divides a real number in the 230 The accumulator by either a real constant or a real number 240 occupying two consecutive V-memory locations. The result 250-1 resides in the accumulator. Both numbers must conform to the 260 IEEE floating point format. DS Used HPP N/A

V-memory Pointer

V P

Constant

R

SP63 SP70 SP71 SP72 SP73 SP74 SP75

DIVR

A aaa

All (See page 3-55) All V-mem (See page 3-55) -3.402823E + 038 to + 3.402823E+038

All (See page 3-56) All V-mem (See page 3-56) -3.402823E + 038 to + 3.402823E+038

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 anytime the V-memory specified by a pointer (P) is not valid. On anytime the value in the accumulator is a valid floating point number. On when a signed addition or subtraction results in a incorrect sign bit. On anytime a floating point math operation results in an underflow error. On when a real number instruction is executed and a non-real number was encountered.

DirectSOFT

LDR

4

1

7

0

0

0

0

0

R15.0

Load the real number 15.0 into the accumulator.

1

5

4

1

7

0

0

0

0

0

(Accumulator)

÷ 1

0

÷ 4

1

2

0

0

0

0

0

(DIVR )

1 . 5

Acc. 3

F

C

0

0

0

0

0

0

0

(decimal)

DIVR

R10.0

V1401

Divide the accumulator contents by the real number 10.0.

3

F

C

V1400 0

0

0

(Hex number)

Real Value

OUTD

V1400

Copy the result in the accumulator to V1400 and V1401.

Acc.

Sign Bit

8 4

2

1

8

4 2

1

8

4

2 1

8

4

2

1

8 4

2

1

8

4 2

1

8

4

2 1

8

4

2

1

0 0

1

1

1

1 1

1

1

1

0 0

0

0

0

0

0 0

0

0

0

0 0

0

0

0

0 0

0

0

0

0

Exponent (8 bits)

64 + 32 + 16 + 8 + 4 + 2 + 1 = 127 127 - 127 = 0 Implies 2 (exp 0)

Mantissa (23 bits)

1.1 x 2 (exp 0) = 1.1 binary= 1.5 decimal

DL205 User Manual, 4th Edition, Rev. D ndard RLL

X1

5-99

Page 324

Chapter 5: Standard RLL Instructions

1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D

Increment (INC) The Increment instruction increments a BCD value in a

INC

230 specified V-memory location by “1” each time the instruction 240 is executed. 250-1 260 Decrement (DEC) 230 240 250-1 260

The Decrement instruction decrements a BCD value in a specified V-memory location by “1” each time the instruction is executed.

Operand Data Type V-memory Pointer

DS Used HPP Used

5-100

A aaa

A aaa

DL250-1 Range

DL260 Range

A aaa aaa

V P

All V mem (See page 3-55) All V mem (See page 3-55)

All V mem (See page 3-56) All V mem (See page 3-56)

Discrete Bit Flags SP63 SP75

DEC

Description On when the result of the instruction causes the value in the accumulator to be zero. On when a BCD instruction is executed and a NON-BCD number was encountered.

NOTE: Status flags are valid only until another instruction uses the same flag.

In the following increment example, the value in V1400 increases by one each time that C5 is closed (true). V1400

DirectSOFT C5

INC

8

9

8

9

3

5

V1400 Increment the value in V1400 by “1”.

V1400

Handheld Programmer Keystrokes $

STR

SHFT

SHFT

P CV

D

I

N TMR

C

8

3 2

3

6

NEXT

NEXT

NEXT

NEXT

F

B

E

A

A

ENT

1

4

0

0

5

ENT

In the following decrement example, the value in V1400 is decreased by one each time that C5 is closed (true). DirectSOFT

V1400

C5

DEC

8

9

8

9

3

5

V1400 Decrement the value in V1400 by “1”.

V1400 3

4

Handheld Programmer Keystrokes $

STR

SHFT

SHFT

P CV

D

D

E

C

3

4

3 2

NEXT

NEXT

NEXT

NEXT

F

B

E

A

A

ENT

1

4

0

0

5

ENT

NOTE: Use a pulsed contact closure to INC/DEC the value in V–memory once per closure.

DL205 User Manual, 4th Edition, Rev. D

Page 325

Chapter 5: Standard RLL Instructions

Add Binary (ADDB) The Add Binary instruction adds a 16-bit number (Aaaa)

1 2 it from the Add instruction (see page 5-88), which treats the operands as BCD numbers. 3 Although the addition operation is performed on the underlying binary values, the native display format is hexadecimal. For that reason you will need to load constants in hex. 4 The sum of the Add Binary operation occupies the full 32-bit accumulator and requires an Out Double to move the sum to V-memory. If the value in the accumulator occupies fewer than 32 5 bits, leading zeros are loaded in the left-most empty bit positions. Operand Data Type DL250-1 Range DL260 Range 6 A aaa aaa 7 8 Discrete Bit Flags Description 9 10 NOTE: Status flags are valid only until another instruction uses the same flag. 11 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 added to the binary value in the 12 accumulator using the Add Binary instruction. The value in the accumulator is copied to V1500 - V1501 using the Out Double instruction. 13 14 A B C D

230 to the value stored in the accumulator. The number in the 240 accumulator can be up to 32 bits long. The source of the 250-1 16-bit operand can be a constant or a data value located in Add Binary performs the addition operation on the 260 V-memory. full binary representation of the operands, which distinguishes DS Used HPP Used

V-memory Pointer Constant.

V P K

SP63 SP66 SP67 SP70 SP73

ADDB A aaa

All (See page 3-55) All V mem (See page 3-55) 0-FFFF

All (See page 3-56) All V mem (See page 3-56) 0-FFFF

On when the result of the instruction causes the value in the accumulator to be zero On when the 16-bit addition instruction results in a carry On when the 32-bit addition instruction results in a carr On anytime the value in the accumulator is negative On when a signed addition or subtraction results in an incorrect sign bit.

Use either V-memory

DirectSOFT X1

OR

Constant

V1400

0

A

The unused accumulator bits are set to zero 0 0 0 0 0

LD

LD

0

5

K2565

V1400

Load the value in V1400 into the lower 16 bits of the accumulator

BIN

+

ADDB

V1420

Acc.

A

0

5

(Accumulator)

A05 (Hex) = 2565 (decimal)

1

2

C

4

(V1420)

12C4 (Hex) = 4804 (decimal)

1

C

C

9

(Accumulator) 1CC9 (Hex) = 7369 (decimal)

C

C

9

The binary value in the accumulator is added to the binary value in V1420 OUTD V1500

1

V1500

Copy the value in the lower 16bits of the accumulator to V1500 and V1501

Handheld Programmer Keystrokes STR

1

E NT

SHFT

L

D

1

4

SHFT

A

D

D

B

OUT

SHFT

D

1

0

5

0

ENT

1

4

2

0

0

ENT

0

ENT

DL205 User Manual, 4th Edition, Rev. D

5-101

Page 326

Chapter 5: Standard RLL Instructions

1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D

Add Binary Double (ADDBD) Binary Double is a 32-bit instruction that adds the binary 230 Add value in the accumulator with the value (Aaaa), which is either 240 two consecutive V-memory locations or an 8-digit (max.) binary 250-1 constant. The result resides in the accumulator. 260 Operand Data Type

DS Used HPP Used

V-memory Pointer Constant.

DL260 Range

A aaa

V P K

All (See page 3-56) All V mem (See page 3-56) 0-FFFFFFFF

Discrete Bit Flags

Description

SP63 SP66 SP67 SP70 SP73

5-102

ADDBD A aaa

On when the result of the instruction causes the value in the accumulator to be zero On when the 16-bit addition instruction results in a carry On when the 32-bit addition instruction results in a carry On anytime the value in the accumulator is negative On when a signed addition or subtraction results in an incorrect sign bit

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 and V1401 will be loaded into the accumulator using the Load Double instruction. The binary value in the accumulator is added with the binary value in V1420 and V1421 using the Add Binary Double instruction. The value in the accumulator is copied to V1500 and V1501 using the Out Double instruction. Use either V-memory

DirectSOFT X1

OR

Constant V1401

LDD V1400

LDD K2561

Load the value in V1400 and V1401 into the accumulator

BIN

ADDBD V1420

V1400

0

0

0

0

0

A

0

1

0

0

0

0

0

A

0

1

(Accumulator)

+ 1

0

0

0

C

0

1

0

(V1421 and V1420)

1

0

0

0

C

A

1

1

1

0

0

0

C

A

1

1

Acc.

The binary value in the accumulator is added with the value in V1420 and V1421 OUTD

V1501

V1500

V1500

Copy the value in the accumulator to V1500 and V1501 Handheld Programmer Keystrokes STR

1

LD

SHFT

D

SHFT

1

4

0

0

ADD

SHFT

B

D

SHFT

1

4

2

OUT

SHFT

D

SHFT

1

5

0

0

DL205 User Manual, 4th Edition, Rev. D

0

Page 327

Chapter 5: Standard RLL Instructions

Subtract Binary (SUBB)

SUBB

Subtract Binary instruction subtracts a 16-bit number (Aaaa) A aaa 1 230 The from the value stored in the accumulator. The number in the 240 accumulator can be up to 32 bits long. The source of the 16-bit 250-1 operand can be a constant or a data value located in V-memory. Subtract Binary performs the 2 260 subtraction operation on the full binary representation of the operands, which distinguishes

3 4 5 Operand Data Type DL250-1 Range DL260 Range 6 A aaa aaa 7 8 Discrete Bit Flags Description 9 10 NOTE: Status flags are valid only until another instruction uses the same flag. 11 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 subtracted from the binary value in the accumulator using the Subtract Binary instruction. The value in the accumulator is copied 12 to V1500 - V1501 using the Out Double instruction. 13 14 A B C D it from the Subtract instruction (see page 5-91), which treats the operands as BCD numbers. DS Used Although the subtraction operation is performed on the underlying binary values, the native HPP Used display format is hexadecimal. For that reason, you will need to load constants in hex. The difference (result) of the Subtract Binary operation occupies the full 32 bits of the accumulator and requires an Out Double to move the value to V-memory. If the value in the accumulator occupies fewer than 32 bits, leading zeros are loaded in the left-most empty bit positions of the accumulator.

V-memory Pointer Constant

V P K

SP63 SP64 SP65 SP70

All (See page 3-55) All V-mem (See page 3-55) 0-FFFF

All (See page 3-56) All V-mem (See page 3-56) 0-FFFF

On when the result of the instruction causes the value in the accumulator to be zero On when the 16-bit subtraction instruction results in a borrow On when the 32-bit subtraction instruction results in a borrow On anytime the value in the accumulator is negative

Use either V-memory

DirectSOFT

X1

OR

Constant

LD

LD

K1024

V1400

Load the value in V1400 into the lower 16 bits of the accumulator

1

BIN

SUBB

The unused accumulator bits are set to zero 0 0 0 0 1

V1420

The binary value in V1420 is subtracted from the value in the accumulator

-

Acc.

OUT

V1400 0 2

4

0

2

4

(Accumulator) 1024 (Hex) = 4132 (decimal)

0

A 0

B

(V1420)

0

6

1

9

(Accumulator) 619 (Hex) = 1561 (decimal)

0

6

1

9

A0B (Hex) = 2571 (decimal)

V1500

Copy the value in the lower 16 bits of the accumulator to V1500

V1500

Handheld Programmer Keystrokes STR

1

ENT

SHFT

L

D

1

4

0

SHFT

S

SHFT

U

B

B

1

4

2

0

ENT

OUT

SHFT

1

5

0

0

ENT

0

ENT

DL205 User Manual, 4th Edition, Rev. D

5-103

Page 328

Chapter 5: Standard RLL Instructions

1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D

Subtract Binary Double (SUBBD) Binary Double is a 32-bit instruction that subtracts 230 Subtract the binary value (Aaaa), which is either two consecutive 240 V-memory locations or an 8-digit (max) binary constant, from 250-1 the binary value in the accumulator. The result resides in the 260 accumulator. DS Used HPP Used

Operand Data Type

DL260 Range

V-memory Pointer Constant

A aaa

V P K

All (See page 3-56) All V mem (See page 3-56) 0-FFFFFFFF

Discrete Bit Flags

Description

SP63 SP64 SP65 SP70

5-104

SUBBD A aaa

On when the result of the instruction causes the value in the accumulator to be zero On when the 16-bit subtraction instruction results in a borrow On when the 32-bit subtraction instruction results in a borrow 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 and V1401 will be loaded into the accumulator using the Load Double instruction. The binary value in V1420 and V1421 is subtracted from the binary value in the accumulator using the Subtract Binary Double instruction. The value in the accumulator is copied to V1500 and V1501 using the Out Double instruction. Use either V-memory

DirectSOFT

X1

OR

Constant

V1401

LDD K393471

LDD V1400 Load the value in V1400 and V1401 into the accumulator

V1400

0

0

0

6

0

0

F

F

0

0

0

0

0

0

6

0

0

F

F

(Accumulator)

0

1

A

0

1

0

0

(V1421 and V1420)

0

5

E 6

F

E

0

0

0

5

E 6

F

E

BIN

-

SUBBD V1420

Acc.

The binary value in V1420 and V1421 is subtracted from the binary value in the accumulator OUTD V1500

V1501

Copy the value in the accumulator to V1500 and V1501

V1500

Handheld Programmer Keystrokes 1

ENT

SHFT

STR L

D

D

SHFT

S

SHFT

U

B

1

4

2

0

ENT

OUT

SHFT

D

1

1

4

B

D

5

0

DL205 User Manual, 4th Edition, Rev. D

0

0

0

ENT

ENT

Page 329

Chapter 5: Standard RLL Instructions

Multiply Binary (MULB)

Multiply Binary instruction multiplies a 16-bit number MULB 1 230 The A(aaa) by the value stored in the accumulator. The number A aaa 240 in the accumulator can be up to 32 bits long. The source of 250-1 the 16-bit operand can be a constant or a data value located 2 260 in V-memory. Multiply Binary performs the multiplication operation on the full binary

3 4 5 Operand Data Type DL250-1 Range DL260 Range 6 A aaa aaa 7 8 Discrete Bit Flags Description 9 NOTE: Status flags are valid only until another instruction uses the same flag. 10 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 11 accumulator using the Multiply Binary instruction. The value in the accumulator is copied to V1500 - V1501 using the Out Double instruction. 12 13 14 A B C D

DS Used HPP Used representation of the operands, which distinguishes it from the Multiply instruction (see page 5-94), which treats the operands as BCD numbers. Although the multiplication operation is performed on the underlying binary values, the native display format is hexadecimal. For that reason, you will need to load constants in hex. The product of the Multiply Binary operation occupies the full 32-bit accumulator and requires an Out Double to move the product to V-memory. If the value in the accumulator occupies fewer than 32 bits, leading zeros are loaded in the left-most empty bit positions.

V-memory Pointer Constant

SP63 SP70

V P K

All (See page 3-55) All V mem (See page 3-55) 0-FFFF

All (See page 3-56) All V mem (See page 3-56) 0-FFFF

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

Use either V-memory

DirectSOFT X1

OR

Constant

LD

V1400

LD

V1400

K2561

Load the value in V1400 into the lower 16 bits of the accumulator

BIN

The unused accumulator bits are set to zero 0 0 0 0

MULB x

V1420

Acc.

The binary value in V1420 is multiplied by the binary value in the accumulator OUTD V1500

0

A

0

1

0

A 0

1

(Accumulator)

A01 (Hex) = 2561 (decimal)

0

0

2

E

(V1420)

2E (Hex) = 46 (decimal)

0

0

0

1

C

C

2

E

(Accumulator) 1CC2E (Hex) = 117806 (decimal)

0

0

0

1

C

C

2

E

(V1500 - V1501 value = 117806 decimal)

Copy the value of the accumulator to V1500 and V1501

V1501

V1500

Handheld Programmer Keystrokes STR

1

ENT

SHFT

L

D

1

4

SHFT

M

U

L

B

OUT

SHFT

D

1

0

5

0

ENT

1

4

2

0

0

ENT

0

ENT

DL205 User Manual, 4th Edition, Rev. D

5-105

Page 330

Chapter 5: Standard RLL Instructions

1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D

Divide Binary (DIVB) Divide Binary instruction divides a 16-bit number DIVB 230 The (Aaaa) into the value stored in the accumulator. The number A aaa 240 in the accumulator can be up to 32 bits long. The source of 250-1 the 16-bit divisor can be a constant or a data value located 260 in V-memory. Divide Binary performs the division operation on the full binary representation DS Used HPP Used of the operands, which distinguishes it from the Divide instruction (see page 5-97), which treats the operands as BCD numbers. Although the division operation is performed on the underlying binary values, the native display format is hexadecimal. For that reason you will need to load constants in hex. At the completion of the division operation, the quotient resides in the accumulator and the remainder resides in the first stack location. The quotient occupies the full 32-bit accumulator and requires an Out Double to move the quotient to V-memory. If the value in the accumulator occupies fewer than 32 bits, leading zeros are loaded in the left-most empty bit positions. Operand Data Type DL250-1 Range DL260 Range

V-memory Pointer Constant

A aaa aaa

V P K

All (See page 3-55) All V mem (See page 3-55) 0-FFFF

All (See page 3-56) All V mem (See page 3-56) 0-FFFF

Discrete Bit Flags

Description

SP53 SP63 SP70

5-106

On when the value of the operand is larger than the accumulator can work with 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

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 Double instruction. Use either V-memory

DirectSOFT X1

OR

LD V1400 Load the value in V1400 into the lower 16 bits of the accumulator

Constant

LDD K64001

V1400 A 0

1

The unused accumulator bits are set to zero

BIN

0

_.. DIVB V1420

0

0

0

0

0

0

0

0

0

0

0

F

A 0

1

(Accumulator) FA01 (Hex) = 64001 (decimal)

0

0

5

0

(V1420)

50 (Hex) = 80 (decimal)

0

3

2

0

(Accumulator)

320 (Hex) = 800 (decimal)

0

The binary value in the accumulator is divided by the binary value in V1420

0

0

0

0

0

0

1

1 (Hex) = 1 (decimal)

Top of stack holds remainder

OUT

0

V1501

V1500 Copy the value in the lower 16 bits of the accumulator to V1500

F

3

2

0

V1500

Handheld Programmer Keystrokes STR

1

ENT

SHFT

L

D

1

4

SHFT

D

I

V

B

OUT

SHFT

V

1

DL205 User Manual, 4th Edition, Rev. D

0

5

0

ENT

1

4

2

0

0

ENT

0

ENT