Hello, how's it going?
I have switching sensor with 2 outputs:
output 1: NO - PNP 24V. Basically when the sensor detects something pin 1 will output 24V.
output 2: NC - PNP 24V. Basically when the sensor is NOT detecting something pin 2 will output 24V.
RS232 port understands +12V as low and -12V as high.
I need to connect both outputs to a PC serial port, let's say I'm going to use input pins 8 (CTS) and 6 (DSR),
BUT, I'd have to convert:
output's 1 24 V to -12V (high level)
and
output's 2 24V to +12V (low level)
Is it possible to be done with a simple circuit? Am I better off using a voltage converter?
Is it a stupid idea anyway?
Thanks a lot.
I have switching sensor with 2 outputs:
output 1: NO - PNP 24V. Basically when the sensor detects something pin 1 will output 24V.
output 2: NC - PNP 24V. Basically when the sensor is NOT detecting something pin 2 will output 24V.
RS232 port understands +12V as low and -12V as high.
I need to connect both outputs to a PC serial port, let's say I'm going to use input pins 8 (CTS) and 6 (DSR),
BUT, I'd have to convert:
output's 1 24 V to -12V (high level)
and
output's 2 24V to +12V (low level)
Is it possible to be done with a simple circuit? Am I better off using a voltage converter?
Is it a stupid idea anyway?
Thanks a lot.