Beruflich Dokumente
Kultur Dokumente
5.1 5.3
BINARY LOGIC DIAGRAMS FOR PROCESS OPTIMIZATION OF LOGIC CIRCUITS 898
OPERATIONS 880 Optimization Building Blocks 898
1. Purpose 880 Graphic Logic Functions 900
2. Scope 880 Ladder Diagrams from Logic Diagrams 901
3. Use of Symbols 880 Optimized Logic Circuit Construction 901
4. Symbols 881 Logic Circuit Synthesis 902
Appendix A: General Application Example 888 Logic Simplification with Boolean Algebra 903
A1. Introduction 888 Logic Simplification through Logic Maps 903
A2. Simplified Flow Diagram 888 Negative vs. Positive Logic Usage 904
A3. Word Description 888 Summary 904
A4. Logic Diagram 890 Bibliography 905
Appendix B: Complex Time-Element Example 891
B.1 Word Description 891 5.4
Appendix C: Loss of Power Supply PLCs: PROGRAMMABLE LOGIC CONTROLLERS 906
for Memory 891
Bibliography 892 Introduction 907
History 907
PLC Sizes 909
5.2
Nano PLCs 909
LADDER DIAGRAMS 893
Basic PLC Components 909
Introduction 893 Central Processor Unit (Real Time) 910
Ladder Diagram Symbols 893 Memory Unit 910
Developing a Ladder Diagram 894 I/O Systems 912
Automatic Mode of Operation 895 PLC Power Supply 915
Summary 895 Additional PLC Components 915
Ladder Diagram Analysis 895 Communications Modules 915
Start-Up and Shutdown 896 Remote I/O 915
Dynamic Breaking of a Motor 896 Peer-to-Peer Communications 916
Fail-Safe Design 897 Peripheral Devices 917
Documentation 897 Local Operator Interface 917
Conclusions 897 Human-Machine Interface 918
Bibliography 897 Printers 919
877
J. E. JAMISON (2005)
Reprinted by permission. Copyright 1976, Instrument Society of America. From ANSI/ISA-S5.2-1976 (R 1992),
Binary Logic Diagrams for Process Operations, reaffirmed July 13, 1992. Also, permission was granted by
ISA for inclusion of the latest thinking on binary logic, memory, and time functions from Draft 4 of ISA Draft
1
5.01.01 Instrumentation Symbols and Identification, Copyright 2000 ISA, which now includes the previous S5.2.
880
3.6 A summary of the status of an operating system may cases, it may be necessary to enter power supply or loss of
be put in the diagram wherever it is deemed useful as a power supply as logic inputs to a system or to individual
reference point or landmark in the sequence. logic elements. For memories, the consideration of power
3.7 There may be misunderstanding of binary logic supply may be handled in this manner or as shown in sections
statements involving devices that are not recognizable as 1012 in Table 5.1a.
inherently having only two specific alternative states. For By the same token, it may be necessary to consider the
example, if it is stated that a valve is not closed, this could effect of restoration of power supply.
mean either (a) that the valve is open fully, or (b) that the Logic diagrams do not necessarily have to cover the effect
valve is simply not closed, namely, that it may be in any of logic power supplies on process systems but may do so
position from almost closed to wide open. To aid accurate for thoroughness.
communication between writer and reader of the logic dia- 3.9 It is recommended, for clarity, that a single time-
gram, the diagram should be interpreted literally. Therefore, function symbol, as appropriate, be used to represent each
possibility (b) is the correct one. time function in its entirety. Though not incorrect, the repre-
If a valve is an open-close valve, then, to avoid misun- sentation of a complex or uncommon time function by using
derstanding, it is necessary to do one of the following: a time-function symbol in immediate sequence with a second
time-function symbol or with a NOT symbol should be
1. Develop the logic diagram in such a way that it says avoided (see Table 5.1a).
exactly what is intended. If the valve is intended to be 3.10 Process instrument symbols and designations follow
open, then it should be so stated and not be stated as ANSI/ISA Standard S5.1-1984 (formerly American National
being not closed. Standards Institute Standard Y32.20-1975), Instrumentation
2. Have a separate note specifying that the valve always Symbols and Designations. However, these symbols are
assumes either the closed or the open position. included for illustrative purposes only, and are not part of
Standard S5.2.
By contrast, a device such as a motor-driven pump is
3.11 If a drawing, or set of drawings, uses graphic sym-
either operating or stopped, barring some special situations.
bols that are similar or identical to one another in shape or
To say that the pump is not operating usually clearly denotes
configuration and that have different meanings because they
that it has stopped.
are taken from different standards, then adequate steps shall
The following definitions apply to devices that have open,
be taken to avoid misinterpretation of the symbols used.
closed, or intermediate positions. The positions stated are
These steps may be to use caution notes or reference notes,
nominal to the extent that there are differential-gap and dead
comparison charts that illustrate and define the conflicting
band in the instrument that senses the position of the device.
symbols, or other suitable means. This requirement is espe-
Open position: a position that is 100% open. cially critical if the graphic symbols used, being from differ-
Not-open position: a position that is less than 100% open. ent disciplines, represent devices, conductors, flow lines, or
A device that is not open may or may not be closed. signals whose symbols, if misinterpreted, may result in dan-
Closed position: a position that is 0% open. ger to personnel or damage to equipment.
Not-closed position: a position that is more than 0%
open. A device that is not closed may or may not 4. SYMBOLS
be open.
Intermediate position: a SPECIFIED position that is The symbols for diagramming binary logic are defined in
greater than 0% and less than 100% open. Table 5.1a and are the latest thinking of the ISA SP5.1 sub-
Not-at-intermediate position: a position that is either committee:
above or below the SPECIFIED intermediate position. The symbols in Table 5.1a are never used in piping and
instrument diagrams (P&IDs) and are used to help document
For a logic system having an input statement that is
and diagram logic control designs and narratives. The present
derived inferentially or indirectly, a condition may arise that
Standard ISA S5.2 (ANSI/ISA-S5.2-1976(R1992) is now
will lead to an erroneous conclusion. For example, an
being revised and rolled into the new ANSI/ISA-5.01.01 stan-
assumption that flow exists because a pump motor is ener-
dard as proposed in the current (as of this writing) Draft 4.
gized may be false because of a closed valve, a broken shaft,
Symbols, Truth Tables, Definitions, and Graphs used here in
or other mishap. Factual statements, that is, statements based
Section 5.1 are in accordance with Draft 4 and are very
on positive measurements that a certain condition specifically
different from S5.2. These are given here to illustrate to the
exists or does not exist, are generally more reliable.
reader the latest thinking in this area, including expanded
3.8 A process operation may be affected by loss of the
3 timing functions. Application information and examples on
power supply to memories and to other logic elements. In
order to take such operating eventualities into account, it may
therefore be necessary to consider the effect of loss of power 3
The term power supply covers the energizing medium, whether it be
to any logic component or to the entire logic system. In such electric, pneumatic, or other.
TABLE 5.1a
Instrument and Control System Functional Diagramming Symbols-Binary Logic, Memory, and Time Functions (Proposed for the next
revision of ISA S5.1 (now ANSI/ISA-5.01.01) at the time of this writing)
Symbol Definition
01 1. AND gate.
A 2. Output true only if all inputs are true.
B A
C N O
D
x
A B C x O 1
1 0 0 0 0 0 A 0
2 1 0 0 0 0
3 0 1 0 0 0 B
4 0 0 1 0 0 C
5 0 0 0 1 0
6 1 1 0 0 0 X
7 1 0 1 0 0
8 1 0 0 1 0
9 0 1 1 0 0 O
10 0 1 0 1 0 t
11 0 0 1 1 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
12 1 1 1 0 0
13 1 1 0 1 0
14 1 0 1 1 0
15 0 1 1 1 0
16 1 1 1 1 1
02 1. OR gate.
A 2. Output true if any input is true.
B
C OR O
x
A B C x O 1
1 0 0 0 0 0 A 0
2 1 0 0 0 1
3 0 1 0 0 1 B
4 0 0 1 0 1 C
5 0 0 0 1 1
6 1 1 0 0 1 X
7 1 0 1 0 1
8 1 0 0 1 1
9 0 1 1 0 1 O
10 0 1 0 1 1 t
11 0 0 1 1 1 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
12 1 1 1 0 1
13 1 1 0 1 1
14 1 0 1 1 1
15 0 1 1 1 1
16 1 1 1 1 1
A B C x O 1
1 0 0 0 0 0 A 0
2 1 0 0 0 0
3 0 1 0 0 0 B
4 0 0 1 0 0 C
5 0 0 0 1 0
6 1 1 0 0 1 X
7 1 0 1 0 1
8 1 0 0 1 1
9 0 1 1 0 1 O
10 0 1 0 1 1 t
11 0 0 1 1 1 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
12 1 1 1 0 1
13 1 1 0 1 1
14 1 0 1 1 1
15 0 1 1 1 1
16 1 1 1 1 1
A B C x O 1
1 0 0 0 0 0 A 0
2 1 0 0 0 0
3 0 1 0 0 0 B
4 0 0 1 0 0 C
5 0 0 0 1 0
6 1 1 0 0 0 X
7 1 0 1 0 0
8 1 0 0 1 0
9 0 1 1 0 0 O
10 0 1 0 1 0 t
11 0 0 1 1 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
12 1 1 1 0 1
13 1 1 0 1 1
14 1 0 1 1 1
15 0 1 1 1 1
16 1 1 1 1 1
A B C x O 1
1 0 0 0 0 0 A 0
2 1 0 0 0 1
3 0 1 0 0 1 B
4 0 0 1 0 1 C
5 0 0 0 1 1
6 1 1 0 0 1 X
7 1 0 1 0 1
8 1 0 0 1 1
9 0 1 1 0 1 O
10 0 1 0 1 1 t
11 0 0 1 1 1 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
12 1 1 1 0 0
13 1 1 0 1 0
14 1 0 1 1 0
15 0 1 1 1 0
16 1 1 1 1 0
A B C x O 1
1 0 0 0 0 0 A 0
2 1 0 0 0 1
3 0 1 0 0 1 B
4 0 0 1 0 1 C
5 0 0 0 1 1
6 1 1 0 0 0 X
7 1 0 1 0 0
8 1 0 0 1 0
9 0 1 1 0 0 O
10 0 1 0 1 0 t
11 0 0 1 1 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
12 1 1 1 0 0
13 1 1 0 1 0
14 1 0 1 1 0
15 0 1 1 1 0
16 1 1 1 1 0
A B C x O 1
1 0 0 0 0 0 A 0
2 1 0 0 0 0
3 0 1 0 0 0 B
4 0 0 1 0 0 C
5 0 0 0 1 0
6 1 1 0 0 1 X
7 1 0 1 0 1
8 1 0 0 1 1
9 0 1 1 0 1 O
10 0 1 0 1 1 t
11 0 0 1 1 1 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
12 1 1 1 0 0
13 1 1 0 1 0
14 1 0 1 1 0
15 0 1 1 1 0
16 1 1 1 1 0
A B C x O 1
1 0 0 0 0 0 A 0
2 1 0 0 0 1
3 0 1 0 0 1 B
4 0 0 1 0 1 C
5 0 0 0 1 1
6 1 1 0 0 0 X
7 1 0 1 0 0
8 1 0 0 1 0
9 0 1 1 0 0 O
10 0 1 0 1 0 t
11 0 0 1 1 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
12 1 1 1 0 1
13 1 1 0 1 1
14 1 0 1 1 1
15 0 1 1 1 1
16 1 1 1 1 1
09 1. NOT gate.
A NOT O 2. Output false if input true.
3. Output true if input false.
A O 1
1 0 A 0
0 1
1
O 0
t
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
10 1. Basic memory.
A S C 2. Outputs C and D are always opposite.
B R D 3. If input A equals 1 then output C equals 1 and D equals 0.
4. If input A changes to 0 output C remains 1 until input B equals 1, then C equals 1 and D equals 0.
5. If input B equals 1 then output D equals 1 and C equals 0.
6. If input B changes to 0 output D remains 1 until input A equals 1, then D equals 1 and C equals
0.
7. If inputs A and B are simultaneously equal to 1 then outputs C and D change state.
A B C D 1
1 0 0 0 1 A 0
2 1 0 1 0
3 0 0 1 0 B
4 0 1 0 1
C
5 0 0 0 1
6 1 1 1 0 D
7 0 0 1 0
8 1 1 0 1 t
1 2 3 4 5 6 7 8
A B C D 1
1 0 0 0 1 A 0
2 1 0 1 0
3 0 0 1 0 B
4 0 1 0 1
C
5 0 0 0 1
6 1 1 1 0 D
7 0 0 1 0
8 1 1 1 0 t
1 2 3 4 5 6 7 8
A B C D 1
1 0 0 0 1 A 0
2 1 0 1 0
3 0 0 1 0 B
4 0 1 0 1
C
5 0 0 0 1
6 1 1 0 1 D
7 0 0 0 1
8 1 1 0 1 t
1 2 3 4 5 6 7 8
NONE 1
I 0
O
t t
NONE
1
I 0
O
t t
15 1. On time delay.
2. Output O changes from 0 to 1 after input I changes from 0 to 1 and I remains 1 for
I t GT O
prescribed time duration t.
3. Output O remains 1 until:
R
a. Input I changes to 0.
b. Reset R changes to 1.
NONE 1
I 0
O
t t t
R
t
O
t t t
R
t
the use of the binary symbols given in Appendices A, B, and A2. Simplified Flow Diagram
C are direct extracts from and utilize the current Standard
ANSI/ISA-S5.2-1976(R1992). Figure 5.1b provides the flow sheet representation of the logic
Binary logic switching and memory functions are used involved in a tank filling operation. A written explanation of
in analog or sequential control schemes. In truth tables and the various symbols follows:
graphs, Logic One (1) is true and Logic Zero (0) is
A3. Word Description
false.
A3.1 Pump Start Feed is pumped into either tank A or tank
B. The pump may be operated manually or automatically,
APPENDIX A: GENERAL APPLICATION EXAMPLE selected manually on a local maintained output select switch,
HS-7, which has three positions: ON, OFF, and AUTO. When
A1. Introduction the pump is operating, red pilot light L-8A is on; when not
operating, green pilot light L-8B is on. Once started, the pump
This example uses a representative process whose instru- continues to operate until a stopping command exists or until
ments are denoted by the symbols of ANSI/ISA-S5.1-1984 the control power supply is lost.
(R 1992) (ANSI Y32.20-1975). The process equipment The pump may be operated manually at any time provided
symbols are included only to illustrate applications of that no trouble condition exists: The suction pressure must not
instrumentation symbol. The example is not a part of be low; the seal water pressure must not be low; and the pump
Standard S5.2. motor must not be overloaded and its starter must be reset.
I I
1 1
I I
Tank A 1 Tank B 1
HS
HS I 2
7 1
PAL
6
FIG. 5.1b
Tank filling operation-simplified flow diagram.
In order to operate the pump automatically, all the fol- To start the pump automatically, either control valve HV-1
lowing conditions must be met: or HV-2 must be open and the other control valve must be
A3.1.1 Board-mounted electric momentary-contact hand closed, depending on whether tank A or tank B is to be filled.
switches, HS-1 and HS-2, start the filling operation for tanks A.3.1.2 The pump suction pressure must be above a
A and B, respectively. Each switch has two positions, START given value, as signaled by pressure switch PSL-5.
and STOP. START de-energizes the associated solenoid valves, A.3.1.3 If valve HV-1 is open to permit pumping into
HY-1 and HY-2. De-energizing a solenoid valve causes it to tank A, the tank level must be below a given value, as signaled
go to the fail-safe position, i.e., to vent. This depressurizes the by level switch LSH-3, which also actuates a board-mounted
pneumatic actuator of the associated control valves, HV-1 and high-level pilot light, LLH-3. Similarly, high-level switch,
HV-2. Depressurizing a control valve causes it to go to the LSH-4, permits pumping into tank B, if not actuated, and
fail-safe position, i.e., to open. The control valves have asso- actuates pilot light LLH-4, if actuated.
ciated open-position switches, ZSH-1 and ZSH2, and closed- A.3.1.4 Pump seal water pressure must be adequate, as
position switches, ZSL-1 and ZSL-2. indicated on board-mounted receiver gage, PI-6. This is a non-
The STOP position of switches HS-1 and HS-2 causes interlocked requirement that depends on the operators attention
the opposite actions to occur so that the solenoid valves are before the operation starts. Pressure switch, PSL-6, behind the
energized, the control valve actuators are pressurized, and board, actuates the board-mounted low-pressure alarm, PAL-6.
the control valves close. A.3.1.5 The pump drive motor must not be overloaded
If starting circuit power is lost, the starting memory is and its starter must be reset.
lost and the filling operation stops. The command to stop A.3.2 Pump Stop The pump stops if any of the following
filling can override the command to start filling. conditions exists:
A.3.2.1 While pumping into a tank, its control valve A.3.2.6 The pump is stopped manually by HS-7.
leaves the fully open position, or the valve of the other tank A.3.2.7 The pump seal water pressure is low. This con-
leaves its fully closed position, provided that the pump is on dition is not interlocked and requires manual intervention to
automatic control. stop the pump.
A.3.2.2 The tank selected for filling becomes full, pro-
vided that the pump is on automatic control.
A.3.2.3 The pump suction pressure is continuously low A4. Logic Diagram
for 5 seconds. The equivalent of the flow sheet representation shown in
A.3.2.4 The pump drive motor is overloaded. It is imma- Figure 5.1b is the logic diagram provided in Figure 5.1c.
terial to the process logic whether or not the memory of the Comments on the logic diagram for Interlock 1 described
pump motor overload is retained on loss of power in this in Figure 5.1c:
system because the maintained memory that operates the pump
is defined as losing memory on loss of power, and this by itself 1. The diagram may be simplified by using general notes
will cause the pump to stop. However, an existing motor- (GN) for a project, especially for repetitive items. For
overload condition prevents the motor starter from being reset. example, the operating light for the pump may be
A.3.2.5 The sequence is stopped manually through HS-1 omitted from the diagram by using a general note that
or HS-2. If stop and start commands for pump operation exist states: All pumps have red and green pilot lights to
simultaneously, then the stop command overrides the operate denote that the pump motors are operating or not oper-
command. ating, respectively.
HS Pump on
LLH 7
3
LSH Tank A
3 Level high Pump on OR
HS
7 auto
Reset pump motor starter *The words Filling permissive exists only exemplify the use
LSH Tank B of a status summary statement. The statement is not
4 Level high mandatory but may be added if it is helpful. (See section 3.6)
LLH Pump **This information Solenoid
4 PSL steal water PAL describing solenoid, Control valve
valve
6 press. low 6 actuator and port HY-1 HV-1
design is required
for detailed design HY-2 HV-2
work Actuator Port
Open valve De-Energized Vented Open
Operation
Close valve Energized Pressurized Closed
FIG. 5.1c
Tank filling operation-interlock 1 logic diagram.
Operate A A
pump OR C A C
(GN-1) B
OR