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

The text of a manual · part 24 of 68

DL405 User Manual: Chapter 5: Standard RLL Instructions, pages 193 to 202

Pages 193 to 202 of 608, from DL405 User Manual

The original document is the PDF (8.2 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 D4-08B-1, AutomationDirect D4-08ND3S, AutomationDirect D4-16TA, PLC Direct D4-16TD2, AutomationDirect D4-32ND3-1, Konnect-It D4-08B-1, Koyo D4-08B-1, Konnect-It D4-08ND3S, and 6 more models

Page 193

Standard RLL Instructions Boolean Instructions

Store Positive Differential (STRPD)

430 440 450

DS

HPP

Store Negative Differential (STRND)

430 440 450

DS

HPP

The Store Positive Differential instruction begins a new rung or an additional branch in a rung with a normally open 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”.

Aaaa

The Store Negative Differential instruction begins a new rung or an additional branch in a rung with a normally closed 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). Operand Data Type

5--21

Aaaa

DL450 Range A aaa

Inputs

X

0--1777

Outputs

Y

0--1777

Control Relays

C

0--3777

Stage

S

0--1777

Timer

T

0--377

Counter

CT

0--377

Global

GX

0--2777 (GX + GY)

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

Handheld Programmer Keystrokes Y4 OUT

STR

SHFT

X(IN)

1

OUT

Y(OUT)

P

D

SHFT

4

DirectSOFT X1

Handheld Programmer Keystrokes Y4 OUT

STR

SHFT

X(IN)

1

OUT

Y(OUT)

N

D

SHFT

4

DL405 User Manual, 4th Edition

Standard RLL Instructions

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

Page 194

5--22

Standard RLL Instructions Boolean Instructions

Or Positive Differential (ORPD)

430 440 450 IMP

DS

HPP

Or Negative Differential (ORND)

430 440 450 IMP

DS

HPP

The Or Positive Differential instruction logically ors a normally open 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.

Aaaa

The Or Negative Differential instruction logically ors a normally open 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 On-to-Off transition, closing it for one CPU scan. Thereafter, it remains open until another On-to-Off transition. Operand Data Type

DL450 Range A aaa

X

0--1777

Outputs

Y

0--1777

Control Relays

C

0--3777

Stage

S

0--1777

Timer

T

0--377

Counter

CT

0--377

Global

GX

0--2777 (GX + GY)

Inputs

Aaaa

In the following example, Y 5 will energize whenever X1 is on, or for one CPU scan when X2 transitions from Off to On. Handheld Programmer Keystrokes

DirectSOFT X1

Y5

STR

X(IN)

1

OUT

OR

SHFT

P

X2

X(IN)

2

OUT

Y(OUT)

D

SHFT

5

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

Handheld Programmer Keystrokes Y5

Standard RLL Instructions

OUT X2

DL405 User Manual, 4th Edition

STR

X(IN)

1

OR

SHFT

N

X(IN)

2

OUT

Y(OUT)

5

D

SHFT

Page 195

5--23

Standard RLL Instructions Boolean Instructions

And Positive Differential (ANDPD)

430 440 450 IMP

DS

HPP

And Negative Differential (ANDND)

430 440 450 IMP

DS

HPP

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

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. Operand Data Type

Aaaa

DL450 Range A aaa

X

0--1777

Outputs

Y

0--1777

Control Relays

C

0--3777

Stage

S

0--1777

Timer

T

0--377

Counter

CT

0--377

Global

GX

0--2777 (GX + GY)

Inputs

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

Handheld Programmer Keystrokes X2

Y5 OUT

STR

X(IN)

1

AND

SHFT

P

X(IN)

2

OUT

Y(OUT)

D

SHFT

5

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

Handheld Programmer Keystrokes X2

Y5

STR

X(IN)

1

AND

SHFT

N

X(IN)

2

OUT

Y(OUT)

D

SHFT

5

DL405 User Manual, 4th Edition

Standard RLL Instructions

OUT

Page 196

5--24

Standard RLL Instructions Boolean Instructions

Set (SET)

