Hi, I am trying to make an RS232 cable to connect a digital pressure module to a PLC. I purchased a cable that the maufacture supplies that uses a usb-->RS232 convertor (Note: The convertor supplies 5 VDC power to the module). I am able to communicate with the module using a terminal emulator with the command they supplied.
However, a PLC will not accomodate a USB connection so I need to make up my own cable. I have connected as follows
Module Rx pin to DB9 pin 3
Module Tx pin to DB9 pin 2
Module VCC pin to External Power supply V+
Module GND pin to External Power supply V-
This will only echo back the commands I send (even garbage commands).
I opened up the ends of the manufactures cable (See attached photos). It appears I have wired it the same, except for the GND, which I think could be the problem.
I think it is the GND that is the problem, the power and the communications could be two separate sources. Where do I connect the DB9 GND (pin 5) to?
Thanks in Advance.
Terry
However, a PLC will not accomodate a USB connection so I need to make up my own cable. I have connected as follows
Module Rx pin to DB9 pin 3
Module Tx pin to DB9 pin 2
Module VCC pin to External Power supply V+
Module GND pin to External Power supply V-
This will only echo back the commands I send (even garbage commands).
I opened up the ends of the manufactures cable (See attached photos). It appears I have wired it the same, except for the GND, which I think could be the problem.
I think it is the GND that is the problem, the power and the communications could be two separate sources. Where do I connect the DB9 GND (pin 5) to?
Thanks in Advance.
Terry