-7
\$\begingroup\$

As a follow-up of my previous too generic question

I have a signal generator (shaft encoder) that has 2 NPN outputs. I have a high speed counter that needs PNP signals. How can I convert the encoder signals, so the counter can use them. Both encoder and counter have a supply voltage of 24VDC. The counter can count up to 30 kHz, so speed is also important.

UPDATE: As was guessed in the comments, this is indeed for industrial machinery. An old bending machine's (iron pipes) logic is broken and is being replaced by something completely new. It's while trying to get everything connected again, that this problem showed up.

My dad is the one who has replaced the old 1970's circuits by a PLC, and reprogammed the entire thing. (He's a retired bending machine architect/engineer).

What he's bumping into is that one issue with the incompatibility between the encoder and the generator. Since electronics isn't his specialty I convinced him that the internet might help him with these issues.

I'm sorry if we are using 'incorrect terminology'. We are non-native english speakers, and technical terminology is even more difficult to get right.

I'll ask my dad if he can supply a schema, or some part info which might shed light on the matter

\$\endgroup\$

closed as not a real question by Leon Heller, Olin Lathrop, Nick Alexeev, Dave Tweed, Brian Carlton Dec 17 '12 at 18:04

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 3
    \$\begingroup\$ Please supply a circuit diagram of what you want to do. It is unclear what is meant by 'NPN output' and needs 'PNP signal'. I can guess, but I'm usually very bad at that. \$\endgroup\$ – jippie Dec 16 '12 at 18:52
  • 1
    \$\begingroup\$ A "PNP or NPN" interface is nebulous. Think again. There are 3 basic config's of BJT's; Common Emitter (CE), Common Base and Common Collector(CC), THEN 2 possible outputs for BJTs, C or E THEN 2 choices for logic switches, normally open (NO) or Normally Closed (NC). Although that being said encoders often using open collector interfaces with external active termination (usually Pull up ... don't assume) So please reword you question in standard engineering specifications like you would read an Logic gate spec; 0/1 threshold, hysteresis, voltage margin, input or output impedance (R &/or C) \$\endgroup\$ – Sunnyskyguy EE75 Dec 16 '12 at 19:16
  • 2
    \$\begingroup\$ @All Commenters... In the industrial sensor business it is common to see the terms NPN or PNP output. Each of these are an open collector output that can either sink current to GND or source current from V++ respectively. Also common is the terminology for an NPN input that represents an impedance to V++ that can be pulled to GND using a so called NPN output. Likewise a PNP input is one that represents an impedance to GND that can be pulled to V++ using a so called PNP output. This terminology has been around for many many years. \$\endgroup\$ – Michael Karas Dec 17 '12 at 7:27
  • 1
    \$\begingroup\$ @jippie - Problem with your comment is that I am not guessing. These terms are also common in the companion field of PLC industrial type controllers. I posted my comment to set the record straight because some here think that the original poster is making up terminology when in fact they are speaking out of their own lack of information. There is no denying however data sheets can often help a lot. \$\endgroup\$ – Michael Karas Dec 17 '12 at 8:36
  • 1
    \$\begingroup\$ "NPN/PNP" is not that nebulous if you're familiar with industrial machinery. NPN outputs are open-collector outputs that sink current. PNP inputs are inputs which are pulled down internally and require a positive voltage applied to them to register as active. \$\endgroup\$ – akohlsmith Dec 17 '12 at 12:21
3
\$\begingroup\$

There are off the shelf devices that you can obtain to convert your NPN outputs to the PNP type inputs required by the counter. It is unfortunate that you were unable to acquire instrumentation that had compatible outputs and inputs. None the less it is possible to build your own simple circuit to do the conversion. The following circuit could be used as a guide to convert each signal line from NPN to PNP for the counter.

enter image description here

You may have to diddle with the values of the resistors some to ensure that the current being sinked by the NPN output of the encoder is within specification of the device while at the same time ensuring that the resistors are not too large that the stray capacitance in the circuit limits the bandwidth.

\$\endgroup\$

Not the answer you're looking for? Browse other questions tagged or ask your own question.