430 440 450

DS

HPP

Reset (RST)

430 440 450

DS

HPP

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.

Optional memory range

A aaa aaa SET

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.

Operand Data Type

Optional memory range

A aaa aaa RST

DL430 Range

DL440 Range

A aaa aaa

DL450 Range aaa

Inputs

X

0--477

0--477

0--1777

Outputs

Y

0--477

0--477

0--1777

Control Relays

C

0--737

0--1777

0--3777

Stages

S

0--577

0--1777

0--1777

Timers*

T

0--177

0--377

0--377

Counters*

CT

0--177

0--177

0--377

Global

GX

0--777

0--1777

0--2777 (GX + GY)

* Timer and counter operand data types are not valid using the Set instruction.

In the following example when X1 turns on, Y5 through Y22 will be set to the on state. DirectSOFT X1

Y5

Y22 SET

Handheld Programmer Keystrokes STR

X(IN)

1

SET

Y(OUT)

5

Y(OUT)

2

2

In the following example when X1 turns on, Y5 through Y22 will be reset to the off state. DirectSOFT

Standard RLL Instructions

X1

Y5

Y22 RST

Handheld Programmer Keystrokes

DL405 User Manual, 4th Edition

STR

X(IN)

1

RST

Y(OUT)

5

Y(OUT)

2

2

Page 197

Standard RLL Instructions Boolean Instructions

Set Bit-of-Word (SETB)

430 440 450

DS

HPP

Reset Bit-of-Word (RSTB)

430 440 450

DS

HPP

The Set Bit-of-Word instruction sets or turns on a bit in a V--memory 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

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

Operand Data Type

5--25

A aaa.bb RST

DL450 Range A aaa bb

V--memory

B

All (See p. 3--42)

0 to 15

Pointer

PB

All (See p. 3--42)

0 to 15

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

B1400.0 SET

Handheld Programmer Keystrokes STR

X(IN)

1

SET

SHFT

B

K(con)

0

SHFT

V

1

4

0

0

In the following example when X1 turns on, bit 15 in V1400 is reset to the off state. DirectSOFT X1

V1400.15 RST

Handheld Programmer Keystrokes X(IN)

1

RST

SHFT

B

K(con)

1

5

SHFT

V

1

4

0

0

DL405 User Manual, 4th Edition

Standard RLL Instructions

STR

Page 198

5--26

Standard RLL Instructions Comparative Boolean Instructions

Comparative Boolean Instructions The Store If Equal instruction begins a new rung or additional branch in a rung with a normally open comparative contact. The contact will be on when Aaaa = Bbbb.

Store If Equal (STRE)

430 440 450

DS

HPP

The Store If Not Equal instruction begins a new rung or additional branch in a rung with a normally closed comparative contact. The contact will be on when Aaaa ¸ Bbbb.

Store If Not Equal (STRNE)

430 440 450

DS

HPP

Operand Data Type

DL430 Range

A aaa

B bbb

A aaa

B bbb

DL440 Range

DL450 Range

A/B aaa bbb aaa bbb aaa bbb

V--memory

V

All (See p. 3--40)

All (See p. 3--40)

All (See p. 3--41)

All (See p. 3--41)

All (See p. 3--42)

All (See p. 3--42)

Pointer

P

----

----

All (See p. 3--41)

All (See p. 3--41)

All (See p. 3--42)

All (See p. 3--42)

Constant

K

----

0--FFFF

----

0--FFFF

----

0--FFFF

In the following example, when the value in V--memory location V1400 = 4933 , Y3 will energize. DirectSOFT V1400

Y3

K4933

OUT

Handheld Programmer Keystrokes STR

SHFT

E

SHFT

V

K(CON)

4

9

3

3

OUT

Y(OUT)

3

1

4

0

0

In the following example, when the value in V--memory location V1400 ¸ 5060, Y3 will energize. Standard RLL Instructions

DirectSOFT V1400

Y3

K5060

OUT

Handheld Programmer Keystrokes STR

DL405 User Manual, 4th Edition

NOT

SHFT

