5/12/2016 8:50 AM | |
Posts: 5225 Rating: (1192) |
Hi there friend Duris - it is very good to hear from you. There is an example that a member did for an ET200SP (CPU1512). The communication module has some more adjustable hardware settings available than what I have on the S7-1200. See below. I am assuming that the instructions contained in the { Modbus (RTU) } folder were meant as a universal solution but there are stuff missing for the S7-1200. Best regards. |
Last edited by: William_B at: 8/29/2016 6:31:56 PM |
|
This contribution was helpful to1 thankful Users |
5/12/2016 9:05 AM | |
Joined: 4/28/2015 Last visit: 2/7/2024 Posts: 10533 Rating: (820) |
Hello William, made quick test and looks like success! Look to my pictures, S7-1212 v4.1.1 , CM1241 RS-232, on PC runing MB_Slave application from Simply Modbus - perfect SW for test. Imported that Modbus RTU library instructions v3.0, only Master tested and working for me. I was prepared only memory for REQ signals to drive my logic, again use static value of my CP HW (habbit ) and use instance DB statuses, no problem. After run Modbus_Comm_Load REQ - status OK, then run via^%M0.1 Modbus_Master instruction and receive 4 words from register address as example. Working to me without problems, that Mode is 0 as Help stated with full duplex RS-232. In OB1 run that FC where are that Modbus_RTU instructions, no OB100 yet. Via Watch table seting up that %M0.0 and %M0.1 signals. For receive using DB3 Master_RCV with 10 WORDS defined, but only 4 WORDs test, is enough for test. Hope it helps you, maybe I'll be available to you again with other infos Update: that Mode - 0 is located in instance DB of Modbus_Comm_Load_DB, in my case as I post, is 0 -> RS-232. Don't have RS-422/485 module. Tested TIA v13 SP1 upd2 AttachmentMB_RTU_lib_test.zip (1658 Downloads) |
Last edited by: Duris_I at: 5/12/2016 9:22:32 AMWith best regards... |
|
This contribution was helpful to1 thankful Users |
Follow us on