9/10/2016 2:26 PM | |
Posts: 5225 Rating:
|
Hi Kid, Which 4 wires would you want to use exactly?... You are looking for Modbus RTU over RS485. In the above link you will find also an example for S7-1200 to S7-1200 link with Modbus RTU. Concentrate on the MASTER. You also need to work out which "registers" are going to be made available on the pcb side. I hope this gets you started. w |
This contribution was helpful to
1 thankful Users |
9/11/2016 7:14 PM | |
Joined: 4/28/2015 Last visit: 3/26/2025 Posts: 10837 Rating:
|
Hello, only addition to William's great info, I can imagine C programmer side. Really I don't know what kind of library (or maybe own implementation of Modbus protocol) he will use. Maybe from this point you can start, ask him again what protocol he want implement (Modbus RTU or Modbus ASCII). If not clear idea is on your side look also to this perfect help: http://www.simplymodbus.ca/index.html Here you can see all needed infos, also protocols, examples. Look, you have implemented RTU libraries on S7-1200/1500 with your CM1241 module, mean Master and Slave. But also this information who will be what - Master or Slave, probably also needed ask to your other side programmer for sure. You can give to us next infos. |
With best regards... |
|
This contribution was helpful to
1 thankful Users |
9/13/2016 10:36 AM | |
Joined: 10/18/2014 Last visit: 11/12/2024 Posts: 95 Rating:
|
this link also help you in modbus programming also refer attached program all the best Attachment47756141_s7-1200_mb-rtu_v11-sp2-upd5.zip (222 Downloads) |
Last edited by: Ganesh0220 at: 9/13/2016 10:37:40 AMGanesh-0220 |
|
1/17/2017 11:29 AM | |
Joined: 4/28/2015 Last visit: 5/27/2022 Posts: 29 Rating:
|
Hello everyone, Thank you for all materials. After many test we decided to use RS485 protocol (SEND_PTP, RCV_PTP ) as for the programmer that use embedded system it was the easisest solution. In this moment we face the last problem. When i use SEND_PTP the PLC add string header to each package. In attacched you can find print screen with detail of my problem. Is there any way to cut the header or shift the all package? I have found this articale as the solution but it didn't work out for me. https://support.industry.siemens.com/cs/document/42002283/how-do-you-compensate-for-the-string-mismatch-caused-by-the-rcv_ptp-and-send_ptp-blocks-?dti=0&dl=en&lc=it-WW |
Last edited by: Floowkid at: 1/17/2017 11:30:24 AMLast edited by: Floowkid at: 1/17/2017 11:35:49 AM |
|
Follow us on