E

SHFT

K(CON)

5

0

6

0

OUT

Y(OUT)

3

V

1

4

0

0

Page 199

5--27

Standard RLL Instructions Comparative Boolean Instructions

The Or If Equal instruction connects a normally open comparative contact in parallel with another contact. The contact will be on when Aaaa = Bbbb.

Or If Equal (ORE)

430 440 450 IMP

DS

HPP

The Or If Not Equal instruction connects a normally closed comparative contact in parallel with another contact. The contact will be on when Aaaa ¸ Bbbb.

Or If Not Equal (ORNE)

430 440 450 IMP

DS

HPP Operand Data Type

DL430 Range

A aaa

B bbb

A aaa

B bbb

DL440 Range

DL450 Range

A/B aaa bbb aaa bbb aaa bbb

V--memory

V

All (See p. 3--40)

All (See p. 3--40)

All (See p. 3--41)

All (See p. 3--41)

All (See p. 3--42)

All (See p. 3--42)

Pointer

P

----

----

All (See p. 3--41)

All (See p. 3--41)

All (See p. 3--42)

All (See p. 3--42)

Constant

K

----

0--FFFF

----

0--FFFF

----

0--FFFF

In the following example, when the value in V--memory location V1400 = 4500 or V1402 = 2345 , Y3 will energize. DirectSOFT V1400

K4500

Y3 OUT

V1402

K2345

Handheld Programmer Keystrokes STR

SHFT

E

SHFT

V

K(CON)

4

5

0

0

OR

SHFT

E

SHFT

V

K(CON)

2

3

4

5

OUT

Y(OUT)

3

1

4

0

0

1

4

0

2

In the following example, when the value in V--memory location V1400 = 3916 or V1402 ¸ 2500, Y3 will energize. DirectSOFT V1400

K3916

Y3 OUT

V1402

K2500

STR

SHFT

E

SHFT

V

K(CON)

3

9

1

6

OR

NOT

SHFT

E

SHFT

K(CON)

2

5

0

0

OUT

Y(OUT)

3

1

4

0

0

V

1

4

0

2

DL405 User Manual, 4th Edition

Standard RLL Instructions

Handheld Programmer Keystrokes

Page 200

5--28

Standard RLL Instructions Comparative Boolean Instructions

The And If Equal instruction connects a normally open comparative contact in series with another contact. The contact will be on when Aaaa = Bbbb.

And If Equal (ANDE)

430 440 450 IMP

DS

HPP

The And If Not Equal instruction connects a normally closed comparative contact in series with another contact. The contact will be on when Aaaa ¸ Bbbb

And If Not Equal (ANDNE)

430 440 450 IMP

DS

HPP Operand Data Type

DL430 Range

A aaa

B bbb

A aaa

B bbb

DL440 Range

DL450 Range

A/B aaa bbb aaa bbb aaa bbb

V--memory

V

All (See p. 3--40)

All (See p. 3--40)

All (See p. 3--41)

All (See p. 3--41)

All (See p. 3--42)

All (See p. 3--42)

Pointer

P

----

----

All (See p. 3--41)

All (See p. 3--41)

All (See p. 3--42)

All (See p. 3--42)

Constant

K

----

0--FFFF

----

0--FFFF

----

0--FFFF

In the following example, when the value in V--memory location V1400 = 5000 and V1402 = 2345, Y3 will energize. DirectSOFT V1400

K5000

V1402

K2345

Y3 OUT

Handheld Programmer Keystrokes STR

SHFT

E

SHFT

V

K(CON)

5

0

0

0

AND

SHFT

E

SHFT

V

K(CON)

2

3

4

5

OUT

Y(OUT)

3

1

4

0

0

1

4

0

2

In the following example, when the value in V--memory location V1400 = 2550 and V1402 ¸ 2500, Y3 will energize. DirectSOFT V1400

K2550

V1402

Y3

K2500

Standard RLL Instructions

OUT

Handheld Programmer Keystrokes

DL405 User Manual, 4th Edition

STR

SHFT

E

SHFT

V

K(CON)

