9/11/2014 1:53 PM | |
Posts: 24 Rating: (1) |
Hello all, I am trying to configure my S7-1200 as Modbus RTU Slave and a 3rd party HMI as master with TIA Portal V13 via RS-485. I have developed a sample program (attached) for transferring I0.3 to bit 40004.3 and I0.4 to bit 40004.4 on the HMI. The Tx/Rx LED on CM1241 flashes very quickly (seems almost steady). So I am assuming the connection has been established. But the problem is that the STATUS of the MB_SLAVE block returns Error 8383 intermittently once every 5-6 seconds. The returning of error is also so fast, that it is almost difficult to read out the error. I would really appreciate if someone can review the program and help me figure out the problem. Wasted the whole day, still no luck trying to figure the problem. Thank you. Best Regards, Parshva
AttachmentD:\Temp\MB_Test_V1.zip (491 Downloads) |
Last edited by: Min_Moderator at: 9/18/2014 8:53 AMAdd attachment |
|
9/11/2014 4:27 PM | |
Posts: 3093 Rating: (323)
|
Hello Parshva, with holding registers the S7-1200 is capable of 6 digit addressing as well. Regards, Kaulquappe |
Follow us on