On Wed, 15 Aug 2007 19:24:26 -0700,
robert.mcd@gmail.com wrote:
>Since inquiring minds want to know, I will try to get more detailed.
>The device I am trying to interface with is a PLC. On this PLC, I am
>using two DO's, that at the off state, output 24VDC, max 2A. When a
>DO is switched on, the output drops to 0V by connecting to an earth
>ground in the PLC. I am inputting to an actuator controller that
>requires the off state to be 0V and the on state to be 24VDC with max
>.25A. So the signals are backwards. When the PLC is at 24V, the
>controller needs 0V (at rest); then I flip a switch to create a move,
>and the PLC is at 0V but the controller required 24V(move signal). I
>hope this did not confuse everyone.
I could guess, but how fast are these signals required to be? What
kind of capacitance are you driving? (Do you need active high and
active low drive? Or can you accept passive drive on one side of
this?) Have you tried 'default's suggestion to you?
You still haven't mentioned what your supplies are, but may I assume
you have access to the 24V and ground rails? Any other rails?
If you want inversion and active high and active low drive at fairly
good rates of change in both directions, you may need 3 BJTs.
Something like this: (read with fixed-spaced font such as Courier,
Courier New, etc.)
>: +24V +24V +24V +24V
>: | | | |
>: | | | |
>: | \ _|_ D1 |
>: | / R3 /_\ 1N4148 |
>: | \ 10k | |
>: | / | |
>: \ | | |
>: / R4 | | |<e Q1
>: \ 1.8k +----------+--------| PNP
>: / | |\c
>: | | |
>: | | |
>: | |/c Q3 |
>: +----+-------| NPN |
>: | | |>e |
>: | | | |
>: D2 --- --- C1 | |
>: /z\ --- 10n | +--> OUT
>: 6.2V --- | | |
>: zener | | | |
>: | | \ |
>: | | / R1 |
>: gnd gnd \ 1k |
>: / |
>: | |
>: | |
>: | R2 |/c Q2
>: IN >-----------------+-------/\/\--------| NPN
>: 4.7k |>e
>: |
>: |
>: |
>: gnd
I assumed about 5mA being enough drive for your .25A output. Easy to
adjust by changing R1 and R2. (R1 sees a little more than 5V and R2
sees most of the 24V. So figure from that.) The above is a pretty
standard construction of an active BJT inverter, so nothing special
here. You need to make sure that Q1 and Q2 can handle the 24V and
current requirements (not too hard to do.)
I've omitted various speed-ups (across R1, R2, and from IN to the base
of Q1), but in the small numbers of kHz it should look pretty good on
a scope. There is an overlapping period when both Q1 and Q2 are on
and that overlap period can be significantly shortened with the speed
ups added. But it may be just fine, as above.
I'm a hobbyist and don't have much experience with 24V industrial PLCs
or actuator controllers and the supplies you are likely to have. So
keep that in mind.
Jon