5/18/2011 10:16 PM | |
Posts: 3093 Rating:
|
Hello Marstrand, has your PC got a RS485 interface or do you use a converter? Regards, Kaulquappe |
5/19/2011 7:59 AM | |
Posts: 3 Rating:
|
Hi Kaulquappe, I have been trying to get it to work using this converter: http://www.moxa.com/product/UPort_1150_1150I.htm .. and this Ethernet port server: http://www.moxa.com/product/nport_5600.htm Regards, Marstrand |
5/19/2011 9:41 AM | |
Posts: 147 Rating:
|
Hi Well, it looks like this is a very complicated configuration you have there... I am not familiar with MOXA converters, but I can give you some hints: First and foremost, try to get your hands on a RS232 CM1241. This way you will be able to remove the RS232/RS422/RS485 converter from your configuration. If that is not possible, take into account that (most of) the USB/Serial Converters suck... This is mostly due to the USB drivers they use, but still, if you can find a PROPER RS232 com port you will be glad you did... Oh, and please - everybody who is reading this thread - DO NOT USE HYPERTERMINAL. There are a lot of good terminal programs out there... (I tend to use Bray's Terminal: https://sites.google.com/site/terminalbpp/ ) Now, you have to figure out where is your problem lying... What quickly comes to mind is this: RS485 is usually different from the RS232, in the sense that you can receive and transmit data at the same time. In RS232 you cannot do that, you have to transmit at a different time when you receive... Are you taking this into account?
Is your PLC going into listening mode? In general, device communications work like this: 1) Device is sending data. 2) Device is going into listening mode. 3) Device is waiting for data. 4) Device receives data. 5) Goto 1. So, you have to make sure that your PLC is waiting for data on the RS485 port. When data are received an interrupt is called which handles the receive of data. If you have a signal analyser, then you can check what is coming out of the PC-USB-RS232-RS485 port. Again, try to confirm that the PLC is communicating as it should be. If you cannot figure this with your PC, then try another PLC, or a simple device with RS485. HTH |
This contribution was helpful to
1 thankful Users |
5/19/2011 10:48 AM | |
Posts: 3093 Rating:
|
Hello Marstrand, I recommend to set the stop condition to timeout (ENDCOND = 4). The converter must be in mode RS485 2-wire (PORT = 1) Regards, Kaulquappe |
This contribution was helpful to
1 thankful Users |
6/27/2011 11:40 AM | |
Posts: 57 Rating:
|
Marstrand, can you share the program that you had been created.? because it can be a good tutorial for me to understand the communication protocol. |
Follow us on