5/15/2017 11:33 AM | |
Posts: 5 Rating:
|
Hello, The device will transmit out some status periodically in RS485, baud rate 9600, 8N1, there are 2 terminals for wiring (+), (-) for connection. I can see it is using MAX485 IC with 120 ohm terminating resistor. Then I connect to the PLC Port0 with a twisted pair cable with 120 ohm terminating resistor also at the PLC side, the remaining pins on Port0 are unconnected. I write a simple test program in the PLC including changing to Freeport mode, setting baud rate, turn on Q0.0 when receive 6 bytes of data (end character is 0x0A) and send back some data. The PLC program is attached. When tested with the RS485 device, I can see the RS485 data sent to PLC correctly using a CRO, but the PLC has no response. So I want to know my hardware setup is OK? Or there is something more to configure in the Freeport mode? Thanks! Best Regards, Danny AttachmentPLC test.zip (370 Downloads) |
5/16/2017 8:08 AM | |
Joined: 4/28/2015 Last visit: 2/24/2025 Posts: 10832 Rating:
|
Hello, you need use only pins 3,8 for user serial communication. |
With best regards... |
|
5/19/2017 9:23 AM | |
Posts: 5 Rating:
|
Hello, I managed to get it work, because of some software mistakes. Thanks for your help! Best Regards, Danny |
5/19/2017 9:26 AM | |
Joined: 4/28/2015 Last visit: 2/24/2025 Posts: 10832 Rating:
|
Hello, you're welcome... |
With best regards... |
|
Follow us on