The text of a manual · part 27 of 61
DL205 PLC User Manual, Volume 1 of 2: Chapter 5: RLL and Intelligent Box Instructions, pages 243 to 252
Pages 243 to 252 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 243
Chapter 5: Standard RLL Instructions - Boolean
Store Positive Differential (STRPD)
1 2 3 symbol inside the contact represents the transition). This function is sometimes called a “oneshot”. 'This contact will also close on a program-to-run transition if it is within a retentative 4 range and on before the PLC mode transition. Store Negative Differential (STRND) 5 The Store Negative Differential instruction begins a new rung or an additional branch in a rung with a 6 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 7 remains open until the next On-to-Off transition (the symbol inside the contact represents the 8 transition). Operand Data Type DL250-1 Range DL260 Range 9 aaa aaa 10 11 12 In the following example, each time X1 is makes an Off-to-On transition, Y4 will energize for 13 one scan. 14 A B In the following example, each time X1 is makes an On-to-Off transition, Y4 will energize for one scan. C D
Store Positive Differential instruction begins a 230 The new rung or an additional branch in a rung with a 240 contact. The contact closes for one CPU scan when 250-1 the state of the associated image register point makes Off-to-On transition. Thereafter, the contact 260 an remains open until the next Off-to-On transition (the
230 240 250-1 260
Aaaa
Inputs Outputs Control Relays Stage Timer Counter Global Global
DS HPP
Aaaa
A X Y C S T CT GX GY
0–777 0–777 0–1777 0–1777 0–377 0–177 – –
0–1777 0–1777 0–3777 0–1777 0–377 0–377 0–3777 0–3777
Used Used
DirectSOFT
X1
Handheld Programmer Keystrokes
Y4
OUT
DirectSOFT
X1
$
STR
SHFT
GX OUT
P
D
E
4
B
3
CV
1
ENT
ENT
Handheld Programmer Keystrokes
Y4
OUT
$
STR
GX OUT
SHFT
N TMR E
4
D
B
3
1
ENT
ENT
DL205 User Manual, 4th Edition, Rev. A
5–21
Page 244
Chapter 5: Standard RLL Instructions - Boolean
Or Positive Differential (ORPD)
The Or Positive Differential instruction logically ORs a 1 contact in parallel with another contact in a rung. The status of the contact will be open until the associated image register 2 point makes an Off-to-On transition, closing it for one CPU scan. Thereafter, it remains open until another Off-to-On transition. 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 image register
5 point makes an On-to-Off transition, closing it for one CPU scan. Thereafter, it remains open until another On-to-Off 6 transition. Operand Data Type DL250-1 Range DL260 Range 7 A aaa aaa 8 9 10 11 In the following example, Y 5 will energize whenever X1 is on, or for one CPU scan when X2 transitions from Off to On. 12 13 14 A In the following example, Y 5 will energize whenever X1 is on, or for one CPU scan when X2 B transitions from On to Off. C D 230
Aaaa
240
250-1 260
Aaaa
230 240
250-1 260
Inputs Outputs Control Relays Stage Timer Counter Global Global
X Y C S T CT GX GY
0–777 0–777 0–1777 0–1777 0–377 0–177 – –
0–1777 0–1777 0–3777 0–1777 0–377 0–377 0–3777 0–3777
DS Implied HPP Used
DirectSOFT X1
Handheld Programmer Keystrokes $
B
Y5
STR
OUT
Q
OR
X2
P
ENT
D
CV
F
5
C
2
3
ENT
ENT
Handheld Programmer Keystrokes
Y5
OUT
$
B
STR
Q
OR
X2
5–22
SHFT
GX OUT
DirectSOFT X1
1
DL205 User Manual, 4th Edition, Rev. A
GX OUT
1
SHFT
N TMR F
5
ENT
D
C
3
ENT
2
ENT
Page 245
Chapter 5: Standard RLL Instructions - Boolean
And Positive Differential (ANDPD) The And Positive Differential instruction logically
230 ANDs a normally open contact in series with another in a rung. The status of the contact will be open 240 contact until the associated image register point makes an 250-1 to-On transition, closing it for one CPU scan. 260 Thereafter, it remains open until another Off-to-On
Aaaa transition.
And Negative Differential (ANDND)
Aaaa
The And Negative Differential instruction logically 230 ANDs a normally open contact in series with another contact in a rung.The status of the contact will be open 240 until the associated image register point makes an On250-1 to-Off transition, closing it for one CPU scan. Thereafter, it remains open until another On260 to-Off transition. Operand Data Type Inputs Outputs Control Relays Stage Timer Counter Global Global
DL250-1 Range
DL260 Range
A aaa aaa
X Y C S T CT GX GY
0–777 0–777 0–1777 0–1777 0–377 0–177 – –
0–1777 0–1777 0–3777 0–1777 0–377 0–377 0–3777 0–3777
In the following example, Y5 will energize for one CPU scan whenever X1 is on and X2 transitions from Off to On. DS Implied HPP Used DirectSOFT X1
Handheld Programmer Keystrokes X2
$
B
Y5
STR
OUT
V AND
1 SHFT
P
C
CV F
GX OUT
ENT D
5
2
3
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 X1
Handheld Programmer Keystrokes X2
Y5 OUT
$
B STR
V AND GX OUT
1 SHFT
N TMR F 5
ENT D
C 3
2
ENT
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
ENT
DL205 User Manual, 4th Edition, Rev. A
5–23
Page 246
Chapter 5: Standard RLL Instructions - Boolean
Set (SET)
Optional memory range A aaa aaa SET
The Set instruction sets or turns on an image register 1 point/memory location or a consecutive range of image register points/memory locations. Once the
2 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. 3 Reset (RST) The Reset instruction resets or turns off an image 4 register point/memory location or a range of image registers points/memory locations. Once the 5 point/location is reset it is not necessary for the input to remain on. 6 Operand Data Type DL230 Range DL240 Range DL250-1 Range DL260 Range aaa aaa aaa aaa 7 8 9 10 NOTE: You cannot set inputs (X’s) that are assigned to input modules 11 In the following example when X1 is on, Y2 through Y5 will energize. 12 13 14 A In the following example when X2 is on, Y2 through Y5 will be reset or de–energized. B C D 230 240
250-1 260
Optional . Memory range A aaa aaa RST
230 240
250-1 260
A Inputs X 0–177 0–477 Outputs Y 0-177 0-477 Control Relays C 0–377 0–377 Stage S 0-377 0-777 Timer* T 0-77 0-177 Counter * CT 0-77 0-177 Global GX Global GY * Timer and counter operand data types are not valid using the Set instruction
DS HPP
0–1777 0-1777 0–3777 0-1777 0-377 0-377 0–3777 0–3777
Used Used
DirectSOFT X1
Handheld Programmer Keystrokes
Y2
Y5
SET
X2
$
B
STR
X SET
DirectSOFT
1
ENT
C
F
5
2
ENT
Handheld Programmer Keystrokes
Y2
Y5
RST
5–24
0–777 0-777 0–1777 0-1777 0-377 0-177 -
DL205 User Manual, 4th Edition, Rev. A
$
C
STR
S RST
2
C
ENT
F
2
5
ENT
Page 247
Chapter 5: Standard RLL Instructions - Boolean
Set Bit-of-Word (SETB)
230 The Set Bit-of-Word instruction sets or turns on a bit in a V-memory Once the bit is set it will remain on until it is reset using 240 location. the Reset Bit-of-Word instruction. It is not necessary for the input 250-1 controlling the Set Bit-of-Word instruction to remain on. 260 Reset Bit-of-Word (RSTB) 230 240 250-1 260
Aaaa.bb SET
A aaa.bb RST
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
DL250-1 Range
DL260 Range
A aaa aaa bb bb B See memory map BCD, 0 to 15 See memory map BCD, 0 to 15 PB See memory map BCD See memory map BCD
V-memory Pointer
In the following example when X1 turns on, bit 1 in V1400 is set to the on state. DS HPP
Used Used
DirectSOFT 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. DirectSOFT X2
B1400.1 RST
Handheld Programmer Keystrokes STR RST
2 SHFT
B
K
1
ENT V
1
4
0
0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
ENT
DL205 User Manual, 4th Edition, Rev. A
5–25
Page 248
Chapter 5: Standard RLL Instructions - Boolean
1
2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
Pause (PAUSE) The Pause instruction disables the output update on a range of outputs. The ladder program will continue to 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.
230 240 250-1 260
Operand Data Type
DL230 Range DL240 Range DL250-1 Range DL260 Range
Outputs
DS HPP
5–26
Y aaa aaa PAUSE
Y aaa aaa aaa aaa
0-177
0-477
0-777
0-1777
In the following example, when X1 is ON, Y5–Y7 will be turned OFF. The execution of the ladder program will not be affected. Used Used
DirectSOFT 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
F
H 5
7
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.
DL205 User Manual, 4th Edition, Rev. A
Page 249
Chapter 5: Standard RLL Instructions - Boolean
Comparative Boolean 230 240 250-1 260 230 240 250-1 260
Store If Equal (STRE) 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 Vaaa equals Bbbb .
Store If Not Equal (STRNE)
A/B
Pointer Constant
B bbb
A aaa
B bbb
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 does not equal Bbbb.
Operand Data Type V-memory
A aaa
DL230 Range
DL240 Range
DL250-1 Range
DL260 Range aaa aaa aaa aaa bbb bbb bbb bbb
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) K
–
0-FFFF
–
0-FFFF
–
0-FFFF
–
0-FFFF
DS Implied In the following example, when the value in V-memory location V2000 = 4933 , Y3 will HPP Used energize.
DirectSOFT V2000
Handheld Programmer Keystrokes K4933
Y3
$ STR
OUT
SHFT
E
E
J
D
D 3
A 2
9
4 GX OUT
C 4 D 3
3
A 0
A 0
0
ENT
ENT
In the following example, when the value in V-memory location V2000 =/ 5060, Y3 will energize. DirectSOFT V2000
Handheld Programmer Keystrokes K5060
Y3
SP STRN
OUT
SHFT
E
F
A D 3
A 2
G 0
5 GX OUT
C 4 A 6
0
A 0
ENT
ENT
DL205 User Manual, 4th Edition, Rev. A
A 0
0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
5–27
Page 250
Chapter 5: Standard RLL Instructions - Boolean
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
Or If Not Equal (ORNE) 3 The 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
$
STR
E
SHFT
E
F
A
4
V2002
Q
K2345
OR
C
E
D
E
DirectSOFT V2000
Y3
K2500
$
STR
D
A
2
4
5
D
0
A
0
C
2
0
ENT
ENT
3
E B
C
4
3
9
SHFT
E
C
F
A
2
DL205 User Manual, 4th Edition, Rev. A
SHFT
J
R ORN
GX OUT
5–28
C
F
A
0
Handheld Programmer Keystrokes
K3916
OUT
V2002
0
A
0
ENT
4
3
2
A
2
A
0
5
SHFT
GX OUT
C
4
1
6
0
D 3
A
2
A
0
ENT
A
0
A
0
0
ENT
C
4
5
A
2
G
ENT
A
0
C
0
2
Page 251
Chapter 5: Standard RLL Instructions - Boolean
240 250-1 260
And If Equal (ANDE)
1 2 And If Not Equal (ANDNE) A aaa B bbb
3 The And If Not Equal instruction connects a normally closed comparative contact in series with another contact. The contact will be on when Vaaa 4 does not equal 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 = 2345, Y3 will energize. 10 11 12 13 14 In the following example, when the value in V-memory location V2000 = 5000 and V2002 =/ A 2345, Y3 will energize. B C D A aaa
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.
230
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
DirectSOFT V2000
Handheld Programmer Keystrokes
K5000
V2002
K2345
Y3
$
STR
OUT
F
SHFT
E
A
A
5
0
V AND
SHFT
E
C
D
E
GX OUT
DirectSOFT V2000
A
2
A
C
4
A
F
0
A
C
0
2
ENT
5
D
A
0
0
2
4
A
0
ENT
0
0
3
2
C
4
ENT
3
Handheld Programmer Keystrokes
K5000
V2002
K2345
Y3
OUT
$
STR
F
SHFT
E
A
A
5
0
W ANDN
SHFT
E
C
D
E
2
GX OUT
C
A
0
0
D 3
A
2
F
4
5
A
0
A
0
0
ENT
C
4
3
A
2
4
A
0
C
0
2
ENT
ENT
DL205 User Manual, 4th Edition, Rev. A
5–29
Page 252
Chapter 5: Standard RLL Instructions - Boolean
Store (STR)
A aaa
B bbb
A aaa
B bbb
The Comparative Store instruction begins a new rung or 1 additional branch in a rung with a normally open comparative contact. The contact will be on when Aaaa is equal to or greater 2 than Bbbb.
Not (STRN) 3 StoreThe Comparative Store Not instruction begins a new rung or 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 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 욷 1000, Y3 will energize. 10 In the following example, when the value in V-memory location V2000 < 4050, Y3 will energize. 11 12 13 14 A B C D 230 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
DirectSOFT V2000
Handheld Programmer Keystrokes
K1000
Y3
$
STR
OUT
B
SHFT
V AND
C
A
A
A
0
1
GX OUT
DirectSOFT V2000
D
3
0
0
A
0
A
0
0
ENT
ENT
Handheld Programmer Keystrokes
K4050
Y3
SP STRN
OUT
E
SHFT
V AND
C
A
F
A
4
GX OUT
5–30
A
2
DL205 User Manual, 4th Edition, Rev. A
0
D
3
5
ENT
A
2
0
A
0
ENT
A
0
0