12/14/2021 3:43 PM | |
Joined: 6/19/2019 Last visit: 9/5/2024 Posts: 697 Rating:
|
Don't forget S7-1500/S7-1200 in MODBUS_COMM_LOAD block there you can open this Data block and you see by default MODE is 0 it's set for Full duplex operation mode you need write manualy or insert in program MOVE block and enter number 4 (Half duplex for RS485 two wire mode) to this MODE parameter. Also don't stuck for this Error type 16#7000 If you call masters block and after call you get response from flow meter it works everything fine. Maybe attached sample will a little bit help you (fast added these blocks) AttachmentModbus master.pdf (514 Downloads) |
Last edited by: Mr.V at: 12/14/2021 15:49:18 |
|
12/14/2021 4:14 PM | |
Posts: 50 Rating:
|
Hi Again! I've just changed the Modbus comm load mode to 4, still isn't connecting. I've attached a photo. Appreciate the help! Cheer, Matty |
12/15/2021 9:23 AM | |
Joined: 3/5/2014 Last visit: 8/5/2022 Posts: 5521 Rating:
|
hi greenyuk99, to bring some clearence in here. The picture you shared from the application sample is really just an application sample. The Profinet-connection doesn´t have to do something with the MB communication. It is just to have it easier in one project and to show how to do it with Master and Slave in central and decentral periphery. MB_Comm_Load needs to called once at the beginning. It sets the parameters for the used MB-interface. Like all acyclic blocks you should catch the status with Error = true as shown in this FAQ: How do you evaluate the status of system blocks in STEP 7 (TIA Portal)?TIA help of the blocks contains a list of all errors. hope this helps, regards, |
FCK WAR! |
|
12/15/2021 11:21 AM | |
Posts: 50 Rating:
|
Morning all, Really appreciate the help with this issue! I have chosen the CMPtP module as the port, is that correct? Initially, I chose 550 because that was the input address for that communication module. I have attached a word file with some images to hopefully assist you with my problem. Thanks in advance! Matt Attachmentmodbus.docx (458 Downloads) |
Follow us on