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

The text of a manual · part 18 of 53

DL06 Micro PLC User Manual, Volume 1 of 2, pages 170 to 179

Pages 170 to 179 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 170

Chapter 5: Standard RLL Instructions - Boolean Instructions

And Store (ANDSTR)

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

DS5 Implied HPP

Used

The And Store instruction logically ands two branches of a rung in series. Both branches must begin with the Store instruction.

OUT

OR Store (ORSTR)

1

The Or Store instruction logically ORs two DS5 Implied branches of a rung in parallel. Both branches must HPP Used begin with the Store instruction.

5–16

2

1

OUT 2

In the following And Store example, the branch consisting of contacts X2, X3, and X4 have been anded with the branch consisting of contact X1. DirectSOFT Direct SOFT32 5 X1

Handheld Programmer Keystrokes X3

X2

Y5

$

B STR

OUT

1

$

C STR

X4

2

V AND

D

Q

E

3

OR L ANDST

4

ENT ENT ENT ENT

ENT

GX OUT

F 5

ENT

In the following Or Store example, the branch consisting of X1 and X2 have been ored with the branch consisting of X3 and X4. DirectSOFT 5 Direct SOFT32 X1

Handheld Programmer Keystrokes X2

Y5

X3

X4

B

$ STR

OUT

1

V AND

C

$

D

2

STR

3

V AND M ORST GX OUT

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

E 4

ENT ENT ENT ENT

ENT F 5

ENT

Page 171

Chapter 5: Standard RLL Instructions - Boolean Instructions

Out (OUT) DS5

Used

HPP

Used

Aaaa The Out instruction reflects the status of the rung (on/off ) and OUT outputs the discrete (on/off ) state to the specified image register point or memory location. Multiple Out instructions referencing the same discrete location should not be used since only the last Out instruction in the program will control the physical output point. Instead, use the next instruction, the Or Out. Operand Data Type DL06 Range aaa

....................................A Inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . X Outputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Y Control Relays . . . . . . . . . . . . . . . . . . . . . . . . . . C

0–777 0–777 0–1777

In the following Out example, when input X1 is on, output Y2 and Y5 will energize. DirectSOFT Direct SOFT32 5

Handheld Programmer Keystrokes

X1

Y2

$

B STR

OUT Y5 OUT

1

GX OUT

C

GX OUT

F

2 5

ENT ENT ENT

Or Out (OROUT) DS5

Usied

HPP

Used

The Or Out instruction allows more than one rung of discrete logic to control a single output. Multiple Or Out instructions referencing the same output coil may be used, since all contacts controlling the output are logically ORed together. If the status of any rung is on, the output will also be on. Operand Data Type

A aaa OROUT

DL06 Range

A aaa

Inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . X Outputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Y Control Relays . . . . . . . . . . . . . . . . . . . . . . . . . . C

0–777 0-777 0–1777

In the following example, when X1 or X4 is on, Y2 will energize. DirectSOFT 5 Direct SOFT32 X1

Handheld Programmer Keystrokes Y2

$

B STR

OR OUT

O INST#

1 D

F 3

5 E

$ STR X4

Y2 OR OUT

O INST#

4 D

F 3

5

ENT ENT

ENT

C

ENT

C

2

ENT

ENT ENT

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

2

ENT

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

5–17

Page 172

Chapter 5: Standard RLL Instructions - Boolean Instructions

Out Bit-of-Word (OUT)

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

DS5

Used

HPP

Used

5–18

The Out Bit-of-Word instruction reflects the status of the rung (on/off ) and outputs the discrete (on/off ) state to the specified bit in the referenced memory location. Multiple Out Bit-of-Word instructions referencing the same bit of the same word generally should not be used since only the last Out instruction in the program will control the status of the bit. Operand Data Type

Aaaa.bb OUT

DL06 Range

..................................... V-memory. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Pointer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

A B PB aaa bb

