5/4/2017 6:19 AM | |
Joined: 10/20/2014 Last visit: 1/7/2025 Posts: 4 Rating:
|
Hello Dear Siemens Expert Community! I am working in a project, communicating a plc S7-1214C with two Schneider ATV630 drives through Modbus TCP/IP network. I can manage to read and write, a simple holding register without any problem. But, when I try to read or write multiple holding registers with one MB_Client function only, is impossible to acomplish it due that the S7-1200 plc does not support the modbus function 23 (I am not sure, if this is the number), anyway, does anybody know if there is some kind of a custom library to read/write multiple registers? I made my own FB, written in SCL language, in order to do this. I could manage to read and write multiple registers, but only for one server, for the other one, it appears a status error (code 7002, and the help is not useful for this fault). And, although It communicates with one drive (internally appears a status error code 8200), but as I said, it works. Let me show you the FB source code:
As I always say, I am sorry for my english. Any kind of help will be gratefully accepted, thanks!! Regards Camilo Gorosito
AttachmentMB_TCP_IO.txt (615 Downloads) |
This contribution was helpful to
1 thankful Users |
Follow us on