2/3/2017 6:09 PM | |
Joined: 12/17/2008 Last visit: 10/26/2022 Posts: 40 Rating:
|
Hello, I have the same situation, i need to communicate (read data) with a RS485 slave modbus rtu controller using CM PtP RS422 / 485BA. Can you share with us your example for how to program the communication using freeport . I attached the controller modbus manual. Thanks in advance! ------------------------------------------------------------------------------------------ Attachmentdcp20 modbus protocol.pdf (1050 Downloads) |
Last edited by: kenzo103 at: 2/3/2017 6:51:11 PMLast edited by: Min_Moderator at: 2/7/2017 4:35:03 PMNew subject after splitting |
|
This contribution was helpful to
1 thankful Users |
2/3/2017 7:26 PM | |
Joined: 12/17/2008 Last visit: 10/26/2022 Posts: 40 Rating:
|
I will start to work on this, i will post here any problem that may occur. Regards! |
2/7/2017 12:54 PM | |
Joined: 12/17/2008 Last visit: 10/26/2022 Posts: 40 Rating:
|
Hello, I'm back with new information and questions... I made the wiring Data + 11, Data - 4, GND 8, i made the hardware configuration according to controller settings : 9600 transmission rate, Parity none, 8 Bits, 1 Stop bits, and Send idle line 4 bit times, Receive frame Start on special condition-After detection of an idle line 4 bit times. I tried first to send and receive frame using Send_PTP, and Receive_PTP instruction, send_ptp instruction works and i gives me done true after req is 1, i can see also the TX led flashing 1 time for every send instruction. but the Receive_PTP gives me error true after the send instruction. The error is 81E2-Frame aborted: Character frame error (Check the settings for start bit, data bits, parity bit, data transmission rate, and stop bit(s).) I'm sure that settings are correct because i use the same settings with modbus pool software in order to test the communication from my pc to the controller and is working. Any idea how to resolve this ? Best regards AttachmentFUNCITIE CITIRE FREEPORT.pdf (1141 Downloads) |
Follow us on