See memory map See memory map

0 to 15 0 to 15

NOTE: If the Bit-of-Word is entered as V1400.3 in DirectSOFT 5, it will be converted to B1400.3. Bit-ofWord can also be entered as B1400.3. DirectSOFT 5 DirectSOFT32 X1

B1400.3 OUT B1401.6

Handheld Programmer Keystrokes OUT STR OUT

OUT

1 SHFT

B

K

3

SHFT

B

K

6

ENT V

1

4

0

0

V

1

4

0

1

ENT

ENT

In the following Out Bit-of-Word example, when input X1 is on, bit 3 of V1400 and bit 6 of V1401 will turn on. The following Out Bit-of-Word example contains two Out Bit-of-Word instructions using the same bit in the same memory word. The final state bit 3 of V1400 is ultimately controlled by the last rung of logic referencing it. X1 will override the logic state controlled by X0. To avoid this situation, multiple outputs using the same location must not be used in programming. X0 B1400.3 OUT

X1

B1400.3 OUT

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

Page 173

Chapter 5: Standard RLL Instructions - Boolean Instructions

Not (NOT) DS5 HPP

The Not instruction inverts the status of the rung at the point of the instruction. In the following example when X1 is off, Y2 will energize. This is because the Not instruction inverts the status of the rung at the Not instruction.

1 2 3 4 5 NOTE: DirectSOFT Release 1.1i and later supports the use of the NOT instruction. The above example rung is merely intended to show the visual representation of the NOT instruction. The NOT instruction can 6 only be selected in DirectSOFT 5 from the Instruction Browser. The rung cannot be created or displayed in DirectSOFT versions earlier than 1.1i. 7 Positive Differential (PD) 8 The Positive Differential instruction is typically known as a one shot. When the input logic produces an off to on transition, the output will 9 energize for one CPU scan. 10 Operand Data Type DL06 Range aaa 11 12 In the following example, every time X1 makes an off to on transition, C0 will energize for one scan. 13 14 A B C D Used Used

DirectSOFT DirectSOFT325

Handheld Programmer Keystrokes

X1

B

$

Y2

STR

OUT

SHFT

N TMR

GX OUT

DS5 HPP

ENT

1

O INST#

T MLR

C

ENT

2

ENT

A aaa PD

Used Used

....................................A Inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . X Outputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Y Control Relays . . . . . . . . . . . . . . . . . . . . . . . . . . C

DirectSOFT 5 DirectSOFT32 X1

0–777 0–777 0–1777

Handheld Programmer Keystrokes

C0

$

B

STR

PD

SHFT

1

P

CV

SHFT

ENT

D

A

3

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

0

5–19

Page 174

Chapter 5: Standard RLL Instructions - Boolean Instructions

Store Positive Differential (STRPD)

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

DS5

Used

HPP

Used

Aaaa The Store Positive Differential instruction begins a new rung or an additional branch in a rung with a contact. The contact closes for one CPU scan when the state of the associated image register point makes an Off-to-On transition. Thereafter, the contact remains open until the next Off-to-On transition (the symbol inside the contact represents the transition). This function is sometimes called a “one-shot”.

Store Negative Differential (STRND)

DS5

Used

HPP

Used

5–20

The Store Negative Differential instruction begins a new rung Aaaa or an additional branch in a rung with a contact. The contact closes for one CPU scan when the state of the associated image register point makes an On-to-Off transition. Thereafter, the contact remains open until the next On-to-Off transition (the symbol inside the contact represents the transition). NOTE: When using DirectSOFT 5, these instructions can only be entered from the Instruction Browser.

Operand Data Type

DL06 Range aaa

....................................A Inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . X Outputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Y Control Relays . . . . . . . . . . . . . . . . . . . . . . . . . . C Stage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . S Timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . T Counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . CT

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

In the following example, each time X1 is makes an Off-to-On transition, Y4 will energize for one scan. DirectSOFT 5 DirectSOFT32 X1

