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

The text of a manual · part 20 of 40

DL05 Micro PLC User Manual, Volume 1 of 2: Chapter 5: Standard RLL and Intelligent Box Instructions, pages 174 to 183

Pages 174 to 183 of 379, from DL05 Micro PLC User Manual, Volume 1 of 2

The original document is the PDF (5.8 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 D0-05AA

Page 174

Chapter 5: Standard RLL - Accumulator/Stack Load and Output Data Instructions

1 2 3 4 5 6 7 8 9 10 11 12 13 Using Pointers Many of the DL05 series instructions will allow V-memory pointers as a operand (commonly 14 known as indirect addressing). Pointers allow instructions to obtain data from V-memory locations referenced by the pointer value. A NOTE: DL05 V-memory addressing is in octal. However, the pointers reference a V-memory location with values viewed as HEX. Use the Load Address (LDA) instruction to move an address into the pointer location. B This instruction performs the Octal to Hexadecimal conversion automatically. C In the following simple example we are using a pointer operand in a Load instruction. V-memory location 2000 is being used as the pointer location. V2000 contains the value 440 which the CPU views as the Hex equivalent of the Octal address V-memory location V2100. D The CPU will copy the data from V2100 which in this example contains the value 2635 into X1

Previous Acc. value

POP

Acc. X

POP the 1st value on the stack into the accumulator and move stack values up one location

X

X

X

XX XX XX

X

0

44 55

5

Accumulator Stack

Current Acc. value Acc. 0

0

OUT

0

V2000

V2000

4

5

4

4

5

Copy data from the accumulator to V2000

Level 1

0

0

0

0

3

7

9

Level 2

0

0

0

0

7

9

3

2 0

Level 3

X

X

X

X

X

X

X

X

Level 4

X

X

X

X

X

X

X

X

Level 5

X

X

X

X

X

X

X

X

Level 6

X

X

X

X

X

X

X

X

Level 7

X

X

X

X

X

X

X

X

Level 8

X

X

X

X

X

X

X

X

Level 1

0

0

0

0

7

9

3

0

Level 2

X

X

X

X

X

X

X

X

Level 3

X

X

X

X

X

X

X

X

Level 4

X

X

X

X

X

X

X

X

Level 5

X

X

X

X

X

X

X

X

Level 6

X

X

X

X

X

X

X

X

Level 7

X

X

X

X

X

X

X

X

Level 8

X

X

X

X

X

X

X

X

Level 1

X

X

X

X

X

X

X

X

Level 2

X

X

X

X

X

X

X

X

Level 3

X

X

X

X

X

X

X

X

Level 4

X

X

X

X

X

X

X

X

Level 5

X

X

X

X

X

X

X

X

Level 6

X

X

X

X

X

X

X

X

Level 7

X

X

X

X

X

X

X

X

Level 8

X

X

X

X

X

X

X

X

Previous Acc. value

POP

Acc. 0

POP the 1st value on the stack into the accumulator and move stack values up one location

0

0

0

44 55 44 55

0

33 77 99 22

Accumulator Stack

Current Acc. value Acc. 0

0

OUT

0

V2001

V2001

3

7

9

2

Copy data from the accumulator to V2001.

Previous Acc. value

POP

Acc. 0

0

0

0

33 47 69 02

X

77 99 33 00

Accumulator Stack

Current Acc. value

POP the 1st value on the stack into the accumulator and move stack values up one location

OUT

Acc. X

X

X

V2002

V2002

Copy data from the accumulator to V2002

7

9

3

0 the lower word of the accumulator.

DL05 Micro PLC User Manual, 6th Edition, Rev. A

5–51

Page 175

Chapter 5: Standard RLL - Accumulator/Stack Load and Output Data Instructions

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

X1

LD P2000 V2000 (P2000) contains the value 440 HEX. 440 HEX. = 2100 Octal which contains the value 2635. V2000 0

4

4

0

V2076

X

X

X

V2077

X

X

X

X X

V2100

2

6

3

5

V2101

X

X

X

X

V2102

X

X

X

X

V2103

X

X

X

X

V2104

X

X

X

X

V2105

X

X

X

X

V2200

2

6

3

5

V2201

X

X

X

X

Accumulator 2

6

3

5

OUT V2200 Copy the data from the lower 16 bits of the accumulator to V2200.

The following example is identical to the one above with one exception. The LDA (Load Address) instruction automatically converts the Octal address to Hex.

X1

LDA O 2100

Load the lower 16 bits of the accumulator with Hexadecimal equivalent to Octal 2100 (440)

2

1

0

0 2100 Octal is converted to Hexadecim 440 and loaded into the accumulator

Unused accumulator bits are set to zero Acc. 0

OUT V 2000

LD P 2000

0

00 44 44 00

0

4

4

0

V2000

V2000 (P2000) contains the value 440 Hex. 440 Hex. = 2100 Octal which contains the value 2635

0

V 2200

0

Copy the data from the lower 16 bits of the accumulator to V2000

V2100

OUT

0

4

4

0

Copy the data from the lower 16 bits of the accumulator to V2200

DL05 Micro PLC User Manual, 6th Edition, Rev. A

V2076

X

X

X

V2077

X

X

X

X X

V2100

2

6

3

5

V2101

X

X

X

X

V2102

X

X

X

X

V2103

X

X

X

X

V2104

X

X

X

X

V2105

X

X

X

X

V2200

2

6

3

5

V2201

X

X

X

X

Accumulator 0

0

0

0

22 66 33 55

Page 176

Chapter 5: Standard RLL - Accumulator/Stack Load and Output Data Instructions

Load (LD) DS5

Used

HPP

Used

The Load instruction is a 16 bit instruction that loads the value (Aaaa), which is either a V-memory location or a 4 digit constant, into the lower 16 bits of the accumulator. The upper 16 bits of the accumulator are set to 0. Operand Data Type

LD A aaa

DL05 Range aaa

....................................A V-memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . V Pointer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P Constant . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . K

See memory map See memory map 0–FFFF

Discrete Bit Flags

Description

SP53 SP70 SP76

On when the pointer is outside of the available range. On anytime the value in the accumulator is negative. On when the value loaded into the accumulator is zero.

NOTE: Two consecutive Load instructions will place the value of the first load instruction onto the accumulator stack.

In the following example, when X1 is on, the value in V2000 will be loaded into the accumulator and output to V2010. DirectSOFT 5 Direct SOFT32

V2000

X1

LD

8

9

3

5

V2000 The unused accumulator bits are set to zero

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

Acc. 0

0

0

0

88 99 33 55

OUT V2010 8

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

9

3

5

V2010

Handheld Programmer Keystrokes B

$ STR SHFT

L ANDST

D

C

A

A

2 GX OUT

X 1

0

SET

3 A 0

0

SHFT

V AND

ENT C

A 2

B 0

A 1

0

ENT

DL05 Micro PLC User Manual, 6th Edition, Rev. A

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

Page 177

Chapter 5: Standard RLL - Accumulator/Stack Load and Output Data Instructions

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

Load Double (LDD) DS5

Used

HPP

Used

5–54

LDD

The Load Double instruction is a 32 bit instruction that loads the value (Aaaa), which is either two consecutive V-memory locations or an 8 digit constant value, into the accumulator. Operand Data Type

DL05 Range aaa

....................................A V-memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . V Pointer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P Constant . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . K

Discrete Bit Flags SP53 SP70 SP76

A aaa

See memory map See memory map 0–FFFF

Description On when the pointer is outside of the available range. On anytime the value in the accumulator is negative. On when the value loaded into the accumulator by any instruction is zero.

NOTE: Two consecutive Load instructions will place the value of the first load instruction onto the accumulator stack.

In the following example, when X1 is on, the 32 bit value in V2000 and V2001 will be loaded into the accumulator and output to V2010 and V2011. DirectSOFT 5 Direct SOFT32 X1

V2001

LDD V2000

V2000

6

7

3

9

5

0

2

6

Acc. 6

7

3

9

65 00 22 66

6

7

3

9

5

Load the value in V2000 and V2001 into the 32 bit accumulator

OUTD V2010 Copy the value in the 32 bit accumulator to V2010 and V2011 Handheld Programmer Keystrokes $

B STR

1

SHFT

L ANDST

D

C

A

A

3

0

2

SHFT

D

C

A

B 0

3 A

0

GX OUT 2

ENT D

0

ENT

3 A 1

0

ENT

DL05 Micro PLC User Manual, 6th Edition, Rev. A

V2011

0

2

V2010

6

Page 178

Chapter 5: Standard RLL - Accumulator/Stack Load and Output Data Instructions

Load Formatted (LDF) DS5

Used

HPP

Used

The Load Formatted instruction loads 1–32 consecutive bits from discrete memory locations into the accumulator. The instruction requires a starting location (Aaaa) and the number of bits (Kbbb) to be loaded. Unused accumulator bit locations are set to zero.

LDF K bbb

Operand Data Type

DL05 Range

....................................A Inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Outputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Control Relays . . . . . . . . . . . . . . . . . . . . . . . . . . . Stage Bits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Timer Bits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Counter Bits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Special Relays . . . . . . . . . . . . . . . . . . . . . . . . . . . Constant . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

X Y C S T CT SP K

Discrete Bit Flags SP70 SP76

A aaa aaa bbb

0–377 0–377 0–777 0–377 0–177 0–177 0–777 ––

–– –– –– –– –– –– –– 1–32

Description On anytime the value in the accumulator is negative. On when the value loaded into the accumulator by any instruction is zero.

NOTE: Two consecutive Load instructions will place the value of the first load instruction onto the accumulator stack.

In the following example, when C0 is on, the binary pattern of C10–C16 (7 bits) will be loaded into the accumulator using the Load Formatted instruction. The lower 7 bits of the accumulator are output to Y0–Y6 using the Out Formatted instruction. DirectSOFT 5 Direct SOFT32 C0

LDF

C10 K7

Load the status of 7 consecutive bits (C10–C16) into the accumulator

Constant

C10

K7

C16 C15 C14 C13 C12 C11 C10 OFF OFF OFF ON ON ON OFF

The unused accumulator bits are set to zero

Acc.

OUTF

Location

31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9

8

7

6 5

4 3

2

1

0

0

0

0

0

0

0

1

1

1

0

Y4

Y3

Y2

Y1

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

Y0 K7

Copy the value from the specified number of bits in the accumulator to Y0 – Y6

Location

Constant

Y6 Y5

Y0

K7

OFF OFF OFF ON ON ON OFF

Handheld Programmer Keystrokes SHFT

C

SHFT

L ANDST

D

F

SHFT

C

B

GX OUT

SHFT

$ STR

A

3

2

0

ENT

5 A

1

H 0

7

ENT

F 5 H

0

A 2

7

Y0

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

ENT

DL05 Micro PLC User Manual, 6th Edition, Rev. A

5–55

Page 179

Chapter 5: Standard RLL - Accumulator/Stack Load and Output Data Instructions

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

Load Address (LDA) DS5

Used

HPP

Used

5–56

The Load Address instruction is a 16 bit instruction. It converts any octal value or address to the HEX equivalent value and loads the HEX value into the accumulator. This instruction is useful when an address parameter is required since all addresses for the DL05 system are in octal. Operand Data Type

LDA O aaa

DL05 Range aaa

Octal Address . . . . . . . . . . . . . . . . . . . . . . . . . . O

See memory map

Discrete Bit Flags

Description

SP70 SP76

On anytime the value in the accumulator is negative. On when the value loaded into the accumulator by any instruction is zero.

NOTE: Two consecutive Load instructions will place the value of the first load instruction onto the accumulator stack.

In the following example when X1 is on, the octal number 40400 will be converted to a HEX 4100 and loaded into the accumulator using the Load Address instruction. The value in the lower 16 bits of the accumulator is copied to V2000 using the Out instruction. DirectSOFT 5 Direct SOFT32

X1

Octal

LDA 4

O 40400

0

Load The HEX equivalent to the octal number into the lower 16 bits of the accumulator

V2000

1

SHFT

L ANDST

D

E

A

E

4 GX OUT

0

ENT A

3

0 A

A

4

0

SHFT

V AND

0 C

ENT A

2

4

1

0

0

0

0

0

4

1

0

0

4

1

0

0

V2000

Handheld Programmer Keystrokes B

0

Acc. 0

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

STR

Hexadecimal 0

The unused accumulator bits are set to zero

OUT

$

4

A 0

A 0

0

DL05 Micro PLC User Manual, 6th Edition, Rev. A

ENT

Page 180

Chapter 5: Standard RLL - Accumulator/Stack Load and Output Data Instructions

Out (OUT) DS5 HPP

1 2 Operand Data Type DL05 Range aaa 3 4 Discrete Bit Flags Description 5 In the following example, when X1 is on, the value in V2000 will be loaded into the lower 16 6 bits of the accumulator using the Load instruction. The value in the lower 16 bits of the accumulator are copied to V2010 using the Out instruction.V2000 7 8 9 10 Out Double (OUTD) The Out Double instruction is a 32 bit instruction that 11 copies the value in the accumulator to two consecutive V memory locations at a specified starting location (Aaaa). 12 Operand Data Type DL05 Range aaa 13 14 Discrete Bit Flags Description A In the following example, when X1 is on, the 32 bit value in V2000 and V2001 will be loaded into the accumulator using the Load Double instruction. The value in the B accumulator is output to V2010 and V2011 using the Out Double instruction. C D Used Used

The Out instruction is a 16 bit instruction that copies the value in the lower 16 bits of the accumulator to a specified V-memory location (Aaaa).

OUT

A aaa

....................................A V-memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . V Pointer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P

SP53

See memory map See memory map

On when the pointer is outside of the available range.

DirectSOFT Direct SOFT32 5

Handheld Programmer Keystrokes

X1

V2000

LD

8

V2000

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

9

3

STR

The unused accumulator bits are set to zero Acc. 0

0

0

0

88 99 33 55

V2010

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

DS5

SHFT

D

C

A

A

2

8

9

3

ENT

1

L ANDST

GX OUT

OUT

HPP

B

$

5

0

3

A

0

0

SHFT

V AND

ENT

C

A

2

B

0

A

1

0

ENT

5

V2010

OUTD A aaa

Used Used

....................................A V-memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . V Pointer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P

SP53

On when the pointer is outside of the available range.

DirectSOFT 5

V2001

Direct SOFT32

6

X1

All (See page 4–28) All V-memory (See page 4–28)

7

3

Handheld Programmer Keystrokes

V2000

9

5

0

2

6

LDD

$

B

1

STR

V2000

Load the value in V2000 and V2001 into the accumulator

Acc. 6

7

3

9

55 00 22 66

OUTD V2010 Copy the value in the accumulator to V2010 and V2011

6

7

3

V2011

9

5

0

2

V2010

6

SHFT

L ANDST

D

C

A

A

3

2

0

GX OUT

SHFT

D

C

A

B

2

0

ENT

D

3

A

0

0

ENT

3 A 1

0

ENT

DL05 Micro PLC User Manual, 6th Edition, Rev. A

5–57

Page 181

Chapter 5: Standard RLL - Accumulator/Stack Load and Output Data Instructions

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

Out Formatted (OUTF) DS5

Used

HPP

Used

The Out Formatted instruction outputs 1–32 bits from the accumulator to the specified discrete memory locations. The instruction requires a starting location (Aaaa) for the destination and the number of bits (Kbbb) to be output.

OUTF A aaa K bbb

Operand Data Type

DL05 Range

....................................A Inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . X Outputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Y Control Relays . . . . . . . . . . . . . . . . . . . . . . . . . . C Constant . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . K aaa bbb

0–377 0–377 0–777 ––

–– –– –– 1–32

In the following example, when C0 is on, the binary pattern of C10–C16 (7 bits) will be loaded into the accumulator using the Load Formatted instruction. The lower 7 bits of the accumulator are output to Y0–Y6 using the Out Formatted instruction. DirectSOFT 5 C0

LDF

C10 K7

Load the status of 7 consecutive bits (C10–C16) into the accumulator

OUTF

Location

Constant

C10

K7

C16 C15 C14 C13 C12 C11 C10 OFF OFF OFF ON ON ON OFF

The unused accumulator bits are set to zero

Y20

31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9

8

7

6 5

4 3

2

1

0

0

0

0

0

0

1

1

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

1

Accumulator

K7 Copy the value of the specified number of bits from the accumulator to Y20–Y26

Location

Constant

Y26 Y25 Y24 Y23 Y22 Y21 Y20

Y0

K7

OFF OFF OFF ON ON ON OFF

Handheld Programmer Keystrokes $ STR

SHFT

C F

SHFT

L ANDST

D

SHFT

C

B

GX OUT A

3

SHFT

ENT

5 H 0

7

ENT

F 5 H

0

0

A 1

2

A 2

7

ENT

POP DS5

Used

HPP

Used

5–58

The POP instruction moves the value from the first level of the accumulator stack (32 bits) to the accumulator and shifts each value in the stack up one level.

POP

Discrete Bit Flags

Description

SP63

On when the result of the instruction causes the value in the accumulator to be zero.

DL05 Micro PLC User Manual, 6th Edition, Rev. A

Page 182

Chapter 5: Standard RLL - Accumulator/Stack Load and Output Data Instructions

Pop Instruction (cont’d) In the example below, when C0 is on, the value 4545 that was on top of the stack is moved into the accumulator using the Pop instruction The value is output to V2000 using the Out instruction. The next Pop moves the value 3792 into the accumulator and outputs the value to V2001. The last Pop moves the value 7930 into the accumulator and outputs the value to V2002. Please note if the value in the stack were greater than 16 bits (4 digits) the Out Double instruction would be used and two V-memory locations for each Out Double must be allocated. DirectSOFT Direct SOFT32 5

Previous Acc. value

C0

POP

Acc. X

X

X

X

XX XX XX XX

0

44 55 44 55

Accumulator Stack

Current Acc. value Pop the 1st. value on the stack into the accumulator and move stack values up one location

Acc. 0

0

0

OUT V2000 V2000

4

5

4

5

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

Level 1 Level 2

0 0 0

0 0 0

0 0

0 0

3 7

7 9

9 3

2 0

Level 3

X

X

X

X

X

X

X

X

Level 4

X

X

X

X

X

X

X

X

Level 5

X

X

X

X

X

X

X

X

Level 6

X

X

X

X

X

X

X

X

Level 7

X

X

X

X

X

X

X

X

Level 8

X

X

X

X

X

X

X

X

Level 1

0

0

0

0

7

9

3

0

Level 2

X

X

X

X

X

X

X

X

Level 3

X

X

X

X

X

X

X

X

Level 4

X

X

X

X

X

X

X

X

Level 5

X

X

X

X

X

X

X

X

Level 6

X

X

X

X

X

X

X

X

Level 7

X

X

X

X

X

X

X

X

Level 8

X

X

X

X

X

X

X

X

Level 1

X

X

X

X

X

X

X

X

Level 2

X

X

X

X

X

X

X

X

Level 3

X

X

X

X

X

X

X

X

Level 4

X

X

X

X

X

X

X

X

Level 5

X

X

X

X

X

X

X

X

Level 6

X

X

X

X

X

X

X

X

Level 7

X

X

X

X

X

X

X

X

Level 8

X

X

X

X

X

X

X

X

POP Previous Acc. value Acc. 0 Pop the 1st. value on the stack into the accumulator and move stack values up one location

0

0

0

44 55 44 55

0

3

Accumulator Stack

Current Acc. value Acc. 0

0

0

7

9

2

OUT V2001 Copy the value in the lower 16 bits of the accumulator to V2001

V2001

3

7

9

2

POP

Previous Acc. value

Pop the 1st. value on the stack into the accumulator and move stack values up one location

Acc. 0

0

0

0

3

7

9

2

0

7

9

3

0

Accumulator Stack

Current Acc. value Acc. 0

OUT

0

0

V2002 Copy the value in the lower 16 bits of the accumulator to V2002 V2002 Handheld Programmer Keystrokes $ STR SHFT

P CV

GX OUT SHFT

P CV

GX OUT SHFT GX OUT

P CV

SHFT

C

A

SHFT

O INST#

P

SHFT

V AND

C

SHFT

O INST#

P

SHFT

V AND

C

SHFT

O INST#

P

SHFT

V AND

C

2

0 CV

ENT

2

A 0

A

A 0

A 0

0

0

ENT

B 0

1

ENT

ENT A

2

3

ENT

2 CV

9

ENT A

CV

7

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

A 0

C 0

2

ENT

DL05 Micro PLC User Manual, 6th Edition, Rev. A

5–59

Page 183

Chapter 5: Standard RLL - Logical Instructions

1 Logical Instructions (Accumulator) And (AND) 2 The And instruction is a 16 bit instruction that logically ands the value in the lower 16 bits of the accumulator with a specified V-memory location (Aaaa). The result resides in the accumulator. 3 The discrete status flag indicates if the result of the And is zero. Operand Data Type DL05 Range 4 aaa 5 Discrete Bit Flags Description 6 7 NOTE: The status flags are only valid until another instruction that uses the same flags is executed. 8 In the following example, when X1 is on, the value in V2000 will be loaded into the accumulator using the Load instruction. The value in the accumulator is anded with the value 9 in V2006 using the And instruction. The value in the lower 16 bits of the accumulator is output to V2010 using the Out instruction. 10 11 12 13 14 A B C D DS5

Used

HPP

Used

AND

A aaa

....................................A V-memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . V Pointer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P

SP63 SP70

See memory map See memory map

On if the result in the accumulator is zero. On anytime the value in the accumulator is negative.

DirectSOFT 5

Direct SOFT32 X1

V2000

LD

V2000

2

8

7

A

The upper 16 bits of the accumulator will be set to 0

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

31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9

Acc.

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

8

7

6 5

4 3

2

1

0

0

0

0

1

0

1

0

0

0

0

1

1

1

1

0

1

0

AND

V2006

AND the value in the accumulator with the value in V2006

Acc.

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

1

0

1

0

0

0

0

1

1

1

1

0

1

0

6A38 AND (V2006)

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

1

1

0

1

0

1

0

0

0

1

1

1

0

0

0

Acc.

0

0

0

0

0

0 1

0

0

0

0

0

0

0

0

0

0

0

0

1

0

1

0

0

0

0

0

1

1

1

0

0

0

2

8

3

8

OUT

V2010

Copy the lower 16 bits of the accumulator to V2010

V2010

Handheld Programmer Keystrokes $

B

STR

SHFT

V AND GX OUT

5–60

1

L ANDST

ENT

D

A

C

2

3

SHFT

V AND

C

SHFT

V AND

C

A

0

A

2

A

0

A

2

A

0 0

B

0

0

G

6

A

1

0

ENT ENT ENT

DL05 Micro PLC User Manual, 6th Edition, Rev. A