3/3/2013 3:30 PM | |
Posts: 4 Rating:
|
DearKaulquappe, Can you explain clearly for this subject . I read the manual and try to use the function. It did not like s7-200 we can acess to slave via slave address but I did not see that parameter on the CP341 Function. Can you advise for me ? I want to connect 1 cp341 (modbus master liecence) with 5 slave Thank for your help |
Last edited by: CS Moderator at: 3/4/2013 4:36 PMnew subject after splitting from /tf/WW/en/Posts/79363#top |
|
3/3/2013 5:18 PM | |
Joined: 9/27/2006 Last visit: 3/23/2025 Posts: 12344 Rating:
|
Hello crazy; When you talk to one slave on Modbus RTU, using a CP 341, you must prepare a Send_DB that contains the slave address, the start address of the Modbus registers you will access in the slave, the number of registers accessed in the slave and the Modbus function number used to access these registers, You then use this Send_DB (and the accompanying Recv_DB) as part of the Modbus function blocks of the CP 341 program. Agreed? Talking to more than one slave means prepartng a Send_DB (and Recv_DB) for each slave, and calling the Modbus function blocks once per new slave connection. You then use the Done and error bits from the Modbus function blocks to make sure that not more than one Modbus request is active at any time. Have a look at the sampole program proposed by our friend DR75 in the following thread: Multiple Modbus RTU slaves with CP341/CP441? Hope this helps, Daniel Chartier |
Last edited by: dchartier at: 3/3/2013 11:50 PM |
|
Follow us on