Handheld Programmer Keystrokes Y4 OUT

$ STR

SHFT

GX OUT

D

P CV E 4

B 3

1

ENT

ENT

In the following example, each time X1 is makes an On-to-Off transition, Y4 will energize for one scan. DirectSOFT 5 DirectSOFT32 X1

Handheld Programmer Keystrokes Y4 OUT

$ STR GX OUT

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

SHFT

N TMR E 4

D

B 3

ENT

1

ENT

Page 175

Chapter 5: Standard RLL Instructions - Boolean Instructions

Or Positive Differential (ORPD) HPP

The Or Positive Differential instruction logically ors a contact in parallel with another contact in a rung. The status of the contact will be open until the associated image register point makes an Off-to-On transition, closing it for one CPU scan. Thereafter, it remains open until another Off-to-On transition.

1 2 3 Or Negative Differential (ORND) The Or Negative Differential instruction logically ors a 4 contact in parallel with another contact in a rung. The status of the contact will be open until the associated 5 image register point makes an On-to-Off transition, closing it for one CPU scan. Thereafter, it remains open until another On-to-Off transition. 6 Operand Data Type DL06 Range 7 aaa 8 9 10 In the following example, Y 5 will energize whenever X1 is on, or for one CPU scan when X2 11 12 13 14 transitions from Off to On. A In the following example, Y 5 will energize whenever X1 is on, or for one CPU scan when X2 transitions from On to Off. B C D

DS5 Implied Used

Aaaa

DS5 Implied HPP

Aaaa

Used

....................................A Inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . X Outputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Y Control Relays . . . . . . . . . . . . . . . . . . . . . . . . . . C Stage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . S Timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . T Counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . CT

DirectSOFT DirectSOFT32 5 X1

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

Handheld Programmer Keystrokes B

$

Y5

STR

OUT

Q

OR

X2

X1

P

C

D

CV

3

F

2

ENT

ENT

5

Handheld Programmer Keystrokes

Y5

OUT

B

$

STR

Q

OR

X2

SHFT

GX OUT

DirectSOFT DirectSOFT32 5

ENT

1

GX OUT

1

SHFT

N TMR F

5

ENT

D

C

3

2

ENT

ENT

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

5–21

Page 176

Chapter 5: Standard RLL Instructions - Boolean Instructions

And Positive Differential (ANDPD)

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

DS5 Implied HPP

Used

The And Positive Differential instruction logically ands a normally open contact in series with another contact in a rung. The status of the contact will be open until the associated image register point makes an Off-to-On transition, closing it for one CPU scan. Thereafter, it remains open until another Off-to-On transition.

Aaaa

And Negative Differential (ANDND) DS5 Implied HPP

5–22

Used

The And Negative Differential instruction logically ands a normally open contact in series with another contact in a rung.The status of the contact will be open until the associated image register point makes an On-to-Off transition, closing it for one CPU scan. Thereafter, it remains open until another On-to-Off transition.

Aaaa

Operand Data Type

DL06 Range aaa

....................................A Inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . X Outputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Y Control Relays . . . . . . . . . . . . . . . . . . . . . . . . . . C Stage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . S Timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . T Counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . CT

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

In the following example, Y5 will energize for one CPU scan whenever X1 is on and X2 transitions from Off to On. DirectSOFT 5

Handheld Programmer Keystrokes

DirectSOFT32 X1

X2

B

$ Y5

STR

OUT

Q OR

1 SHFT

D

P CV F

GX OUT

ENT

5

C 3

2

ENT

ENT

In the following example, Y5 will energize for one CPU scan whenever X1 is on and X2 transitions from On to Off. DirectSOFT 5

Handheld Programmer Keystrokes

DirectSOFT32 X1

X2

Y5 OUT

B

$ STR Q OR GX OUT

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

1 SHFT

N TMR F 5

