Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Chapter 2
1. Draw the input wiring diagram for a PLC system using a 24 VDC input unit with the
following inputs:
IN1 - Normally open pushbutton ON switch
IN2 - Normally open pushbutton OFF switch
IN3 - Normally closed selector switch labeled STEP 1 / STEP 2
IN4 - Normally open footswitch
Show all switches using the correct drawing symbol and show all devices including
the power supply. The PLC being used does not have an internal 24VDC power
supply.
Solution
IN1
NO Pushbutton
IN2
NC Pushbutton
PLC
Selector switch
OFF
S1 IN3
S2
IN4
Foot Switch
COM
2. If one terminal of a lamp is connected directly to the negative terminal of the power
supply, what kind of transistor output unit will be required (sourcing or sinking) to
allow the PLC to light the lamp?
1/8
Solution:
Solution:
4. Using a relay output unit with one FORM C contact driven from OUTPUT 1, draw the
wiring diagram for a system with two AC powered lamps, one that will light when
OUTPUT 1 is ON and one that will light when OUTPUT 1 is OFF.
Solution:
2/8
5. Draw the wiring diagram for a system combining the requirements of problems 1, 2
and 3 above utilizing one power source which is not part of the PLC.
Solution:
8. An 8-bit bipolar 5 volt analog input has an input of -3.29 volts. What will be the
decimal value of the number the converter sends to the CPU in the PLC?
Solution:
Find the voltage resolution of the converter. Since the span is 10 volts, the resolution
is 10 / 28 = 0.0390625 = 39.1 mV.
Divide the required Volt by the resolution to get (- 3.29 V) /(39.1 mV ) = - 84.224.
Convert the output decimal number to binary , (84.224)10 = (01010100)2
To get the negative, add logic 1 the binary is (01010101)2
3/8
9. You program a PLC to output the binary number 10110101 to its analog output. The
analog output is 8-bits, 10 volts, bipolar. What DC voltage do you expect to see on the
output?
Solution:
Find the voltage resolution of the converter. Since the span is 10 volts, the
resolution is 20 / 28 = 78.2 mV.
Convert the output binary number to decimal (10110101)2 = 181 and
Multiply the result by the resolution to get 20 / 28 181 = 14.14 V.
Finally, since the converter uses offset binary, we subtract 10 volts from the result
to get 14.14 V -10 V = 4.14 V
10. An AC motor controller has a frequency control input of 0-10 volts DC which varies
the output frequency from 0-60Hz. It drives a 3-phase induction motor that is rated at
1750 RPM at 60 Hz. The DC input to the motor controller is provided by an analog
output from a PLC. The analog output is unipolar, 10 volts, 10 bits. What binary
number must you program into the PLC to cause it to output the appropriate voltage
to run the motor at 1000 RPM (assume for the motor that the relationship between
frequency and speed is a simple ratio)?
Solution:
Find the voltage resolution of the converter. Since the span is 10 volts, the
resolution is 10 / 210 = 5.714 mV/RPM.
Since the converter uses 10 bits Voltage resolution = 10 V / 210= 0.009766
Using 25% rule the voltage resolution is = 0.009766 /25% = 0.039063
The required voltage corresponding to 1000 RPM,
= 5.714 mV/RPM 1000 RPM= 5.714 V
Divide the required Volt by the resolution to get (5.714 V) /(39.1 mV ) = 146.2784
Convert the output decimal number to binary , (146.2784)10 = (10010010)2
11. A pressure sensor is rated at 0-500 psi and has an output range of 0-10 volts DC (10
volts corresponds to 500 psi). It is connected to a PLCs analog input that is 10 bits,
10 volts, unipolar. If the PLC reads the analog input as (8B3)16, what is the pressure
in psi?
Solution:
Find the voltage resolution of the converter. Since the span is 10 volts, the resolution
is 10 / 210 = 0.0390625 = 5.714 mV/psi.
Since the converter uses 10 bits Voltage resolution = 10 V / 210= 0.009766
4/8
Using 25% rule the voltage resolution is = 0.009766 /25% = 0.039063
Convert the analog input (8B3)16 into decimal = 2227
Find the corresponding voltage, Multiply the analog input signal level, 2227, by the
resolution to get the required voltage 10 / 210 * 2227 = 21.74805 V
Since 21.74805 V > Max. Voltage (10 V), the converter will clip it and read as 10 V
which is corresponding to 500 psi
20. We have a PLC rack with a 24 VDC input card in slot 3, and a 120VAC output card
in slot 2. The inputs are to be connected to 4 push buttons. The outputs are to drive a
120VAC light bulb, a 240VAC motor, and a 24VDC operated hydraulic valve. Draw
5/8
the electrical connections for the inputs and outputs. Show all other power supplies
and other equipment/components required.
Solution:
21. You are planning a project that will be controlled by a PLC. Before ordering parts
you decide to plan the basic wiring and select appropriate input and output cards. The
devices that we will use for inputs are 2 limit switches, a push button and a thermal
switch. The output will be for a 24Vdc solenoid valve, an 110Vac light bulb, and a
220Vac 50HP motor. Sketch the basic wiring below including PLC cards.
Solution:
22. Add three push buttons as inputs to the figure below. You must also select a power
supply, and show all necessary wiring.
6/8
Solution:
23. Sketch the wiring for PLC outputs that are listed below.
- a double acting hydraulic solenoid valve (with two coils).
- a 24Vdc lamp.
- a 120 Vac high current lamp.
- a low current 12Vdc motor.
Solution:
7/8
8/8
PLC
Chapter 3
1. Decide whether each of these statements is True (T) or False (F). the following figure shows a
ladder diagram rung for which:
(i) Input 1 is momentarily activated before reverting to its normally open state.
(ii) Input 2 is activated.
A) (i) T (ii) T
B) (i) T (ii) F
C) (i) F (ii) T
D) (i) F (ii) F
7. Which form of logic gate system is given by a ladder diagram with a rung having two normally
open sets of contacts in parallel?
OR gate
8. Which form of logic gate system is given by a ladder diagram with a rung having two normally
closed gates in parallel?
NAND gate
9. Which form of logic gate system is given by a ladder diagram with a rung having two normally
closed gates in series?
NOR gate
10. Which form of logic gate system is given by a ladder diagram with a rung having two normally
open gates in series?
AND gate
A) Input A is in series with input B, both inputs being normally off.
B) Input A is in parallel with input B, both inputs being normally off.
C) Input A, normally off, is in series with input B which is normally on.
D) Input A is in parallel with input B, both inputs being normally on.
11. Which arrangement of inputs is described by the Boolean relationship A.B?
Input A is in series with input B, both inputs being normally off.
12. Which arrangement of inputs is described by the Boolean relationship A + B?
Input A is in parallel with input B, both inputs being normally off.
13. Which arrangement of inputs is described by the Boolean relationship A + B ?
Input A is in parallel with input B, both inputs being normally on.
14. Which arrangement of inputs is described by the Boolean relationship A iB ?
Input A, normally off, is in series with input B which is normally on.
15. The arrangement of inputs in the following figure is described by the Boolean expression:
A) A . B . C
B) (A + C) . B
C) (A + B) . C
D) A . C + B
16. Decide whether each of these statements is True (T) or False (F). For the function block diagram
shown in the following figure, there is an output:
(i) When A is 1.
(ii) When B is 1.
A) (i) T (ii) T
B) (i) T (ii) F
C) (i) F (ii) T
D) (i) F (ii) F
17. Decide whether each of these statements is True (T) or False (F). For the function block diagram
shown in the following figure, there is an output:
(i) When A is 1.
(ii) When B is 1.
A) (i) T (ii) T
B) (i) T (ii) F
C) (i) F (ii) T
D) (i) F (ii) F
18. Decide whether each of these statements is True (T) or False (F). For the function block diagram
shown in the following figure, there is an output:
B) Either of two, normally open, switches has to be closed for a coil to be energized and
operate an actuator.
C) A motor is switched on by pressing a spring-return push button start switch, and the motor
remains on until another spring-return push button stop switch is pressed.
D) A lamp is to be switched on if there is an input from sensor A or sensor B.
23. Suppose we were given the task of designing a flame detection circuit for a toxic waste
incinerator. The intense heat of the fire is intended to neutralize the toxicity of the waste
introduced into the incinerator. Such combustion-based techniques are commonly used to
neutralize medical waste, which may be infected with deadly viruses or bacteria:
So long as a flame is maintained in the incinerator, it is safe to inject waste into it to be
neutralized. If the flame were to be extinguished, however, it would be unsafe to continue
to inject waste into the combustion chamber, as it would exit the exhaust un-neutralized,
and pose a health threat to anyone in close proximity to the exhaust. What we need in this
system is a sure way of detecting the presence of a flame, and permitting waste to be
injected only if a flame is "proven" by the flame detection system.
Several different flame-detection technologies exist: optical (detection of light), thermal
(detection of high temperature), and electrical conduction (detection of ionized particles in
the flame path), each one with its unique advantages and disadvantages. Suppose that due
to the high degree of hazard involved with potentially passing un-neutralized waste out the
exhaust of this incinerator, it is decided that the flame detection system be made redundant
(multiple sensors), so that failure of a single sensor does not lead to an emission of toxins
out the exhaust. Each sensor comes equipped with a normally-open contact (open if no
flame, closed if flame detected) which we will use to activate the inputs of a logic system
as shown in Figure 3.
24. Develop a program that will cause output D to go true when switch A and switch B are closed or
when switch C is closed.
Ans:
25. Develop a program that will cause output D to be on when push button A is on, or either B or C
are on.
Ans:
26. Develop Ladder Logic for a car door/seat belt safety system. When the car door is open, and the
seatbelt is not done up, the ignition power must not be applied. If all is safe then the key will start
the engine.
Ans:
27. Design a motor controller that has a forward and a reverse button. The motor forward and reverse
outputs will only be on when one of the buttons is pushed. When both buttons are pushed the
motor will not work.
Ans: The following is a possible connection.
28. Consider the design of a burglar alarm for a house. When activated an alarm and lights will be
activated to encourage the unwanted guest to leave. This alarm is activated if an unauthorized
intruder is detected by window sensor and a motion detector. The window sensor is effectively a
loop of wire that is a piece of thin metal foil that encircles the window. If the window is broken,
the foil breaks breaking the conductor. This behaves like a normally closed switch. The motion
sensor is designed so that when a person is detected the output will go on. As with any alarm an
activate/deactivate switch is also needed.
The inputs and outputs are chosen to be;
A = Alarm and lights switch (1 = on)
W = Window/Door sensor (1 = OK)
M = Motion Sensor (0 = OK)
S = Alarm Active switch (1 = on)
The basic operation of the alarm can be described with rules.
1. If alarm is on, check sensors.
2. If window/door sensor is broken (turns off), sound alarm and turn on lights.
Ans: In this case the controller has 3 different inputs, and a single output, so a truth table is a
reasonable approach to formalizing the system. A Boolean equation can then be written using
the truth table
30. a) Explain why a stop button must be normally closed and a start button must be normally open.
b) Consider a case where an input to a PLC is a normally closed stop button. The contact used in
the ladder logic is normally open, as shown below. Why are they both not the same? (i.e.,
NC or NO)
Ans:
a) If a NC stop button is damaged, the machine will act as if the stop button was pushed and
shut down safely. If a NO start button is damaged the machine will not be able to start.)
b) For the actual estop which is NC, when all is ok the power to the input is on, when there
is a problem the power to the input is off. In the ladder logic an input that is on
(indicating all is ok) will allow the rung to turn on the motor, otherwise an input that is
off (indicating a stop) will break the rung and cut the power.)
31. Make a simple ladder logic program that will turn on the outputs with the binary patterns when
the corresponding buttons are pushed.
Ans:
Ans:
Y = (( A )
B + B A ) D + (A C D ) D
33. Develop the Boolean expression for the circuit below.
Ans:
X = ( A iB iC )
+ B iB i( A + C )
34. Given a system that is described with the following equation,
Ans: (b)
Original
Simplified
Ans: (c)
Original
Simplified
35. Convert the following ladder logic to a Boolean equation.
Ans:
X = (C i ( A B + B A )i D ) + D iD
END