The text of a manual · part 26 of 60
DL205 PLC User Manual, Volume 1 of 2, pages 251 to 260
Pages 251 to 260 of 598
The original document is the PDF (12 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 D2-04TD1, AutomationDirect D2-08TD2, AutomationDirect D2-16ND3-2, AutomationDirect D2-32ND3, Konnect-It D2-04TD1, Koyo D2-04TD1, Konnect-It D2-08TD2, Koyo D2-08TD2, and 5 more models
Page 251
Chapter 5: Standard RLL Instructions
Comparative Boolean
1 A aaa B bbb The Store If Equal instruction begins a new rung or
2 additional branch in a rung with a normally open comparative contact. The contact will be on when Vaaa equals Bbbb . 3
Store If Not Equal (STRNE) A aaa B bbb 4 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 Vaaa 5 does not equal Bbbb.
6 Operand Data DL230 Range DL240 Range DL250-1 Range DL260 Range Type 7 A/B aaa bbb aaa bbb aaa bbb aaa bbb 8 9 10 In the following example, when the value in V-memory location V2000 = 4933 , Y3 will 11 energize. 12 13 14 In the following example, when the value in V-memory location V2000 =/ 5060, Y3 will energize. A B C D Store If Equal (STRE)
230 240
250-1 260
230 240
250-1 260
All. (See All. (See All. (See All. (See All. (See All. (See All. (See All. (See V memory map memory map memory map memory map memory map memory map memory map memory map page 3-53) page 3-53) page 3-54) page 3-54) page 3-54) page 3-55) page 3-56) page 3-56) All. (See All. (See All. (See P – – – memory map – memory map – memory map page 3-54) page 3-55) page 3-56)
V-memory Pointer
Constant
K
–
0-FFFF
–
0-FFFF
–
0-FFFF
–
0-FFFF
DS Implied HPP Used
Handheld Programmer Keystrokes
DirectSOFT V2000
K4933
Y3
OUT
$
STR
SHFT
E
E
J
4
GX OUT
9
3
D
3
D
2
3
A
0
A
0
A
0
ENT
ENT
Handheld Programmer Keystrokes
DirectSOFT V2000
D
C
4
K5060
Y3
OUT
SP STRN
GX OUT
SHFT
E
F
A
5
D
C
4
0 3
G
6
A
2
0
A
0
A
0
A
0
ENT
ENT
DL205 User Manual, 4th Edition, Rev. D
5-27
Page 252
Chapter 5: Standard RLL Instructions
Or If Equal (ORE)
The Or If Equal instruction connects a normally open 1 comparative contact in parallel with another contact.
A aaa B bbb The contact will be on when Vaaa equals Bbbb.
2 Not Equal (ORNE) 3 Or IfThe Or If Not Equal instruction connects a normally closed comparative contact in parallel with another
A aaa B bbb 4 contact. The contact will be on when Vaaa does not equal Bbbb. 5 Data DL230 Range DL240 Range DL250-1 Range DL260 Range Type 6 A/B aaa bbb aaa bbb aaa bbb aaa bbb 7 8 9 In the following example, when the value in V-memory location V2000 = 4500 or V2202 = 2345, Y3 will energize. 10 11 12 13 14 In the following example, when the value in V-memory location V2000 = 3916 or V2002 =/ A 2500, Y3 will energize. B C D 230 240
250-1 260
230 240
250-1 260
All. (See All. (See All. (See All. (See All. (See All. (See All. (See All. (See V memory map memory map memory map memory map memory map memory map memory map memory map page 3-53) page 3-53) page 3-54) page 3-54) page 3-55) page 3-55) page 3-56) page 3-56) All. (See All. (See All. (See P – – – memory map – memory map – memory map page 3-54) page 3-55) page 3-56)
V-memory Pointer
Constant
K
–
0-FFFF
–
0-FFFF
–
0-FFFF
–
0-FFFF
DS Implied HPP Used
DirectSOFT V2000
Handheld Programmer Keystrokes
K4500
Y3
OUT
V2002
$
STR
E
Q
K2345
C
4
OR 2
SHFT
E
F
A
5
SHFT
E
D
E
3
GX OUT
K3916
Y3
OUT
V2002
K2500
$
STR
D
3
DL205 User Manual, 4th Edition, Rev. D
SHFT
E
J
B
9
R ORN
SHFT
E
C
F
A
2
GX OUT
5-28
0
A
0
4
3
F
5
A
0
A
0
A
0
ENT
C
4
2
2
A
0
A
0
C
2
ENT
ENT
Handheld Programmer Keystrokes
DirectSOFT V2000
D
C
4
5
D
C
4
1
G
6
0
3
A
0
ENT
A
0
A
0
A
0
ENT
C
4
2
2
ENT
A
0
A
0
C
2
Page 253
Chapter 5: Standard RLL Instructions
And If Equal (ANDE)
1 2 And If Not Equal (ANDNE) The And If Not Equal instruction connects a normally
3 closed comparative contact in series with another contact.
A aaa B bbb The contact will be on when Vaaa does not equal Bbbb
4
In the following example, when the value in V-memory location V2000 = 5000 and V2002 = 2345, Y3 will energize. 5 Operand DL230 Range DL240 Range DL250-1 Range DL260 Range Data Type 6 A/B aaa bbb aaa bbb aaa bbb aaa bbb 7 8 9 10 In the following example, when the value in V-memory location V2000 = 5000 and V2002 =/ 2345, Y3 will energize. 11 12 13 14 A B C D The And If Equal instruction connects a normally open comparative contact in series with another contact. The contact will be on when Vaaa equals Bbbb.
240 250-1 260 230
A aaa
B bbb
230 240
250-1 260
V-memory
Pointer
Constant
All. (See All. (See All. (See All. (See All. (See All. (See All. (See All. (See V memory map memory map memory map memory map memory map memory map memory map memory map page 3-53) page 3-53) page 3-54) page 3-54) page 3-55) page 3-55) page 3-56) page 3-56) All V-memory. All V-memory. All V-memory. (See memory (See memory (See memory P – – – – – map page map page map page 3-54) 3-55) 3-56)
K
–
0-FFFF
–
0-FFFF
–
0-FFFF
–
0-FFFF
DS Implied HPP Used
Handheld Programmer Keystrokes
DirectSOFT V2000
K5000
V2002
K2345
$
Y3
OUT
SHFT
E
A
A
STR
F
5
0
V AND
SHFT
E
C
D
E
2
3
GX OUT
0
A
C
4
F
A
0
A
0
A
0
ENT
0
4
D
2
2
A
0
A
0
C
2
ENT
5
ENT
3
Handheld Programmer Keystrokes
DirectSOFT V2000
C
4
K5000
V2002
K2345
Y3
OUT
$
STR
F
5
SHFT
E
A
A
0
W ANDN
SHFT
E
C
D
E
2
GX OUT
3
D
C
4
0
A
0
4
3
F
5
A
0
A
0
A
0
ENT
C
4
2
2
A
0
A
0
C
2
ENT
ENT
DL205 User Manual, 4th Edition, Rev. D
5-29
Page 254
Chapter 5: Standard RLL Instructions
Store (STR)
The Comparative Store instruction begins a new rung or additional 1 branch in a rung with a normally open comparative contact. The contact will be on when Aaaa is equal to or greater than Bbbb. 2
Store Not (STRN) The Comparative Store Not instruction begins a new rung or 3 additional branch in a rung with a normally open comparative contact. The contact will be on when Aaaa is less than Bbbb.
4
5 Operand DL230 Range DL240 Range DL250-1 Range DL260 Range Data Type A/B aaa bbb aaa bbb aaa bbb aaa bbb 6 7 8 9 In the following example, when the value in V-memory location V2000 M 1000, Y3 will energize. 10 11 12 13 In the following example, when the value in V-memory location V2000 < 4050, Y3 will 14 energize. A B C D 230
A aaa
B bbb
A aaa
B bbb
240
250-1 260
230 240
250-1 260
V-memory
Pointer
Constant
All. (See All. (See All. (See All. (See All. (See All. (See All. (See All. (See V memory map memory map memory map memory map memory map memory map memory map memory map page 3-53) page 3-53) page 3-54) page 3-54) page 3-55) page 3-55) page 3-56) page 3-56) All V-memory. All V-memory. All V-memory. (See memory (See memory (See memory P – – – – – map page map page map page 3-54) 3-55) 3-56) K – 0-FFFF – 0-FFFF – 0-FFFF – 0-FFFF
DS Implied HPP Used
Handheld Programmer Keystrokes
DirectSOFT V2000
K1000
Y3
OUT
$
STR
B
1
GX OUT
K4050
Y3
OUT
C
A
A
A
D
SP STRN
E
GX OUT
5-30
V AND
0
3
0
2 0
A
0
A
0
A
0
ENT
ENT
Handheld Programmer Keystrokes
DirectSOFT V2000
SHFT
DL205 User Manual, 4th Edition, Rev. D
4
SHFT
V AND
C
A
F
A
D
0
3
5
ENT
2
0
A
0
ENT
A
0
A
0
Page 255
Chapter 5: Standard RLL Instructions
Or (OR)
1 2 Or Not (ORN) 3
The Comparative Or Not instruction connects a normally open comparative contact in parallel with another contact.
4 The contact will be on when Aaaa is less than Bbbb.
Operand 5 DL230 Range DL240 Range DL250-1 Range DL260 Range Data Type A/B aaa bbb aaa bbb aaa bbb aaa bbb 6 7 8 9 In the following example, when the value in V-memory location V2000 = 6045 or V2002 M 2345, Y3 will energize. 10 11 12 13 14 In the following example when the value in V-memory location V2000 = 1000 or V2002 < 2500, Y3 will energize. A B C D The Comparative Or instruction connects a normally open comparative contact in parallel with another contact. The contact will be on when Aaaa is equal to or greater than Bbbb.
230 240 250-1 260
A aaa
B bbb
A aaa
B bbb
230 240
250-1 260
V-memory
Pointer
Constant
All. (See All. (See All. (See All. (See All. (See All. (See All. (See All. (See V memory map memory map memory map memory map memory map memory map memory map memory map page 3-53) page 3-53) page 3-54) page 3-54) page 3-55) page 3-55) page 3-56) page 3-56) All V-memory. All V-memory. All V-memory. (See memory (See memory (See memory P – – – – – map page map page map page 3-54) 3-55) 3-56) K – 0-FFFF – 0-FFFF – 0-FFFF – 0-FFFF
DS Implied HPP Used
Handheld Programmer Keystrokes
DirectSOFT V2000
K6045
Y3
OUT
V2002
$
STR
G Q
K2345
C
6
SHFT
E
A
E
0
OR 2
D
3
GX OUT
K1000
Y3
OUT
V2002
4
F
5
2
V AND
C
E
F
ENT
D
5
0
A
0
A
0
ENT
SHFT 4
A
2
A
0
A
0
C
2
ENT
3
Handheld Programmer Keystrokes
DirectSOFT V2000
C
4
K2500
$
STR
B
1
SHFT
E
A
A
0
R ORN C
2
GX OUT
F
5
C
4
0
A
0
2
SHFT
V AND
C
A
ENT
0
3
0
0
A
0
A
0
ENT
A
D
A
2
A
0
A
0
C
2
ENT
DL205 User Manual, 4th Edition, Rev. D
5-31
Page 256
Chapter 5: Standard RLL Instructions
And (AND)
The Comparative And instruction connects a normally 1 open comparative contact in series with another contact.
The contact will be on when Aaaa is equal to or greater than Bbbb. 2
(ANDN) 3 AndTheNotComparative And Not instruction connects a normally open comparative contact in series with another contact. 4 The contact will be on when Aaaa < Bbbb.
5 Operand DL230 Range DL240 Range DL250-1 Range DL260 Range Data Type A/B aaa bbb aaa bbb aaa bbb aaa bbb 6 7 8 9 In the following example, when the value in V-memory location V2000 = 5000, and V2002 M 2345, Y3 will energize. 10 11 12 13 14 In the following example, when the value in V-memory location V2000 = 7000 and A V2002 < 2500, Y3 will energize. B C D 230
A aaa
B bbb
A aaa
B bbb
240
250-1 260
230 240
250-1 260
V-memory
Pointer
Constant
All (See All (See All (See All (See All (See All (See All (See All (See V memory map memory map memory map memory map memory map memory map memory map memory map page 3-53) page 3-53) page 3-54) page 3-54) page 3-55) page 3-55) page 3-56) page 3-56) All V-memory All V-memory All V-memory (See memory (See memory (See memory P map page map page map page 3-54) 3-55) 3-56) K 0-FFFF 0-FFFF 0-FFFF 0-FFFF
DS Implied HPP Used
Handheld Programmer Keystrokes
DirectSOFT V2000
K5000
V2002
K2345
Y3
OUT
$
STR
F
5
SHFT
E
A
A
0
V AND C
2
D
3
GX OUT
K7000
V2002
K2500
Y3
OUT
2
0
V AND
C
E
F
ENT
4
A
0
A
0
A
0
ENT
SHFT
D
$
STR
H
7
SHFT
E
A
A
0
W ANDN C
2
GX OUT
5-32
0
A
5
2
A
0
A
0
C
2
ENT
3
Handheld Programmer Keystrokes
DirectSOFT V2000
C
4
DL205 User Manual, 4th Edition, Rev. D
F
5
C
4
0
A
0
2
SHFT
V AND
C
A
ENT
0
3
0
ENT
0
A
0
A
0
ENT
A
D
A
2
A
0
A
0
C
2
Page 257
Chapter 5: Standard RLL Instructions
Immediate Instructions
1 The Store Immediate instruction begins a new rung or 2 additional branch in a rung. The status of the contact will be the same as the status of the associated input point at the time the instruction is executed. The image register 3 is not updated. 4 Store Not Immediate (STRNI) The Store Not Immediate instruction begins a new rung
5 or additional branch in a rung. The status of the contact will be opposite the status of the associated input point at the time the instruction is executed. The image register is
6 not updated. 7 Operand Data Type DL230 Range DL240 Range DL250-1 Range DL260 Range aaa aaa aaa aaa 8 In the following example, when X1 is on, Y2 will energize. 9 10 11 12 13 In the following example, when X1 is off, Y2 will energize. 14 A B C D Store Immediate (STRI)
230
X aaa
240
250-1 260
X aaa
230 240
250-1 260
Inputs
X
0–177
0–477
0–777
0–1777
DS Implied HPP Used
Handheld Programmer Keystrokes
DirectSOFT
X1
$
Y2
OUT
SHFT
GX OUT
I
B
8
C
2
1
ENT
ENT
Handheld Programmer Keystrokes
DirectSOFT
X1
STR
Y2
OUT
SP STRN GX OUT
SHFT
I
C
B
8
2
1
ENT
ENT
DL205 User Manual, 4th Edition, Rev. D
5-33
Page 258
Chapter 5: Standard RLL Instructions
Or Immediate (ORI)
The Or Immediate connects two contacts in parallel. The 1 status of the contact will be the same as the status of the associated input point at the time the instruction is executed. The image register is not updated. 2
Immediate (ORNI) 3 Or Not The Or Not Immediate connects two contacts in parallel.
The status of the contact will be opposite the status of the 4 associated input point at the time the instruction is executed. The image register is not updated.
5 Operand Data Type DL230 Range DL240 Range DL250-1 Range DL260 Range aaa aaa aaa aaa 6 In the following example, when X1 or X2 is on, Y5 will energize. 7 8 9 10 11 12 In the following example, when X1 is on or X2 is off, Y5 will energize. 13 14 A B C D 230 240
X aaa
250-1 260
230 240
X aaa
250-1 260
Inputs
X
0–177
0–477
0–777
0–1777
DS Implied HPP Used
Handheld Programmer Keystrokes
DirectSOFT
X1
Y5
$
OUT
Q
X2
B
STR OR
SHFT
GX OUT
Y5
OUT
X2
$
DL205 User Manual, 4th Edition, Rev. D
B
STR
R ORN GX OUT
5-34
F
1
ENT
C
8
5
2
ENT
ENT
Handheld Programmer Keystrokes
DirectSOFT
X1
I
SHFT
I
F
1
ENT
C
8
5
ENT
2
ENT
Page 259
Chapter 5: Standard RLL Instructions
And Immediate (ANDI)
240 250-1 260 230
230 240 250-1 260
Inputs
1 2 And Not Immediate (ANDNI) 3 The And Not Immediate connects two contacts in series. The status of the contact will be opposite the status of the 4 associated input point at the time the instruction is executed. The image register is not updated. 5 Operand Data Type DL230 Range DL240 Range DL250-1 Range DL260 Range aaa aaa aaa aaa 6 In the following example, when X1 and X2 are on, Y5 will energize. 7 8 9 10 11 12 In the following example, when X1 is on and X2 is off, Y5 will energize. 13 14 A B C D The And Immediate connects two contacts in series. The status of the contact will be the same as the status of the associated input point at the time the instruction is executed. The image register is not updated.
X aaa
X aaa
X
0–177
0–477
0–777
0–1777
DS Implied HPP Used
Handheld Programmer Keystrokes
DirectSOFT
X1
X2
Y5
OUT
$
B
STR
V AND
SHFT
GX OUT
F
1
ENT
C
8
5
2
ENT
ENT
Handheld Programmer Keystrokes
DirectSOFT
X1
I
X2
Y5
OUT
$
B
STR
W ANDN GX OUT
SHFT
I
F
1
ENT
C
8
5
2
ENT
ENT
DL205 User Manual, 4th Edition, Rev. D
5-35
Page 260
Chapter 5: Standard RLL Instructions
Out Immediate (OUTI)
The Out Immediate instruction reflects the status of the 1 rung (on/off) and outputs the discrete (on/off) status to the specified module output point and the image register at the time the instruction is executed. If multiple Out Immediate 2 instructions referencing the same discrete point are used, it is possible for the module output status to change multiple 3 times in a CPU scan. See Or Out Immediate. Or Out Immediate (OROUTI) 4 The Or Out Immediate instruction has been designed to use more than one rung of discrete logic to control a 5 single output. Multiple Or Out Immediate instructions referencing the same output coil may be used, since all 6 contacts controlling the output are ORed together. If the status of any rung is on at the time the instruction is executed, the output will also be on. 7 Operand Data Type DL230 Range DL240 Range DL250-1 Range DL260 Range 8 aaa aaa aaa aaa 9 In the following example, when X1 is on, output point Y2 on the output module will turn on. For instruction entry on the Handheld Programmer, you can use the instruction number 10 (#350) as shown, or type each letter of the command. 11 12 13 14 In the following example, when X1 or X4 is on, Y2 will energize. A B C D 230
Y aaa OUTI
240
250-1 260
230
Y aaa OROUTI
240
250-1 260
Outputs
DS HPP
Used Used
Y
0–177
0–477
DirectSOFT
X1
0–777
Handheld Programmer Keystrokes
Y2
OUTI
$
B
STR
O INST#
D C
Y2
OR OUTI
X4
$
A
6
ENT
0
ENT
ENT
2
B
STR
O INST#
D C
Y2
OR OUTI
$
2
F
D
3
2
1
5
ENT
A
0
ENT
ENT
ENT
ENT
ENT
E
C
DL205 User Manual, 4th Edition, Rev. D
3
STR
O INST#
5-36
G
3
ENT
1
Handheld Programmer Keystrokes
DirectSOFT
X1
0–1777
F
4
5
ENT
ENT
A
0