2

5

5

0

AND

NOT

SHFT

E

SHFT

K(CON)

2

5

0

0

OUT

Y(OUT)

3

1

4

0

0

V

1

4

0

2

Page 201

5--29

Standard RLL Instructions Comparative Boolean Instructions

Store (STR)

430 440 450

DS

HPP

Store Not (STRN)

430 440 450

DS

HPP

The Comparative Store instruction begins a new rung or additional branch in a rung with a normally open comparative contact. The contact will be on when Aaaa ² Bbbb.

A aaa

B bbb

The Comparative Store Not instruction begins a new rung or additional branch in a rung with a normally closed comparative contact. The contact will be on when Aaaa < Bbbb.

A aaa

B bbb

Operand Data Type

DL430 Range

DL440 Range

DL450 Range

A/B aaa bbb aaa bbb aaa bbb

V--memory

V

All (See p. 3--40)

All (See p. 3--40)

All (See p. 3--41)

All (See p. 3--41)

All (See p. 3--42)

All (See p. 3--42)

Pointer

P

----

----

All (See p. 3--41)

All (See p. 3--41)

All (See p. 3--42)

All (See p. 3--42)

Constant

K

----

0--FFFF

----

0--FFFF

----

0--FFFF

Timer

T

0--177

0--377

0--377

Counter

CT

0--177

0--177

0--377

In the following example, when the value in V--memory location V1400 ² 1000, Y3 will energize. DirectSOFT V1400

Y3

K1000

OUT

Handheld Programmer Keystrokes STR

V

1

4

0

K(CON)

1

0

0

0

OUT

Y(OUT)

3

0

In the following example, when the value in V--memory location V1400 < 4050, Y3 will energize. DirectSOFT V1400

K4050

Y3

Handheld Programmer Keystrokes STR

NOT

V

1

4

K(CON)

4

0

5

0

OUT

Y(OUT)

3

0

0

DL405 User Manual, 4th Edition

Standard RLL Instructions

OUT

Page 202

5--30

Standard RLL Instructions Comparative Boolean Instructions

The Comparative Or instruction connects a normally open comparative contact in parallel with another contact. The contact will be on when Aaaa ² Bbbb.

Or (OR)

430 440 450 IMP

DS

HPP

430 440 450

DS

HPP

B bbb

A aaa

B bbb

The Comparative Or Not instruction connects a normally open comparative contact in parallel with another contact. The contact will be on when Aaaa < Bbbb.

Or Not (ORN)

IMP

A aaa

Operand Data Type

DL430 Range

DL440 Range

DL450 Range

A/B aaa bbb aaa bbb aaa bbb

V--memory

V

All (See p. 3--40)

All (See p. 3--40)

All (See p. 3--41)

All (See p. 3--41)

All (See p. 3--42)

All (See p. 3--42)

Pointer

P

----

----

All (See p. 3--41)

All (See p. 3--41)

All (See p. 3--42)

All (See p. 3--42)

Constant

K

----

0--FFFF

----

0--FFFF

----

0--FFFF

Timer

T

0--177

0--377

0--377

Counter

CT

0--177

0--177

0--377

In the following example, when the value in V--memory location V1400 = 6045 or V1402 ² 2345, Y3 will energize. Handheld Programmer Keystrokes

DirectSOFT V1400

Y3

K6045

OUT

V1402

K2345

STR

SHFT

E

SHFT

V

K(CON)

6

0

4

5

OR

V

1

4

0

K(CON)

2

3

4

5

OUT

Y(OUT)

3

1

4

0

0

2

In the following example when the value in V--memory location V1400 = 1000 or V1402 < 2500, Y3 will energize. Handheld Programmer Keystrokes

DirectSOFT V1400

K1000

Y3

Standard RLL Instructions

OUT

V1402

K2500

DL405 User Manual, 4th Edition

STR

SHFT

E

SHFT

V

K(CON)

1

0

0

0

OR

NOT

V

1

4

K(CON)

2

5

0

0

OUT

Y(OUT)

3

1

4

0

2

0

0