Analog Sensing for Programmable Controllers

Objectives

After studying this unit, the student will be able to:

• Describe the differences between analog and digital inputs

• Discuss precautions that should be taken when using analog inputs

•  Describe the operation of a differential amplifier

Many of the programmable controllers found in industry are designed to accept analog as well as digital inputs. Analog means continuously vary­ ing. These inputs are designed to sense voltage, current, speed, pressure, temperature, humidity, etc. When an analog input is used, a special mod­ ule mounts on the 1/0 track of the PC. An analog sensor may be designed to operate between a range of settings, such as 50 to 300 co, or 0 to 100 psi. These sensors are used to indicate between a range of values instead of merely operating in an on or off mode. An analog pressure sensor de­ signed to indicate pressures between 0 and 100 psi would have to indicate when the pressure was 30 psi, 50 psi, or 80 psi. It would not just indicate whether the pressure had or had not reached 100 psi. A pressure sensor of this type can be con­ structed in several ways. One of the most common methods is to let the pressure sensor operate a cur­ rent generator which produces currents between 4 and 20 milliamperes. It is desirable for the sensor to produce a certain amount of current instead of a certain amount of voltage because it eliminates the problem of voltage drop on lines. For exam­ ple, assume a pressure sensor is designed to sense pressures between 0 and 100 psi. Also assume that the sensor produces a voltage output of 1 volt when the pressure is 0 psi and a voltage of 5 volts when the pressure is 100 psi. Since this is an ana­ log sensor, when the pressure is 50 psi, the sensor should produce a voltage of 3 volts. This sensor is connected to the analog input of a programmable controller, figure 66-1. The analog input has a sense resistance of 250ft If the wires between the sensor and the input of the programmable control­ ler are short enough (so that there is almost no wire resistance), the circuit will operate without a problem. Because the sense resistor in the input of the programmable controller is the only resistance in the circuit, all of the output voltage of the pressure sensor will appear across it. If the pressure sensor produces a 3-volt output, 3 volts will ap­ pear across the sense resistor.

FIGURE 66-1 The pressure sensor produces one to five volts

If the pressure sensor is located some distance away from the programmable controller, however, the resistance of the two wires running between the pressure sensor and the sense resistor can cause inaccurate readings. Assume that the pres­ sure sensor is located far enough from the pro­ grammable controller so that the two conductors have a total resistance of 500, figure 66-2. This means that the total resistance of the circuit is now 3000 (250 + 50 = 300). If the pressure sensor produces an output voltage of 3 volts when the pressure reaches 50 psi, the current flow in the circuit will be 0.010 amp (3/300 = 0.010). Since there is a current flow of 0.010 through the 2500 sense resistor, a voltage of 2.5 volts will appear across it. This is substantially less than the 3 volts being produced by the pressure sensor.

FIGURE 66-2 Resistance in the lines can cause problems

If the pressure sensor is designed to operate a current generator with an output of 4 to 20 rna., the resistance of the wires will not cause an inac­ curate reading at the sense resistor. Since the sense resistor and the resistance of the wire be­ tween the pressure sensor and the programmable controller form a series circuit, the current must be the same at the point in the circuit. If the pres­ sure sensor produces an output current of 4 rna. when the pressure is 0 psi and a current of 20 rna. when the pressure is 100 psi, at 50 psi it will pro­ duce a current of 12 rna. When a current of 12 rna. flows through the 250 sense resistor, a voltage of 3 volts will be dropped across it, figure 66-3. Because the pressure sensor produces a certain amount of current instead of a certain amount of voltage with a change in pressure, the amount of wire resistance between the pressure sensor and programmable controller is of no concern.

FIGURE 66-3 The current must be the same in a series cir-

INSTALLATION

Most analog sensors can produce only very weak signals-0 to 10 volts or 4 to 20 milliamps are common. In an industrial environment where intense magnetic fields and large voltage spikes abound, it is easy to loose the input signal in the electrical noise. For this reason, special precau­ tions should be taken when installing the signal wiring between the sensor and the input module. These precautions are particularly important when using analog inputs, but they should also be fol­ lowed when using digital inputs.

Keep Wire Runs Short

Try to keep wire runs as short as possible. A long wire run has more surface area of wire to pick up stray electrical noise.

Plan the Route of the Signal Cable

Before starting, plan how the signal cable should be installed. Never run signal wire in the same conduit with power wiring. Try to run signal wiring as far away from power wiring as possible. When it is necessary to cross power wiring, install the signal cable so that it crosses at a right angle as shown in figure 66-4.

Use Shielded Cable

Shielded cable is used for the installation of signal wiring. One of the most common types, shown in figure 66-5, uses twisted wires with a Mylar foil shield. The ground wire must be grounded if the shielding is to operate properly. This type of shielded cable can provide a noise re­ duction ratio of about 30,000: 1.

Another type of signal cable uses a twisted pair of signal wires surrounded by a braided shield. This type of cable provides a noise reduc­ tion of about 300:1.

Common coaxial cable should be avoided. This cable consists of a single conductor sur­ rounded by a braided shield. This type of cable offers very poor noise reduction.

FIGURE 66-4 Signal cable crosses power line

FIGURE 66-5 Shielded cable

Grounding

Ground is generally thought of as being elec­ trically neutral, or zero at all points. However, this may not be the case in practical application. It is not uncommon to find that different pieces of equipment have ground levels that are several volts apart, figure 66-6.

To overcome this problem large cable issometimes used to tie the two pieces of equipment together. This forces them to exist at the same po­ tential. This method is sometimes referred to as the brute-force method.

Where the brute-force method is not practi­ cal, the shield of the signal cable is grounded at only one end. The preferred method is generally to ground the shield at the sensor.

FIGURE 66-6 All grounds are not equal

THE DIFFERENTIAL AMPLIFIER

An electronic device that is often used to help overcome the problem of induced noise is the dif­ ferential amplifier, figure 66-7. This device detects the voltage difference between the pair of signal wires and amplifies this difference. Since the in­ duced noise level should be the same in both con­ ductors, the amplifier will ignore the noise. For example, assume an analog sensor is producing a 50-millivolt signal. This signal is applied to the in­ put module, but induced noise is at a level of 5 volts. In this case the noise level is 100 times greater than the signal level. The induced noise level, however, is the same for both of the input conductors. Therefore, the differential amplifier ignores the 5-volt noise and amplifies only the voltage difference which is 50 millivolts.

FIGURE 66-7 Differential

REVIEW QUESTIONS

1. Explain the difference between digital inputs and analog inputs.

2. Why should signal wire runs be kept as short as possible?

3. When signal wiring must cross power wiring, how should the wires be crossed?

4. Why is shielded wire used for signal runs?

5. What is the brute-force method of grounding?

6. Explain the operation of the differential amplifier.

Leave a comment

Your email address will not be published. Required fields are marked *