Showing posts with label 3. Show all posts
Showing posts with label 3. Show all posts

Wednesday

How to Test Whether a Sensor has a PNP or NPN Type Output Using a Multi meter

If you are replacing a 3 wire sensor which operates on DC voltage, it is important to know whether the sensor's output is a PNP or NPN type. Often this information is printed on the sensor itself, but it is not uncommon for it to be scratched off over a long period of time.

Set the multi meter to DC voltage. This is indicated by either the letters "VDC" or "DCV" or by a symbol which looks like 3 dashed lines over a solid line. There are usually several levels within the DC voltage setting. Choose the "600" level.

The power will need to be ON to perform this test, so use caution when attempting the following. Connect two of the sensor wires to the power supply. If the color combination of the wires is blue, black, and brown, then normally, the blue wire connects to 0v and the brown wire connects to positive volts. Touch the black meter probe to the 0V wire of the sensor. Connect the red meter probe to the signal output wire of the sensor. This wire is normally black. The meter should read "0."

Force the sensor to output. If it is a photoelectric sensor, block the photoelectric beam. If it is an inductive proximity switch, introduce a small piece of metal in front of the sensor. For an ultrasonic sensor or a capacitive sensor, you can just use your hand to make the sensor output. Be sure that the sensor is detecting the object. Many sensors have a small LED that illuminates when the sensor detects it's target.

Watch the meter display as you force the sensor to output. If the readout changes to a number between 10 and 30, then the sensor output is a PNP type, also known as "sourcing." If the meter display remains at "0", then the sensor output is an NPN type, also known as "sinking."

If you believe that the sensor is NPN, there is an additional test that may be done to confirm. Remove the meter probes from the wires. Now place the red meter probe on the positive voltage sensor wire, normally a brown wire. Touch the black meter probe to the signal output wire of the sensor, normally black. When the sensor does not detect it's target, the meter display should read between 10 and 30. When the sensor senses an object, the display should drop to "0." This will confirm that the sensor has an NPN type output.

Saturday

How to Connect a Three-wire DC Sensor to a PLC

An application calls for a three-wire DC sensor to report to a PLC. How should they be connected together?  Check the input card of the PLC and find the voltage rating. Does it operate on DC voltage? Also determine whether the input needs to be sinking (NPN) or sourcing (PNP.) Look at the sensor and make sure the voltage rating and PNP / NPN type is the same. If there is a mismatch, refer to the manufacturer's instructions for both devices to determine compatibility.

If the PLC's input card is rated for DC voltage and it is a sinking (NPN) type input and also if the sensor operates on DC voltage in the same range and its output is sinking (NPN), then the two should be compatible. Connect the PLC to the power supply, but do not turn the power supply ON yet. Then connect the sensor's positive source voltage wire, which is normally brown, to the positive terminal of the power supply. Connect the negative or neutral sensor wire, normally blue, to the power supply as well, but on the negative terminal. Then connect the sensor's signal wire, normally black, to the PLC input card at the number address that you will assign as the sensor in the PLC program. When the sensor is activated, it will connect the PLC output to neutral or ground, which the PLC will interpret as a "true" condition and respond as programmed.

If the PLC's input card is rated for DC voltage and it is a sourcing (PNP) type input and also if the sensor operates on DC voltage in the same range and its output is sourcing (PNP), then the two should be compatible. Connect the PLC to the power supply, but do not turn the power supply ON yet. Then connect the sensor's positive source voltage wire, which is normally brown to the positive terminal of the power supply. Connect the negative or neutral sensor wire, normally blue, to the power supply as well, but on the negative terminal. Then connect the sensor's signal wire, normally black, to the PLC input card at the number address that you will assign as the sensor in the PLC program. When the sensor is activated, it will connect the PLC output to the positive terminal of the power supply, which the PLC will interpret as a "true" condition and respond as programmed.