10/3/2009 10:51 AM | |
Joined: 1/17/2007 Last visit: 1/21/2025 Posts: 1548 Rating: (538) |
Siemens produce an open modbus TCP package that works with the CP341. Details available here:- Open modbus TCP You could then use this to communicate over the same CP you are using for the AS/ES/OS comms, thus saving you the cost of fitting an additional CP dedicated just to modbus comms. There are 2 versions of the modbus block. One supports function code 3 (read holding registers), function code 16 (write multiple holding registers) and function code 4 (read input registers). The other (more expensive) version additionally supports function codes 1 (read coils), 2 (read discrete inputs), 5 (write single coil), 6 (write single holding register) and 15 (write multiple coils). The block can operate as client (master) or slave (server). Hope this helps. |
Last edited by: smiffy at: 10/3/2009 11:05 AMProgramming today is the race between software engineers building bigger and better idiot proof programs, and the universe producing bigger and better idiots. |
|
This contribution was helpful to1 thankful Users |
Follow us on