7/7/2009 11:04 AM | |
Joined: 9/27/2006 Last visit: 12/7/2024 Posts: 12301 Rating: (2692) |
Hello patel; Basically, once comms have been established between the master and a single slave, you have to repeat the operations for each individual slave you want to access, with new Send_DBs and Recieve_DBs for each. And you have to schedule the calls of each so they do not overlap. Have a look at the sample project provided by another user, DR75, in the following thread: /tf/WW/en/Posts/16268 You might find it instructive. Hope this helps, Daniel Chartier |
7/7/2009 9:31 PM | |
Joined: 12/22/2006 Last visit: 1/25/2022 Posts: 1742 Rating: (309) |
Hello, be sure to run RS485 and not RS232. |
Best regards |
|
7/9/2009 9:24 AM | |
Joined: 10/7/2005 Last visit: 12/8/2024 Posts: 3028 Rating: (1057) |
That is in principle correct. Have a look at Modbus Function code 16 too, which allows writing of multiple registers (Modbus function code 6 allows writing of only ONE register).
No you can NOT (one request at time, have a look at thisthread for some technical background info about this)
You'll always need a P_SND_RK/P_RCV_RK pair for any Modbus READ function code. A Modbus WRITE function code can hoever be done with only P_SND_RK (no need for P_RCV_RK, but it doesn't "hurt" to keepit'scall active anyhow when doing a Modbus Write function code). Yes, length will be different and needs to declared in the so called "Modbus header" of yourrequest DB. I'm afraid you will have to study the Modbus Master manual (have a look at the manual folder in your Simatic program group where it should be if you installed the software, alterantivelyyou can download it here) I hope this helps |
Last edited by: fritz at: 7/9/2009 9:27 AMneed to learn how to spell corrrrectly.... Cheers |
|
Follow us on