The text of a manual · part 36 of 41
DL305 User Manual: Chapter 12: RLLPLUS Instruction Set, pages 304 to 311
Pages 304 to 311 of 357, from DL305 User Manual
The original document is the PDF (3.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 PLC Direct D3-08TD1, PLC Direct D3-16NA, Koyo D3-08TD1 and Koyo D3-16NA
Page 304
RLL PLUS Instruction Set Stage Instructions
The And instruction logically ands a normally open stage contact in series with another contact in a rung. The status of the contact will be the same state as the associated stage memory location.
And Not Stage (AND NOT SG) DL330P Only
The And Not instruction logically ands a normally closed stage contact in series with another contact in a rung. The status of the contact will be opposite the state of the associated stage memory location.
Stages
SG
SG aaa
D3--330 Range
D3--340 Range aaaa aaaa aaaa
--
--
0--177
RLLPLUS Instructions
Data Type
SG aaa
D3--330P Range
In the following And example, when input 000 and stage contact 001 is on output 010 will energize. DirectSOFT Display 000
Handheld Programmer Keystrokes SG 001
010 OUT
STR AND OUT
SHF SG SHF
0 SHF 1
ENT 1 0
ENT ENT
In the following And Not example, when input 000 is on and stage contact 001 is off output 010 will energize. DirectSOFT Display 000
Handheld Programmer Keystrokes SG 001
010 OUT
Instruction Set
And Stage (AND Stage) DL330P Only
12--9
STR AND OUT
SHF NOT SHF
0 SG 1
ENT SHF 0
1 ENT
ENT
DL305 User Manual, Rev. D
Page 305
RLLPLUS Instructions
Instruction Set
12--10
RLL PLUS Instruction Set Stage Instructions
Set (SET) DL330P Only
The Set instruction sets or turns on a output or a consecutive range of outputs. Once the output 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. The Set instruction is sometimes known as a latch. The Reset instruction is used to reset the output.
Reset (RST) DL330P Only
The Reset instruction resets or turns off an output or a consecutive range of outputs. Once the output is reset it is not necessary for the input to remain on. The Reset instruction is sometimes known as an unlatch instruction. Data Type
Optional memory range aaa aaa SET
Optional memory range aaa aaa RST
D3--330 Range
D3--340 Range aaaa aaaa
D3--330P Range aaaa
Outputs
----
----
000--177 700--767
Control Relays
----
----
160 -- 167 170 -- 174 200 -- 277
In the following Set example, when input location 005 is on, outputs 20--37 will be set on. DirectSOFT Display 005
Handheld Programmer Keystrokes 020
037
SET
STR SET SHF
SHF SHF 3
5 2 7
ENT 0 ENT
ENT
In the following Reset example, when input location 006 is on, outputs 020--37 will be reset to the off state. DirectSOFT Display 006
Handheld Programmer Keystrokes 020 037 RST
DL305 User Manual, Rev. D
STR RST SHF
SHF SHF 3
6 2 7
ENT 0 ENT
ENT
Page 306
RLL PLUS Instruction Set Stage Instructions
Reset Stage (RST SG) DL330P Only
The Reset instruction resets or turns off a stage or a consecutive range of stages. Once the stage(s) is reset it is not necessary for the input to remain on.
Data Type
Stage
Optional memory range SG aaa aaa SET SG
Optional memory range SG aaa aaa RST SG
D3--330 Range
D3--340 Range aaa aaa aaa
----
----
000--177
RLLPLUS Instructions
The Set Stage instruction sets or turns on a stage or a consecutive range of stages. Once the stage is set it will remain on until a transition is made to another stage or the stage is reset using the Reset Stage instruction. It is not necessary for the input controlling the Set Stage instruction to remain on.
D3--330P Range
In the following Set Stage example, when input 000 is on, stages 30--47 will be set on. DirectSOFT Display 000
Handheld Programmer Keystrokes 030 047 SETSG
STR SET SHF
SHF SG 4
0 SHF 7
ENT 3 ENT
0
ENT
In the following Reset Stage example, when input 003 is on, stages 30--47 will be reset off. DirectSOFT Display 003
Handheld Programmer Keystrokes 030 047 RSTSG
Instruction Set
Set Stage (SET SG) DL330P Only
12--11
STR RST SHF
SHF SG 4
3 SHF 7
ENT 3 ENT
0
ENT
DL305 User Manual, Rev. D
Page 307
12--12
RLL PLUS Instruction Set Comparative Boolean Instructions
RLLPLUS Instructions
Instruction Set
Comparative Boolean Instructions Store If Greater Than or Equal To Timer (STR TMR) DL330P Only
The Store If Greater Than or Equal To instruction begins a new rung or additional branch in a rung with a normally open comparative timer contact. The contact will be on if the specified timer T aaa ≥ B bbbb.
Store Not IF Greater Than Timer (STR NOT TMR) DL330P Only
The Store Not If Greater Than instruction begins a new rung or additional branch in a rung with a normally closed comparative timer contact. The contact will be on if the specified timer T aaa < B bbbb. Operand Data Type
D3--330 Range
T aaa
B bbbb
T aaa
B bbbb
D3--340 Range
D3--330P Range
B aaa bbbb aaa bbbb aaa bbbb
Timers
T
----
----
----
----
600--677
----
Data registers
R
----
----
----
----
----
400--577
Constant
K
----
----
----
----
----
0--9999
In the following Store If Greater Than or Equal To example, when T602 ≥ the value 1538 the contact will turn on and output 014 will energize. DirectSOFT Display T602
K1538
Handheld Programmer Keystrokes 014 OUT
STR SHF
TMR 1
SHF 5
6 3
0 8
OUT
SHF
1
4
ENT
2 ENT
ENT
In the following Store Not If Greater Than example, when T602 < the value in R404 the contact will turn on and output 020 will energize. DirectSOFT Display T602
R404
Handheld Programmer Keystrokes 020 OUT
DL305 User Manual, Rev. D
STR R
NOT 4
TMR 0
SHF 4
6 ENT
OUT
SHF
2
0
ENT
0
4
ENT
Page 308
12--13
RLL PLUS Instruction Set Comparative Boolean Instructions
Store Not If Greater Than Counter (STR NOT CNT) DL330P Only
The Store Not If Greater Than instruction begins a new rung or additional branch in a rung with a normally closed comparative counter contact. The contact will be on if the specified counter CT aaa < B bbbb. Operand Data Type
D3--330 Range
CTaaa
B bbbb
CT aaa
B bbbb
D3--340 Range
D3--330P Range
B aaa bbbb aaa bbbb aaa
Counters
CT
----
----
----
----
600--677 bbbb ----
Data registers
R
----
----
----
----
----
400--577
Constant
K
----
----
----
----
----
0--9999
In the following Store If Greater Than or Equal To example, when CT602 ≥ the value in R404 the contact will turn on and output 014 will energize. DirectSOFT Display CT602
R404
Handheld Programmer Keystrokes 014 OUT
STR R
CNT 4
SHF 0
6 4
0 ENT
OUT
SHF
1
4
ENT
2
ENT
In the following Store Not If Greater Than example, when CT602 < the constant value 4620 the contact will turn on and output 020 will energize. DirectSOFT Display CT602
K4620
Handheld Programmer Keystrokes 020 OUT
STR SHF
NOT 4
CNT 6
SHF 2
6 0
OUT
SHF
2
0
ENT
0 ENT
DL305 User Manual, Rev. D
2
ENT
RLLPLUS Instructions
The Store If Greater Than or Equal To instruction begins a new rung or additional branch in a rung with a normally open comparative counter contact. The contact will be on if the specified counter CT aaa ≥ B bbbb.
Instruction Set
Store If Greater Than or Equal To Counter (STR CNT) DL330P Only
Page 309
RLLPLUS Instructions
Instruction Set
12--14
RLL PLUS Instruction Set Comparative Boolean Instructions
Or If Greater Than or Equal To Timer (OR TMR) DL330P Only
The Or If Greater Than or Equal To instruction connects a normally open comparative timer contact in parallel with another contact. The contact will be on if the specified timer T aaa ≥ B bbbb.
Or Not If Greater Than Timer (OR NOT TMR) DL330P Only
The Or Not If Greater Than instruction connects a normally closed comparative timer contact in parallel with another contact. The contact will be on if the specified timer T aaa < B bbbb. Operand Data Type
D3--330 Range
T aaa
B bbbb
T aaa
B bbbb
D3--340 Range
D3--330P Range
B aaa bbbb aaa bbbb aaa
Timers
T
----
----
----
----
600--677 bbbb ----
Data registers
R
----
----
----
----
----
400--577
Constant
K
----
----
----
----
----
0--9999
In the following Or If Greater Than or Equal To example, when input contact 001 is on or T602 ≥ the value 1234 the contact will turn on and output 014 will energize. DirectSOFT Display
Handheld Programmer Keystrokes 014
001
OUT T602
K1234
STR OR SHF
SHF TMR 1
1 SHF 2
ENT 6 3
0 4
OUT
SHF
1
4
ENT
2 ENT
ENT
In the following Or Not If Greater Than example, when input contact 003 is on or T602 the value in R404 the contact will turn on and output 020 will energize. DirectSOFT Display
Handheld Programmer Keystrokes 020
003
OUT T602
R404
DL305 User Manual, Rev. D
STR OR R
SHF NOT 4
3 TMR 0
ENT SHF 4
6 ENT
OUT
SHF
2
0
ENT
0
2
ENT
Page 310
12--15
RLL PLUS Instruction Set Comparative Boolean Instructions
The Or If Greater Than or Equal To instruction connects a normally open comparative counter contact in parallel with another contact. The contact will be on if the specified counter CT aaa ≥ B bbbb.
Or Not If Greater Than Counter (OR NOT CNT) DL330P Only
The Or Not If Greater Than instruction connects a normally closed comparative counter contact in parallel with another contact. The contact will be on if the specified counter CT aaa < B bbbb.
CT aaa
D3--330 Range
B bbbb
B bbbb
D3--340 Range
D3--330P Range
B aaa bbbb aaa bbbb aaa
Counters
CT
----
----
----
----
600--677 bbbb ----
Data registers
R
----
----
----
----
----
400--577
Constant
K
----
----
----
----
----
0--9999
In the following Or If Greater Than or Equal To example, when input contact 007 is on or CT602 ≥ the value in R404 the contact will turn on and output 014 will energize. DirectSOFT Display
Handheld Programmer Keystrokes 014
007
OUT CT602
R404
STR OR R
SHF CNT 4
7 SHF 0
ENT 6 4
0 ENT
OUT
SHF
1
4
ENT
2
ENT
In the following Or Not If Greater Than example, when input contact 003 is on or CT602 < the constant value 4620 the contact will turn on and output 020 will energize. DirectSOFT Display
Handheld Programmer Keystrokes 020
003
OUT CT602
K4620
STR OR SHF
SHF NOT 4
3 CNT 6
ENT SHF 2
6 0
OUT
SHF
2
0
ENT
0 ENT
DL305 User Manual, Rev. D
2
ENT
RLLPLUS Instructions
Operand Data Type
CT aaa
Instruction Set
Or If Greater Than or Equal To Counter (OR CNT) DL330P Only
Page 311
RLLPLUS Instructions
Instruction Set
12--16
RLL PLUS Instruction Set Comparative Boolean Instructions
And If Greater Than or Equal To Timer (AND TMR) DL330P Only
The And If Greater Than or Equal To instruction connects a normally open comparative timer contact in series with another contact. The contact will be on if the specified timer T aaa ≥ B bbbb.
And Not If Greater Than Timer (AND NOT TMR) DL330P Only
The And Not If Greater Than instruction connects a normally closed comparative timer contact in series with another contact. The contact will be on if the specified timer T aaa < B bbbb. Operand Data Type
D3--330 Range
T aaa
B bbbb
T aaa
B bbbb
D3--340 Range
D3--330P Range
B aaa bbbb aaa bbbb aaa
Timers
T
----
----
----
----
600--677 bbbb ----
Data registers
R
----
----
----
----
----
400--577
Constant
K
----
----
----
----
----
0--9999
In the following And If Greater Than or Equal To example, when input contact 001 is on and T602 ≥ the value 1234 the contact will turn on and output 014 will energize. DirectSOFT Display 001
Handheld Programmer Keystrokes T602
K1234
014 OUT
STR AND SHF
SHF TMR 1
1 SHF 2
ENT 6 3
0 4
OUT
SHF
1
4
ENT
2 ENT
ENT
In the following Store Not If Greater Than example, when input contact 003 is on and T602 < the value in R404 the contact will turn on and output 020 will energize. DirectSOFT Display 003
Handheld Programmer Keystrokes T602
R404
020 OUT
DL305 User Manual, Rev. D
STR AND R
SHF NOT 4
3 TMR 0
ENT SHF 4
6 ENT
OUT
SHF
2
0
ENT
0
2
ENT