ENT C

D 3 ENT

2

ENT

Page 177

Chapter 5: Standard RLL Instructions - Boolean Instructions

Set (SET) DS5

Used

HPP

Used

Optional memory range

The Set instruction sets or turns on an image register point/memory location or a consecutive range of image register points/memory locations. Once the point/location is set it will remain on until it is reset using the Reset instruction. It is not necessary for the input controlling the Set instruction to remain on.

A aaa aaa SET

Reset (RST) DS5

Used

HPP

Used

Optional Memory. range

The Reset instruction resets or turns off an image register point/memory location or a range of image registers points/memory locations. Once the point/location is reset it is not necessary for the input to remain on.

A aaa RST

Operand Data Type aaa

DL06 Range aaa

....................................A Inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . X Outputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Y Control Relays . . . . . . . . . . . . . . . . . . . . . . . . . . C Stage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . S Timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . T Counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . CT

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

In the following example when X1 is on, Y2 through Y5 will energize. DirectSOFT 5 DirectSOFT32 X1

Handheld Programmer Keystrokes Y2

Y5 SET

$

B STR

X SET

1

ENT

C

F 2

5

ENT

In the following example when X1 is on, Y2 through Y5 will be reset or de–energized.

DirectSOFT 5 DirectSOFT32 X2

Handheld Programmer Keystrokes Y2

Y5 RST

B

$ STR S RST

1

ENT F

C 2

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

5

ENT

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

5–23

Page 178

Chapter 5: Standard RLL Instructions - Boolean Instructions

Set Bit-of-Word (SET)

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

DS5

Used

HPP

Used

The Set Bit-of-Word instruction sets or turns on a bit in a Vmemory location. Once the bit is set it will remain on until it is reset using the Reset Bit-of-Word instruction. It is not necessary for the input controlling the Set Bit-of-Word instruction to remain on.

Aaaa.bb SET

Reset Bit-of-Word (RST) DS5

Used

HPP

Used

5–24

A aaa.bb RST

The Reset Bit-of-Word instruction resets or turns off a bit in a Vmemory location. Once the bit is reset it is not necessary for the input to remain on. Operand Data Type

DL06 Range

....................................A V-memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B Pointer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PB aaa bb

See memory map See memory map

0 to 15 0 to 15

In the following example when X1 turns on, bit 1 in V1400 is set to the on state. DirectSOFT 5 DirectSOFT32 X1

B1400.1 SET

Handheld Programmer Keystrokes STR

1

SET

SHFT

B

K

1

ENT V

1

4

0

0

ENT

In the following example when X2 turns on, bit 1 in V1400 is reset to the off state. DirectSOFT32 5 DirectSOFT X2

B1400.1 RST

Handheld Programmer Keystrokes STR RST

2 SHFT

B

K

1

ENT V

1

ENT

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

4

0

0

Page 179

Chapter 5: Standard RLL Instructions - Boolean Instructions

Pause (PAUSE) DS5 HPP

The Pause instruction disables the output update on a range of outputs. The ladder program will continue to Used run and update the image register. However, the outputs in the range specified in the Pause instruction will be turned off at the output points. Used

Operand Data Type

Y aaa aaa PAUSE

DL06 Range aaa

....................................A Outputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Y

0–777

In the following example, when X1 is ON, Y5–Y7 will be turned OFF. The execution of the ladder program will not be affected. DirectSOFT DirectSOFT325 X1

Y5

Y7

PAUSE

Since the D2–HPP Handheld Programmer does not have a specific Pause key, you can use the corresponding instruction number for entry (#960), or type each letter of the command. Handheld Programmer Keystrokes $

B STR

O INST#

1 J

G 9

ENT A

6

0

ENT

ENT

D

F 3

5

ENT

In some cases, you may want certain output points in the specified pause range to operate normally. In that case, use Aux 58 to over-ride the Pause instruction.

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–25