4/26/2022 3:36 PM | |
Joined: 2/5/2013 Last visit: 3/26/2024 Posts: 287 Rating: (5) |
Hi, I've tried migration for this demo sample: https://support.industry.siemens.com/cs/document/102020340/how-do-you-program-and-parameterize-modbus-tcp-communication-between-s7-1500-cpus-and-s7-1200-cpus-?dti=0&lc=en-WW Migration succeded but cannot complie and cannot navigate the project, the Tia 17 goes always to error and need restart. I'm just wondering how to make a simple connection from a S7-1500 as client to an external modbus slave to read 5 Words. Tried out MB_CLIENT with:
the same behavior with:
Now from online mode I can see STATUS that goes from 7006 to 7004 and BUSY that goes to 0 /1 based on the REQ. But DONE is always false, and MB_DATA_PTR are always zeros. Can please someone tell me whats wrong (with any external modbus client the data are available)? I've tried out the connection on HMI and it's working fine, why on PLC setup a modbus_client should be so trivial? Attached project (please rename in .zap17) result in a 7001 + 7002 + 80C4 status. Can you please tell me if the version of communication blocks MB_CLIENT is correct that is 4.1 or how can I update that ? [solved] Set MB_unit_ID to what you need! Attachmentmb_client_plc_fail_20220427_163_.zap17.txt (69 Downloads) |
Last edited by: SummerSeaSun at: 04/27/2022 16:06:12Last edited by: SummerSeaSun at: 04/27/2022 16:19:13Last edited by: SummerSeaSun at: 04/27/2022 16:35:26Last edited by: SummerSeaSun at: 04/27/2022 17:26:43Last edited by: SummerSeaSun at: 04/28/2022 13:27:09 |
|
This contribution was helpful to1 thankful Users |
Follow us on