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

The text of a manual · part 26 of 61

DL205 PLC User Manual, Volume 1 of 2: Chapter 5: RLL and Intelligent Box Instructions, pages 233 to 242

Pages 233 to 242 of 592, from DL205 PLC User Manual, Volume 1 of 2

The original document is the PDF (13 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 PLC Direct D2-08ND3 and Koyo D2-08ND3

Page 233

Chapter 5: Standard RLL Instructions - Boolean

Store Bit-of-Word (STRB)

1 2 3 4 location. 5 Operand Data Type DL250-1 Range DL260 Range A aaa bb aaa bb 6 7 In the following Store Bit-of-Word example, when bit 12 of V-memory location V1400 is on, 8 output Y2 will energize. 9 10 11 12 13 In the following Store Not Bit-of-Word example, when bit 12 of V-memory location V1400 14 is off, output Y2 will energize. A B C D

The Store Bit-of-Word instruction begins a new rung 230 or an additional branch in a rung with a normally open 240 contact. Status of the contact will be the same state as 250-1 the bit referenced in the associated memory location. 260

Store Not Bit-of-Word (STRNB) The Store Not instruction begins a new rung or an 230 additional branch in a rung with a normally closed 240

250-1 contact. Status of the contact will be opposite the state of the bit referenced in the associated memory 260

DS HPP

Used Used

Aaaa.bb

Aaaa.bb

V-memory memory map BCD, 0 to 15 See memory map BCD, 0 to 15 B See page 3-55 page 3-56

Pointer memory map BCD, 0 to 15 See memory map BCD, 0 to 15 PB See page 3-55 page 3-56

DirectSOFT

B1400.12

Y2

OUT

Handheld Programmer Keystrokes STR

SHFT

B

K

1

2

2

ENT

OUT

V

1

4

0

0

4

0

0

ENT

DirectSOFT

B1400.12

Y2

OUT

Handheld Programmer Keystrokes STRN

OUT

SHFT

B

V

K

1

2

2

ENT

1

ENT

DL205 User Manual, 4th Edition, Rev. A

5–11

Page 234

Chapter 5: Standard RLL Instructions - Boolean

Or (OR)

The Or instruction logically ors a normally open 1 contact in parallel with another contact in a rung. The

Aaaa status of the contact will be the same state as the 2 associated image register point or memory location.

(ORN) 3 Or Not The Or Not instruction logically ors a normally closed contact in parallel with another contact in a rung. The Aaaa status of the contact will be opposite the state of the 4 associated image register point or memory location.

5 Operand Data Type DL230 Range DL240 Range DL250-1 Range DL260 Range aaa aaa aaa aaa 6 7 8 9 10 In the following Or example, when input X1 or X2 is on, output Y5 will energize. 11 12 13 14 In the following Or Not example, when input X1 is on or X2 is off, output Y5 will energize. A B C D 230 240

250-1 260

230 240

250-1 260

A X Y C S T CT SP GX GY

Inputs Outputs Control Relays Stage Timer Counter Special Relay Global Global

DS Implied HPP Used

0-177 0-177 0–377 0–377 0–77 0–77 0-117, 540-577 -

0-477 0-477 0–377 0–777 0–177 0–177 0-137, 540-617 -

DirectSOFT X1

0-777 0-777 0–1777 0–1777 0–377 0–177 0-137, 540-717 -

Handheld Programmer Keystrokes

Y5

$

B

STR

OUT

Q

C

GX OUT

DirectSOFT

5–12

DL205 User Manual, 4th Edition, Rev. A

2

F

5

ENT ENT ENT

Handheld Programmer Keystrokes

Y5

OUT

X2

1

OR

X2

X1

0-1777 0-1777 0–3777 0–1777 0–377 0–377 0-137, 540-717 0-3777 0-3777

$

B

STR

1

R ORN

C

GX OUT

F

2

5

ENT ENT ENT

Page 235

Chapter 5: Standard RLL Instructions - Boolean

Or Bit-of-Word (ORB)

240 250-1 260 230

230 240 250-1 260

1 2 3 Or Not Bit-of-Word (ORNB) The Or Not Bit-of-Word instruction logically ors a 4 normally closed Bit-of-Word contact in parallel with another contact in a rung. Status of the contact will be opposite the state of the bit referenced in the associated 5 memory location. Operand Data Type DL250-1 Range DL260 Range 6 aaa bb bb 7 8 In the following Or Bit-of-Word example, when input X1 or bit 7 of V1400 is on, output Y7 will energize. 9 10 11 12 13 In the following Or Not Bit-of-Word example, when input X1 is on or bit 7 of V1400 is off, 14 output Y7 will energize. A B C D The Or Bit-of-Word instruction logically ors a normally open Bit-of-Word contact in parallel with another contact in a rung. Status of the contact will be the same state as the bit referenced in the associated memory location.

Aaaa.bb

Aaaa.bb

A

DS

Implied

HPP

Used aaa

V-memory memory map BCD, 0 to 15 See memory map BCD, 0 to 15 B See page 3-55 page 3-56

Pointer memory map BCD, 0 to 15 See memory map BCD, 0 to 15 PB See page 3-55 page 3-56

X1

Y7

OUT

B1400.7

Handheld Programmer Keystrokes STR OR

1

ENT

SHFT

B

K

7

ENT

7

ENT

OUT

V

1

4

V

1

4

0

0

DirectSOFT

X1

Y7

OUT

B1400.7

Handheld Programmer Keystrokes STR

ORN

OUT

1

ENT

SHFT

B

K

7

ENT

7

ENT

0

DL205 User Manual, 4th Edition, Rev. A

0

5–13

Page 236

Chapter 5: Standard RLL Instructions - Boolean

And (AND)

The And instruction logically ands a normally open 1 contact in series with another contact in a rung. The status of the contact will be the same state as the 2 associated image register point or memory location.

And Not (ANDN) 3 The And Not instruction logically ands a normally closed contact in series with another contact in a rung. The status of the contact will be opposite the state of 4 the associated image register point or memory location.

5 Operand Data Type DL230 Range DL240 Range DL250-1 DL260 Range aaa aaa aaa aaa 6 7 8 9 10 In the following And example, when input X1 and X2 are on output Y5 will energize. 11 12 13 14 In the following And Not example, when input X1 is on and X2 is off output Y5 will energize. A B C D Aaaa

230 240

250-1 260

Aaaa

230 240

250-1 260

A X Y C S T CT SP GX GY

Inputs Outputs Control Relays Stage Timer Counter Special Relay Global Global

DS Implied HPP Used

0–177 0–177 0–377 0–377 0–77 0–77 0-117, 540-577 -

0–477 0–477 0–377 0–777 0–177 0–177 0-137, 540-617 -

DirectSOFT X1

X2

Y5

DirectSOFT

$

B

STR

1

V AND

C

GX OUT

F

2

5

ENT ENT ENT

Handheld Programmer Keystrokes

X2

Y5

OUT

5–14

0–1777 0–1777 0–3777 0–1777 0–377 0–377 0-137, 540-717 0-3777 0-3777

Handheld Programmer Keystrokes

OUT

X1

0–777 0–777 0–1777 0–1777 0–377 0–177 0-137, 540-717 -

DL205 User Manual, 4th Edition, Rev. A

$

B

1

STR

W ANDN

C

GX OUT

F

2

5

ENT ENT ENT

Page 237

Chapter 5: Standard RLL Instructions - Boolean

AND Bit-of-Word (ANDB) The And Bit-of-Word instruction logically ands a 230 normally open contact in series with another contact in 240 a rung. The status of the contact will be the same state 250-1 as the bit referenced in the associated memory location. 260

And Not Bit-of-Word (ANDNB) The And Not Bit-of-Word instruction logically ands a 230 normally closed contact in series with another contact in 240 a rung. The status of the contact will be opposite the 250-1 state of the bit referenced in the associated memory 260 location. Operand Data Type

Aaaa.bb

Aaaa.bb

DL250-1 Range

DL260 Range aaa bb aaa bb

V-memory memory map B See page 3-55

BCD, 0 to 15

BCD, 0 to 15

Pointer memory map PB See page 3-55

BCD

See memory map page 3-56 See memory map page 3-56

A

BCD

In the following And Bit-of-Word example, when input X1 and bit 4 of V1400 is on output DS Implied HPP Used

DirectSOFT X1

B1400.4

Y5 OUT

Handheld Programmer Keystrokes STR

1

AND

ENT

SHFT

B

K

4

ENT

5

ENT

OUT

V

1

4

0

0

Y5 will energize. In the following And Not Bit-of-Word example, when input X1 is on and bit 4 of V1400 is off output Y5 will energize. DirectSOFT X1

Y5

B1400.4

OUT

Handheld Programmer Keystrokes STR ANDN

OUT

1

ENT

SHFT

B

K

4

ENT

V

5

ENT

1

4

0

0

DL205 User Manual, 4th Edition, Rev. A

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

5–15

Page 238

Chapter 5: Standard RLL Instructions - Boolean

And Store (ANDSTR)

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

In the following And Store example, the branch consisting of contacts X2, X3, and X4 have 3 been anded with the branch consisting of contact X1. 4 5 6 7 8 9 (ORSTR) 1 10 Or Store The Or Store instruction logically ors two branches OUT of a rung in parallel. Both branches must begin with the Store instruction. 2 11

12 In the following Or Store example, the branch consisting of X1 and X2 have been ored with the branch consisting of X3 and X4. 13 14 A B C D 230 240

250-1 260

DS Implied HPP Used

DirectSOFT X1

Handheld Programmer Keystrokes

X2

X3

Y5

$

B

STR

OUT

1

$

C

STR

X4

2

V AND

D

Q

E

3 4

OR

L ANDST

ENT ENT ENT ENT

ENT

GX OUT

F

5

ENT

230 240

250-1 260

DS Implied HPP Used

DirectSOFT X1

Handheld Programmer Keystrokes

X2

Y5

$

X3

X4

B

STR

OUT

1

V AND

C

$

D

2

3

STR

V AND

M ORST GX OUT

5–16

DL205 User Manual, 4th Edition, Rev. A

E

4

ENT ENT ENT ENT

ENT

F

5

ENT

Page 239

Chapter 5: Standard RLL - Boolean

Out (OUT)

230 240 250-1 260

The Out instruction reflects the status of the rung (on/off ) and outputs the discrete (on/off ) state to the specified image register point or memory Aaaa location. Multiple Out instructions referencing the OUT 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 DL230 Range DL240 Range DL250-1 Range DL260 Range

Inputs Outputs Control Relays Global Global

A aaa aaa aaa aaa

X Y C GX GY

0–177 0–177 0–377 -

0–477 0–477 0–377 -

0–777 0–777 0–1777 -

0–1777 0–1777 0–3777 0–3777 0–3777

In the following Out example, when input X1 is on, output Y2 and Y5 will energize. DS HPP

Used Used

DirectSOFT

Handheld Programmer Keystrokes

X1

Y2 OUT Y5 OUT

$

B STR

1

GX OUT

C

GX OUT

F

2 5

ENT ENT ENT

In the following Out example the program contains two Out instructions using the same location (Y10). The physical output of Y10 is ultimately controlled by the last rung of logic referencing Y10. X1 will override the Y10 output being controlled by X0. To avoid this situation, multiple outputs using the same location should not be used in programming. If you need to have an output controlled by multiple inputs see the OROUT instruction on page 5–19. X0

Y10 OUT

X1

Y10 OUT

DL205 User Manual, 4th Edition, Rev. A

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

5–17

Page 240

Chapter 5: Standard RLL Instructions - Boolean

1 2

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

Out Bit-of-Word (OUTB) 230 240 250-1 260

DS HPP

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

DL250-1 Range A aaa memory map B See page 3-55 memory map PB See page 3-55

V-memory Pointer

DL260 Range bb aaa bb

BCD, 0 to 15

See memory map page 3-56 See memory map page 3-56

BCD, 0 to 15

BCD

BCD

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. Used Used

DirectSOFT 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

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

DL205 User Manual, 4th Edition, Rev. A

Page 241

Chapter 5: Standard RLL Instructions - Boolean

Or Out (OROUT)

230 240 250-1 260

1 2 3 Operand Data Type DL230 Range DL240 Range DL250-1 Range DL260 Range A aaa aaa aaa aaa 4 5 6 In the following example, when X1 or X4 is on, Y2 will energize. 7 8 9 10 11 Not (NOT) The Not instruction inverts the status of the rung at 12 the point of the instruction. 13 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. 14 A B C D 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.

Inputs Outputs Control Relays Global Global DS HPP

Used Used

X Y C GX GY

0–177 0-177 0–377 -

DirectSOFT X1

0–477 0-477 0–377 -

0–777 0-777 0–1777 -

$

B

STR

O INST#

1

D

F

3

5

$

E

STR

Y2

OR OUT

230 240 250-1 260 DS HPP

Used Used

O INST#

DirectSOFT X1

0–1777 0-1777 0–3777 0–3777 0–3777

Handheld Programmer Keystrokes

Y2

OR OUT

X4

A aaa OR OUT

4

D

F

3

5

ENT ENT

ENT

C

ENT

C

2

ENT

ENT ENT

2

ENT

Handheld Programmer Keystrokes

Y2

$

B

1

STR

OUT

SHFT

GX OUT

N TMR

ENT

O INST#

T MLR

C

ENT

2

DL205 User Manual, 4th Edition, Rev. A

ENT

5–19

Page 242

Chapter 5: Standard RLL Instructions - Boolean

1

2

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

Positive Differential (PD) The Positive Differential instruction is typically known as a one shot. When the input logic produces an off to on transition, the output will energize for one CPU scan.

230 240 250-1

A aaa PD

260

Operand Data Type

Inputs Outputs Control Relays

DS HPP

5–20

DL230 Range DL240 Range DL250-1 Range DL260 Range A aaa aaa aaa aaa

X Y C

0–177 0–177 0–377

0–477 0–477 0–377

0–777 0–777 0–1777

0–1777 0–1777 0–3777

In the following example, every time X1 makes an off to on transition, C0 will energize for one scan. Used Used DirectSOFT X1

Handheld Programmer Keystrokes C0

$

B STR

PD SHFT

1 P CV

SHFT

ENT D

A 3

0

ENT

NOTE: To generate a “one–shot” pulse on an on–to–off transition, place a NOT instruction immediately before the PD instruction. The DL250–1 and DL260 CPUs support the STRND instruction.

DL205 User Manual, 4th Edition, Rev. A