The text of a manual · part 23 of 68
DL405 User Manual: Chapter 5: Standard RLL Instructions, pages 183 to 192
Pages 183 to 192 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 183
Standard RLL Instructions Boolean Instructions
Store Bit-of-Word (STRB)
430 440 450
DS
HPP
Store Not Bit-of-Word (STRNB)
430 440 450
DS
HPP
The Store Bit-of-Word instruction begins a new rung or an additional branch in a rung with a normally open contact. Status of the contact will be the same state as the bit referenced in the associated memory location.
Aaaa.bb
The Store Not instruction begins a new rung or an additional branch in a rung with a normally closed contact. Status of the contact will be opposite the state of the bit referenced in the associated memory location.
Aaaa.bb
Operand Data Type
5--11
DL450 Range A aaa bb
V--memory
B
All (See p. 3--42)
BCD, 0 to 15
Pointer
PB
All (See p. 3--42)
BCD, 0 to 15
In the following Store Bit-of-Word example, when bit 12 of V-memory location V1400 is on, output Y2 will energize. DirectSOFT B1400.12
Y2 OUT
Handheld Programmer Keystrokes STR
SHFT
B
K(con)
1
2
OUT
Y(OUT)
2
SHFT
V
1
4
0
0
In the following Store Not Bit-of-Word example, when bit 12 of V-memory location V1400 is off, output Y2 will energize. DirectSOFT B1400.12
Y2 OUT
STR
STR
SHFT
K(con)
1
2
OUT
Y(OUT)
2
B
SHFT
V
1
4
0
0
DL405 User Manual, 4th Edition
Standard RLL Instructions
Handheld Programmer Keystrokes
Page 184
5--12
Standard RLL Instructions Boolean Instructions
Or (OR)
430 440 450 IMP
DS
HPP
Or Not (ORN)
430 440 450 IMP
DS
HPP
The Or instruction logically ors a normally open contact in parallel with another contact in a rung. The status of the contact will be the same state as the associated image register point or memory location.
Aaaa
The Or Not instruction logically ors a normally closed contact in parallel with another contact in a rung. The status of the contact will be opposite the state of the associated image register point or memory location.
Operand Data Type
DL430 Range
Aaaa
DL440 Range
DL450 Range
A aaa aaa aaa
X
0--477
0--477
0--1777
Outputs
Y
0--477
0--477
0--1777
Control Relays
C
0--737
0--1777
0--3777
Stage
S
0--577
0--1777
0--1777
Timer
T
0--177
0--377
0--377
Counter
CT
0--177
0--177
0--377
Special Relay
SP
0--137, 320--617
0--137 320--717
0--137, 320--717
Global
GX
0--777
0--1777
0--1777
Global
GY
--
--
0--1777
Inputs
In the following Or example, when input X1 or X2 is on, output Y5 will energize. Handheld Programmer Keystrokes
DirectSOFT X1
Y5
STR
X(IN)
1
OUT
OR
X(IN)
2
OUT
Y(OUT)
5
X2
In the following Or Not example, when input X1 is on or X2 is off, output Y5 will energize. Handheld Programmer Keystrokes
DirectSOFT
Standard RLL Instructions
X1
Y5 OUT
X2
DL405 User Manual, 4th Edition
STR
X(IN)
1
OR
NOT
X(IN)
OUT
Y(OUT)
5
2
Page 185
Standard RLL Instructions Boolean Instructions
Or Bit-of-Word (ORB)
430 440 450 IMP
DS
HPP
Or Not Bit-of-Word (ORNB)
430 440 450 IMP
DS
HPP
The Or Bit-of-Word instruction logically ors a normally open 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
The Or Not Bit-of-Word instruction logically ors a normally closed 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 memory location.
Operand Data Type
5--13
Aaaa.bb
DL450 Range A aaa bb
V--memory
B
All (See p. 3--42)
BCD, 0 to 15
Pointer
PB
All (See p. 3--42)
BCD
In the following Or Bit-of-Word example, when input X1 or bit 7 of V1400 is on, output Y5 will energize. DirectSOFT X1
Y7 OUT
B1400.7 Handheld Programmer Keystrokes STR
X(IN)
1
OR
SHFT
B
K(con)
7
OUT
Y(OUT)
SHFT
V
1
4
0
0
5
In the following Or Bit-of-Word example, when input X1 or bit 7 of V1400 is off, output Y5 will energize. DirectSOFT X1
Y7 OUT
Handheld Programmer Keystrokes STR
X(IN)
1 N
OR
SHFT
K(con)
7
OUT
Y(OUT)
B
SHFT
V
1
4
0
0
5
DL405 User Manual, 4th Edition
Standard RLL Instructions
B1400.7
Page 186
5--14
Standard RLL Instructions Boolean Instructions
And (AND)
430 440 450 IMP
DS
HPP
And Not (ANDN)
430 440 450 IMP
DS
HPP
The And instruction logically ands a normally open contact in series with another contact in a rung. The status of the contact will be the same state as the associated image register point or memory location.
Aaaa
The And Not Bit-of-Word 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 the associated image register point or memory location. Operand Data Type
Aaaa
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
Stage
S
0--577
0--1777
0--1777
Timer
T
0--177
0--377
0--377
Counter
CT
0--177
0--177
0--377
Special Relay
SP
0--137, 320--617
0--137 320--717
0--137, 320--717
Global
GX
0--777
0--1777
0--1777
Global
GY
--
--
0--1777
In the following And example, when inputs X1 and X2 are on output Y5 will energize. Handheld Programmer Keystrokes
DirectSOFT X1
X2
Y5
STR
OUT
X(IN)
1
AND
X(IN)
2
OUT
Y(OUT)
5
In the following And Not example, when input X1 is on and X2 is off output Y5 will energize. Handheld Programmer Keystrokes
DirectSOFT X1
X2
Y5
Standard RLL Instructions
OUT
DL405 User Manual, 4th Edition
STR
X(IN)
1
AND
NOT
X(IN)
OUT
Y(OUT)
5
2
Page 187
Standard RLL Instructions Boolean Instructions
And Bit-of-Word (ANDB)
430 440 450 IMP
DS
HPP
And Not Bit-of-Word (ANDNB)
430 440 450 IMP
DS
HPP
The And Bit-of-Word instruction logically ands a normally open contact in series with another contact in a rung. The status of the contact will be the same state as the bit referenced in the associated memory location.
Aaaa.bb
The And Not Bit-of-Word 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 the bit referenced in the associated memory location.
Aaaa.bb
Operand Data Type
5--15
DL450 Range A aaa bb
V--memory
B
All (See p. 3--42)
BCD, 0 to 15
Pointer
PB
All (See p. 3--42)
BCD
In the following And Bit-of-Word example, when input X1 and bit 4 of V1400 is on output Y5 will energize. DirectSOFT X1
B1400.4
Y5 OUT
Handheld Programmer Keystrokes STR
X(IN)
1 B
AND
SHFT
K(con)
4
OUT
Y(OUT)
SHFT
V
1
4
0
0
5
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
Handheld Programmer Keystrokes STR
X(IN)
1
AND
SHFT
N
K(con)
4
OUT
Y(OUT)
B
SHFT
V
1
4
0
0
5
DL405 User Manual, 4th Edition
Standard RLL Instructions
OUT
Page 188
5--16
Standard RLL Instructions Boolean Instructions
And Store (ANDSTR)
430 440 450 IMP
DS
HPP
Or Store (ORSTR)
430 440 450 IMP
DS
HPP
The And Store instruction logically ands two branches of a rung in series. Both branches must begin with the Store instruction.
OUT
The Or Store instruction logically ors two branches of a rung in parallel. Both branches must begin with the Store instruction.
OUT
In the following And Store example, the branch consisting of contacts X2, X3, and X4 have been ANDed with the branch consisting of contact X1. Handheld Programmer Keystrokes
DirectSOFT X1
X2
X3
Y5 OUT
X4
STR
X(IN)
1
STR
X(IN)
2
AND
X(IN)
3
OR
X(IN)
4
AND
STR
OUT
Y(OUT)
5
In the following Or Store example, the branch consisting of X1 and X2 have been ORed with the branch consisting of X3 and X4. Handheld Programmer Keystrokes
DirectSOFT X1
Standard RLL Instructions
X3
DL405 User Manual, 4th Edition
X2
X4
Y5
STR
X(IN)
1
OUT
AND
X(IN)
2
STR
X(IN)
3
AND
X(IN)
4
OR
STR
OUT
Y(OUT)
5
Page 189
Standard RLL Instructions Boolean Instructions
Out (OUT)
430 440 450
DS
HPP
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 location. Multiple Out instructions referencing the same discrete location should not be used since only the last Out instruction in the program will control the physical output point. Operand Data Type
DL430 Range
Aaaa OUT
DL440 Range
DL450 Range
A aaa bb bb
X
0--477
0--477
0--1777
Outputs
Y
0--477
0--477
0--1777
Control Relays
C
0--737
0--1777
0--3777
Global I/O
GX
0--777
0--1777
0--2777 (GX + GY)
Inputs
5--17
In the following Out example, when input X1 is on, output Y2 and Y5 will energize. Handheld Programmer Keystrokes
DirectSOFT X1
Y2 OUT Y5
STR
X(IN)
1
OUT
Y(OUT)
2
OUT
Y(OUT)
5
OUT
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. X0
Y10 OUT
X1
Y10 OUT
Standard RLL Instructions
DL405 User Manual, 4th Edition
Page 190
5--18
Standard RLL Instructions Boolean Instructions
Out Bit-of-Word (OUTB)
430 440 450
DS
HPP
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
DL450 Range A aaa bb
V--memory
B
All (See p. 3--42)
BCD, 0 to 15
Pointer
PB
All (See p. 3--42)
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. DirectSOFT X1
B1400.3 OUT B1401.6 OUT
Handheld Programmer Keystrokes STR
X(IN)
1
OUT
SHFT
B
SHFT
V
1
4
0
0
K(con)
3
OUT
SHFT
B
SHFT
V
1
4
0
1
K(con)
6
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
V1400
K3
Standard RLL Instructions
OUT
X1
V1400
K3 OUT
DL405 User Manual, 4th Edition
Page 191
Standard RLL Instructions Boolean Instructions
Or Out (OROUT)
430 440 450
DS
HPP
The Or Out instruction has been designed to use more than 1 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 ORed together. If the status of any rung is on, the output will also be on. Operand Data Type
DL430 Range
A aaa OROUT
DL440 Range
DL450 Range
A aaa aaa aaa
X
0--477
0--477
0--1777
Outputs
Y
0--477
0--477
0--1777
Control Relays
C
0--737
0--1777
0--3777
Global I/O
GX
0--777
0--1777
0--2777 (GX + GY)
Inputs
5--19
In the following example, when X1 or X4 is on, Y2 will energize. Handheld Programmer Keystrokes
DirectSOFT X1
Y2 OR OUT
X4
STR
X(IN)
1
OR
OUT
Y(OUT)
STR
X(IN)
4
OR
OUT
Y(OUT)
2
2
Y2 OR OUT
Not (NOT)
The Not instruction inverts the status of the rung at the point of the instruction.
430 440 450
DS
HPP
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. Handheld Programmer Keystrokes
DirectSOFT X1
Y2 OUT
X(IN)
1
N
O
OUT
Y(OUT)
2
T
NOTE: DirectSOFT Release 1.1i and later supports the use of the NOT instruction. The above example rung is merely intended to show the visual representation of the NOT instruction. The rung cannot be created or displayed in DirectSOFT versions earlier than 1.1i.
DL405 User Manual, 4th Edition
Standard RLL Instructions
STR SHFT
Page 192
5--20
Standard RLL Instructions Boolean Instructions
Pause (PAUSE)
430 440 450
DS
HPP
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 module. Operand Data Type
Outputs
Y aaa aaa PAUSE
DL430 Range
DL440 Range
A aaa aaa
DL450 Range aaa
Y
0--477
0--477
0--1777
In the following example, when X1 is ON, Y10--Y17 will be turned OFF at the output module. The execution of the ladder program will not be affected. DirectSOFT
Handheld Programmer Keystrokes
X1
Y10
Y17
PAUSE
Positive Differential (PD)
430 440 450
DS
HPP
STR
X(IN)
1
SHFT
P
A
U
SHFT
Y(OUT)
1
0
Y(OUT)
1
7
S
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. Thereafter, it remains off until its input makes another Off-to-On transition. Operand Data Type
DL430 Range
A aaa PD
DL440 Range
DL450 Range
A aaa aaa aaa
X
0--477
0--477
0--1777
Outputs
Y
0--477
0--477
0--1777
Control Relays
C
0--737
0--1777
0--3777
Inputs
E
Standard RLL Instructions
In the following example, every time X1 is makes an Off-to-On transition, C0 will energize for one scan. Handheld Programmer Keystrokes
DirectSOFT X1
C0 PD
STR
X(IN)
1
SHFT
P
D
SHFT
C(CR)
0
Note that you can place a “NOT” instruction immediately before the PD instruction to generate a “one-shot” pulse on an on-to-off transition.
DL405 User Manual, 4th Edition