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

The text of a manual · part 21 of 53

DL06 Micro PLC User Manual, Volume 1 of 2, pages 200 to 209

Pages 200 to 209 of 524

The original document is the PDF (6.4 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 Direct Logic DL06 and Koyo DL06 D0-06DD1

Page 200

Chapter 5: Standard RLL Instructions - Timer, Counter and Shift Register Instructions

Counter Example Using Discrete Status Bits

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

In the following example, when X1 makes an off to on transition, counter CT2 will increment by one. When the current value reaches the preset value of 3, the counter status bit CT2 will turn on and energize Y7. When the reset C10 turns on, the counter status bit will turn off and the current value will be 0. The current value for counter CT2 will be held in Vmemory location V1002. DirectSOFT 5 DirectSOFT32 CNT

CT2 X1 K3

C10 C10

CT2

Y7

CT2 or Y7

OUT

Current Value

1

B

$ STR $

SHFT

STR

$

ENT

1

STR

C

B 2

A 1

C

GY CNT

2

3

4

Handheld Programmer Keystrokes (cont)

Handheld Programmer Keystrokes

GX OUT

ENT

0

D 2

SHFT

C

B

A 1

SHFT

2

T MLR

C 2

ENT

ENT

0

ENT

3

Counter Example Using Comparative Contacts In the following example, when X1 makes an off to on transition, counter CT2 will increment by one. Comparative contacts are used to energize Y3, Y4, and Y5 at different counts. When the reset C10 turns on, the counter status bit will turn off and the counter current value will be 0, and the comparative contacts will turn off. DirectSOFT 5

Counting diagram

DirectSOFT32 X1

CNT

CT2 X1 K3

C10 C10

CTA2

Y3

K1

Y3

OUT Y4 CTA2

Y4

K2

OUT

CTA2

Y5

K3

Y5 1

Current Value

2

3

4

OUT

Handheld Programmer Keystrokes (cont)

Handheld Programmer Keystrokes $

B STR

1

$

SHFT

STR GY CNT

C

$

SHFT B 1

$

ENT C 2

A 1

D 3 C 2

SHFT

0

ENT

ENT T MLR

C

C 2

2

E

$

SHFT

3

4

STR D 3

ENT

GX OUT

C 2

SHFT

T MLR

C

SHFT

T MLR

C

2

ENT

GX OUT

ENT D

SHFT

STR B

2

STR

GX OUT

5–46

Counting diagram

X1

ENT C 2

ENT F 5

ENT

DL06 Micro PLC User Manual, 3rd Edition Rev. A

2

0

0

Page 201

Chapter 5: Standard RLL Instructions - Timer, Counter and Shift Register Instructions

Stage Counter (SGCNT) DS5

Used

HPP

Used

The Stage Counter is a single input counter that increments when the input logic transitions from off to Counter# on. This counter differs from other counters since it will hold its current value until reset using the RST CT aaa SGCNT instruction. The Stage Counter is designed for use in PLUS B bbb programs but can be used in relay ladder logic RLL programs. When the current value equals the preset value, Preset the counter status bit turns on and the counter continues to count up to a maximum count of 9999. The maximum value will be held until the counter is reset. Instruction Specifications Counter Reference (CTaaa): Specifies the counter number. Preset Value (Bbbb): Constant value (K) or a V-memory location. Current Values: Counter current values are accessed by referencing the associated V or CT memory locations*. The V-memory location is the counter location + 1000. For example, the counter current value for CT3 resides in V-memory location V1003. Discrete Status Bit: The discrete status bit is accessed by referencing the associated CT memory location. It will be on if the value is equal to or greater than the preset value. For example the discrete status bit for counter 2 would be CT2.

1 2 3 4 5 6 7 8 9 NOTE: In using a counter inside a stage, the stage must be active for one scan before the input to the counter makes a 0-1 transition. Otherwise, there is no real transition and the counter will not count. 10 NOTE: A V-memory preset is required only if the ladder program or an Operator Interface unit must change 11 the preset. Operand Data Type DL06 Range 12 aaa bbb 13 14 A B C NOTE: * ** With the HPP, both the Counter discrete status bits and current value are accessed with the same data D reference. DirectSOFT 5 uses separate references, such as “CT2” for discrete status bit for Counter CT2, and . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A/B Counters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . CT

0–177

V-memory (preset only) . . . . . . . . . . . . . . . . . . V

––

Pointers (preset only) . . . . . . . . . . . . . . . . . . . . P

Constants (preset only) . . . . . . . . . . . . . . . . . . K Counter discrete status bits . . . . . . . . . . . . CT/V Counter current values . . . . . . . . . . . . . . V /CT**

–– 400-677 1200–7377 7400–7577 10000-17777

400-677 1200–7377 7400–7577* 10000-17777 –– 0–9999 0–177 or V41140–41147 1000-1177 ––

May be non-volatile if MOV instruction is used.

“CTA2” for the current value of Counter CT2.

DL06 Micro PLC User Manual, 3rd Edition Rev. A

5–47

Page 202

Chapter 5: Standard RLL Instructions - Timer, Counter and Shift Register Instructions

Stage Counter Example Using Discrete Status Bits

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

In the following example, when X1 makes an off to on transition, stage counter CT7 will increment by one. When the current value reaches 3, the counter status bit CT7 will turn on and energize Y7. The counter status bit CT7 will remain on until the counter is reset using the RST instruction. When the counter is reset, the counter status bit will turn off and the counter current value will be 0. The current value for counter CT7 will be held in V-memory location V1007. DirectSOFT 5 DirectSOFT32 SGCNT K3

C5

CT7

X1

Y7

Y7

OUT

Current Value

CT7

CT7

Handheld Programmer Keystrokes B

$ STR S RST

SHFT H

SHFT

G

D

ENT

7

6

3

$

C

SHFT

STR

2

2

3

4

0

Handheld Programmer Keystrokes (cont) B

GX OUT

ENT

1

1

RST CT7

RST

SHFT

$

GY CNT

STR S RST

SHFT

T MLR

H 7

A 1

ENT

0

SHFT

C

SHFT

C

F 2

ENT

5 SHFT

2

T MLR

H 7

ENT

ENT

Stage Counter Example Using Comparative Contacts In the following example, when X1 makes an off to on transition, counter CT2 will increment by one. Comparative contacts are used to energize Y3, Y4, and Y5 at different counts. Although this is not shown in the example, when the counter is reset using the Reset instruction, the counter status bit will turn off and the current value will be 0. The current value for counter CT2 will be held in V-memory location V1002 (CTA2). DirectSOFT 5

Counting diagram

DirectSOFT32 X1

SGCNT CT2 K10 X1

CTA2

Y3

K1

OUT

Y3

Y4 CTA2

Y4

K2

OUT

CTA2

Y5

K3

Y5 Current Value

1

2

3

4

OUT RST CT2 Handheld Programmer Keystrokes (cont)

Handheld Programmer Keystrokes B

$ STR SHFT

1 S RST

C

G 6 B

2

SHFT

STR B 1

$

ENT GY CNT

A

ENT

0 C 2

SHFT

C 2 GX OUT T MLR

2

3

4 SHFT

STR D 3

ENT

GX OUT

DL06 Micro PLC User Manual, 3rd Edition Rev. A

C 2

SHFT

T MLR

C

SHFT

T MLR

C

2

ENT E

$

C

ENT D

SHFT

STR

SHFT

1

$

GX OUT

5–48

Counting diagram

X1

ENT C 2

ENT F 5

ENT

2

0

Page 203

Chapter 5: Standard RLL Instructions - Timer, Counter and Shift Register Instructions

Up Down Counter (UDC) DS5

Used

HPP

Used

This Up/Down Counter counts up on each off to CT aaa Up UDC on transition of the Up input and counts down on B bbb each off to on transition of the Down input. The Down counter is reset to 0 when the Reset input is on. Counter # The count range is 0–99999999. The count input not being used must be off in order for the active Reset Preset count input to function. Instruction Specification Caution: The UDC uses twotwo V-memory Caution: The UDC uses locations for the 8 digit current Counter Reference (CTaaa): Specifies the counter V memory locations for the 8value. digit This means that This the UDC usesthat twothe current value. means number. cnsecutive locations. If UDC UDC usescounter two consecutive Preset Value (Bbbb): Constant value (K) or two CT1 is used in the next counter locations.program, If UDCthe CT1 is available counter is CT3. consecutive V-memory locations, in BCD. used in the program, the next available counter is CT3. Current Values: Current count is a double word value accessed by referencing the associated V or CT memory locations* in BCD. The V-memory location is the counter location + 1000. For example, the counter current value for CT5 resides in V-memory location V1005 and V1006. Discrete Status Bit: The discrete status bit is accessed by referencing the associated CT memory location. Operating as a “counter done bit” it will be on if the value is equal to or greater than the preset value. For example the discrete status bit for counter 2 would be CT2.

1 2 3 4 5 6 7 8 9 NOTE: The UDC uses two consecutive V-memory locations for the 8-digit value, therefore two consecutive timer locations. For example, if UDC CT1 is used, the next available counter number is CT3. 10 NOTE: A V-memory preset is required only if the ladder program or an Operator Interface unit must change 11 the preset. Operand Data Type DL06 Range 12 aaa bbb 13 14 A B C NOTE: * ** With the HPP, both the Counter discrete status bits and current value are accessed with the same data D reference. DirectSOFT 5 uses separate references, such as “CT2” for discrete status bit for Counter CT2, and . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A/B Counters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . CT

0–177

V-memory (preset only) . . . . . . . . . . . . . . . . . . V

––

Pointers (preset only) . . . . . . . . . . . . . . . . . . . . P

Constants (preset only) . . . . . . . . . . . . . . . . . . K Counter discrete status bits . . . . . . . . . . . . CT/V Counter current values . . . . . . . . . . . . . . V /CT**

–– 400-677 1200–7377 7400–7577 10000-17777

400-677 1200–7377* –– 7400–7577 10000-17777 –– 0–9999 0–177 or V41140–41147 1000-1177

May be non-volatile if MOV instruction is used.

“CTA2” for the current value of Counter CT2.

DL06 Micro PLC User Manual, 3rd Edition Rev. A

5–49

Page 204

Chapter 5: Standard RLL Instructions - Timer, Counter and Shift Register Instructions

Up / Down Counter Example Using Discrete Status Bits

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

In the following example, if X2 and X3 are off, when X1 toggles from off to on the counter will increment by one. If X1 and X3 are off the counter will decrement by one when X2 toggles from off to on. When the count value reaches the preset value of 3, the counter status bit will turn on. When the reset X3 turns on, the counter status bit will turn off and the current value will be 0. DirectSOFT 5

DirectSOFT32

UDC

CT2 X1

K3 X2

X2 X3 X3

CT2

CT2

Y7

Handheld Programmer Keystrokes $

B STR C STR

2

$

D STR

3 U

SHFT

ISG

D 3

ENT

$

ENT

GX OUT

STR

C

D 3

2

1

2

3

0

Handheld Programmer Keystrokes (cont)

ENT

1

$

1

Current Value

OUT

ENT SHFT

C

B

A

2 0

1

SHFT

T MLR

C

ENT

2

ENT

C 2

2

Up / Down Counter Example Using Comparative Contacts In the following example, when X1 makes an off to on transition, counter CT2 will increment by one. Comparative contacts are used to energize Y3 and Y4 at different counts. When the reset (X3) turns on, the counter status bit will turn off, the current value will be 0, and the comparative contacts will turn off. DirectSOFT 5

DirectSOFT32 X1

Counting Diagram UDC

CT2 V2000

X1

X2 X2 X3 X3

CTA2

Y3

K1

Y3

OUT Y4 CTA2

Y4

K2

OUT

Handheld Programmer Keystrokes $

B STR

1

$

C STR

2

$

D STR

3

SHFT

U

SHFT

V AND

$ STR

5–50

Counting Diagram

X1

D ISG

2

B

ENT

$ C

C 2

3 SHFT C

2 A

0

D

STR

2

2

4

ENT

1

ENT

A

3

Handheld Programmer Keystrokes (cont)

GX OUT

3

SHFT

1

ENT

C

C

Current Value

A 0

0

SHFT

T MLR

GX OUT

2

ENT

2 ENT

ENT C

E

C 2

DL06 Micro PLC User Manual, 3rd Edition Rev. A

4

ENT

SHFT

T MLR

C 2

0

Page 205

Chapter 5: Standard RLL Instructions - Timer, Counter and Shift Register Instructions

Shift Register (SR) DS5

Used

HPP

Used

The Shift Register instruction shifts data through a predefined number of control relays. The control ranges in the shift register block must start at the beginning of an 8 bit boundary and must use 8-bit blocks. The Shift Register has three contacts.

1 2 • Data, determines the value (1 or 0) that will enter the 3 register • Clock, shifts the bits one position on each low to high 4 transition • Reset, resets the Shift Register to all zeros. 5 With each off to on transition of the clock input, the bits which make up the shift register block are shifted by one bit position and the status of the data input is placed into the starting 6 bit position in the shift register. The direction of the shift depends on the entry in the From and To fields. From C0 to C17 would define a block of sixteen bits to be shifted from left to right. From C17 to C0 would define a block of sixteen bits, to be shifted from right to left. 7 The maximum size of the shift register block depends on the number of available control relays. The minimum block size is 8 control relays. 8 Operand Data Type DL06 Range aaa bbb 9 10 11 12 13 Inputs on Successive Scans Shift Register Bits Data Clock Reset 14 C0 C17 1 0-1-0 0 0 0-1-0 0 A 0 0-1-0 0 B 1 0-1-0 0 0 0-1-0 0 C 0 0 1 Indicates Indicates D ON OFF SR

DATA

From A aaa

CLOCK

To

B bbb

RESET

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A/B Control Relay . . . . . . . . . . . . . . . . . . . . . . . . . . . C Direct SOFT 5 5 DirectSOFT X1

0–1777

Handheld Programmer Keystrokes $

Data Input

B

1

STR

SR

$

X2

X3

0–1777

From

2

$

Clock Input

D

3

STR

To

Reset Input

C

STR

C0

C17

SHFT

ENT ENT ENT

S RST

SHFT

R ORN

B

H

ENT

1

7

SHFT

A

0

?

DL06 Micro PLC User Manual, 3rd Edition Rev. A

5–51

Page 206

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

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

Using the Accumulator The accumulator in the DL06 internal CPUs is a 32 bit register which is used as a temporary storage location for data that is being copied or manipulated in some manner. For example, you have to use the accumulator to perform math operations such as add, subtract, multiply, etc. Since there are 32 bits, you can use up to an 8-digit BCD number. The accumulator is reset to 0 at the end of every CPU scan.

Copying Data to the Accumulator The Load and Out instructions and their variations are used to copy data from a V-memory location to the accumulator, or to copy data from the accumulator to V-memory. The following example copies data from V-memory location V2000 to V-memory location V2010. X1

V2000 LD

8

9

3

5

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

Unused accumulator bits are set to zero Acc. 0

0

0

0

88 99 33 55

OUT 8

V2010

9

3

5

V2010

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

Since the accumulator is 32 bits and V-memory locations are 16 bits, the Load Double and Out Double (or variations thereof ) use two consecutive V-memory locations or 8 digit BCD constants to copy data either to the accumulator from a V-memory address or from a Vmemory address to the accumulator. For example if you wanted to copy data from V2000 and V2001 to V2010 and V2011 the most efficient way to perform this function would be as follows: X1

V2001

LDD V2000

V2000

6

7

3

9

5

0

2

6

Acc. 6

7

3

9

55 00 22 66

6

7

3

9

5

Copy data from V2000 and V2001 to the accumulator

OUTD V2010 Copy data from the accumulator to V2010 and V2011

DL06 Micro PLC User Manual, 3rd Edition Rev. A

V2011

0

2

V2010

6

Page 207

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

Changing the Accumulator Data Instructions that manipulate data also use the accumulator. The result of the manipulated data resides in the accumulator. The data that was being manipulated is cleared from the accumulator. The following example loads the constant value 4935 into the accumulator, shifts the data right 4 bits, and outputs the result to V2010.

X1

4

Constant

LD

9

3

5

K4935 Load the value 4935 into the accumulator Acc.

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

1

0

0

1

1

0

1

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

1

0

0

1

0

0

1

0

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

SHFR K4

Acc.

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

1

0

1

0

1

1

0

4

9

3

0

0

0

0

0 1

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

1

0

0

Shift the data in the accumulator 4 bits (K4) to the right

OUT V2010 Output the lower 16 bits of the accumulator to V2010

V2010

Some of the data manipulation instructions use 32 bits. They use two consecutive V-memory locations or an 8 digit BCD constant to manipulate data in the accumulator. In the following example, when X1 is on, the value in V2000 and V2001 will be loaded into the accumulator using the Load Double instruction. The value in the accumulator is added with the value in V2006 and V2007 using the Add Double instruction. The value in the accumulator is copied to V2010 and V2011 using the Out Double instruction. V2001 X1

LDD

V2000

6

7

3

9

5

0

2

6

V2000 Load the value in V2000 and V2001 into the accumulator ADDD V2006 Add the value in the accumulator with the value in V2006 and V2007

6

7

3

9

5

0

2

6

(Accumulator)

+ 2

0

0

0

4

0

4

6

(V2006&V2007)

Acc. 8

7

3

9

9

0

7

2

8

7

3

9

9

0

7

2

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

V2011

V2010

DL06 Micro PLC User Manual, 3rd Edition Rev. A

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

5–53

Page 208

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

Using the Accumulator Stack

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

The accumulator stack is used for instructions that require more than one parameter to execute a function or for user defined functionality. The accumulator stack is used when more than one Load instruction is executed without the use of an Out instruction. The first load instruction in the scan places a value into the accumulator. Every Load instruction thereafter without the use of an Out instruction places a value into the accumulator and the value that was in the accumulator is placed onto the accumulator stack. The Out instruction nullifies the previous load instruction and does not place the value that was in the accumulator onto the accumulator stack when the next load instruction is executed. Every time a value is placed onto the accumulator stack the other values in the stack are pushed down one location. The accumulator is eight levels deep (eight 32 bit registers). If there is a value in the eighth location when a new value is placed onto the stack, the value in the eighth location is pushed off the stack and cannot be recovered. X1

Constant

LD K3245 Load the value 3245 into the accumulator

3

2

4

5

Current Acc. value Acc. 0

0

0

0

3

2

4

Acc. X

X

X

X

Acc. 0

0

0

0

X X X X X

X X X X X

X X X X X

X X X X X

5

X

1

X

5

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

1

X

Level 7

X

X

X

X

X

X

X

X

Level 8

X

X

X

X

X

X

X

55

1

5

X

Level 1

0

0

0

0

3

2

4

5

0

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

LD

X

Level 8

X

X

X

X

X

X

X

X

X X

1 Bucket

Accumulator Stack

Previous Acc. value 0

Constant

33 22 44 55

6

3

6

3

Current Acc. value Acc. 0

Load the value 6363 into the accumulator, pushing the value 5151 to the 1st stack location and the value 3245 to the 2nd stack location

X X

Current Acc. value

Acc. 0

K6363

X X X X X

Level 2

Constant

LD

Load the value 5151 into the accumulator, pushing the value 3245 onto the stack

X X X X X

X

Level 3

X X X X X

Level 1 Previous Acc. value

K5151

Accumulator Stack

5

0

0

0

66 33 66 33

Bucket Accumulator Stack

Previous Acc. value Acc. 0

0

0

0

55

1

5

1

Level 1

0

0

0

Level 2 Level 3

0 0 X

0 0 X

0 0 3 2 4 5 0 0 X X X X X X

0

5

1

5

1

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

Bucket

The POP instruction rotates values upward through the stack into the accumulator. When a POP is executed the value which was in the accumulator is cleared and the value that was on top of the stack is in the accumulator. The values in the stack are shifted up one position in the stack.

DL06 Micro PLC User Manual, 3rd Edition Rev. A

Page 209

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

1 2 3 4 5 6 7 8 9 10 11 12 13 Using Pointers Many of the DL06 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: DL06 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. This instruction performs the Octal to Hexadecimal conversion automatically. B In the following example we are using a pointer operand in a Load instruction. V-memory C 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. The CPU will copy the data from V2100 which in this example contains the value 2635 into the lower D word of the accumulator. 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

DL06 Micro PLC User Manual, 3rd Edition Rev. A

5–55