Su Chen Jonathon Lin

Programmable Logic Controllers


Скачать книгу

produce a binary logic “1” when they are actuated, and a binary logic “0” when non-actuated (Figure 4.1). These elements of type NO are referred to as positive logic elements because they produce a logic “1” when they are actuated. Table 4.1 lists some typical examples of positive logic elements.

      4.1.2Negative Logic Elements

      A second element type is labeled NC, normally closed. It produces a binary “0” logic when it is actuated, and a binary “1” logic when non-actuated (Figure 4.2). NC types of elements are called negative logic elements. Table 4.2 lists some example of negative logic elements.

image

      Figure 4.1: Positive (normally open) logic elements

      Table 4.1: Positive (NO) input logic elements

ElementBinary “0” logic (in normal state)Binary “1” logic (in actuated state)
Limit switch (NO)imageimage
Pressure switch (NO)imageimage
Temperature switch (NO)imageimage
Liquid level switch (NO)imageimage
Photodetector (NO)imageimage
Push button (NO)imageimage
Relay contact (NO)imageimage

      4.1.3Output Devices

      The actuation of output devices is normally controlled by whether the electrical power is present. After applying electrical power to an output device, the device is called energized. Removing power from it, it is de-energized. In binary logic, being energized is represented by a binary “1,” de-energized is binary “0.” Table 4.3 gives examples of binary logic for output devices.

image

      Figure 4.2: Negative (normally closed) logic elements

      Table 4.2: Negative (NC) input logic elements

ElementBinary “1” logic (in normal state)Binary “0” logic (in actuated state)
Limit switch (NC)imageimage
Pressure switch (NC)imageimage
Temperature switch (NC)imageimage
Liquid level switch (NC)imageimage
Photodetector (NC)imageimage
Push button (NC)imageimage
Relay contact (NC)imageimage

      There are three basic logic operations used in digital logic design: AND, OR, and NOT. Each of these operations has established rules that determine the outcome of the event based on certain conditions. The outcome of a logic operation is normally referred to as the output and the given conditions are called inputs.

      4.2.1The AND function

      Logically, the AND function is true (“1”) if and only if all of the inputs are true (“1”). There can be any number of inputs, but the resulting output (“1”) still requires that all of the inputs have values equal to true (“1”). The graphical symbol of an AND function is shown in Figure 4.3. The graphic symbol is called an AND gate.

      Table 4.3: Binary logics for output elements

image image

      Figure 4.3: AND gate

      Tables listing all possible input and output values are called true tables. The number of outcomes (or input combinations) in a true table is determined by the number of inputs and can be calculated as 2n, where n is the number of inputs. A logic gate with two inputs has a total of 4 (or 22) input combinations. A three-input logic gate has 8 (or 23) input combinations. Figure 4.4 shows the true tables for 2-input and 3-input AND gate.

image

      Figure 4.4: True tables for 2-input and 3-input AND gate

      A 2-input AND gate can be used to represent a simple safety circuit for a hydraulic punch press (Figure 4.5). This simple circuit consists of two push buttons that are wired in series and one solenoid output. Both push buttons must be actuated simultaneously to energize the solenoid for dropping the punch ram. The AND logic representation of this 2-input safety circuit is displayed in Figure 4.6.

image

      Figure 4.5: A safety circuit using AND function

image

      Figure 4.6: AND gate for 2-input safety circuit

      4.2.2The OR Function

      Logically, the OR output will be true (“1”) if any one of the inputs has true (“1”) value. Again, there is no limitation on the number of inputs. The graphical symbol and true table for a 2-input OR gate is shown in Figure 4.7.

image

      Figure 4.7: 2-input OR gate

      The