4/7/2009 10:54 AM | |||
Joined: 9/27/2006 Last visit: 3/14/2025 Posts: 12344 Rating:
|
Hello AG; Let's say you have a S7-300 CPU and a CP 341 (with appropriate interface for RS-232 or RS-485), and your basic project is started, at leastin Step 7's HWConfig editor. First you will need to purchase the loadable driver Modbus-RTU master (I am presuming it is RTU, but there is also a driver for Modbus ASCII if required). Here is the information available on the A&D Mall on this driver:
This package will come with a small hardware dongle that has to be loaded in the back of the CP341 in order to enable the Modbus RTU master functions. It also comes with the programming blocks (and program samples) required for this application and a parameter assignment software that allows you to setup the CP 341 as a Modbus master in the HWConfig editor. You will start by setting up a PtP connection in your project, between the CP 341 (already installed in HWConfig) and your serial partner. The connection ID that Netpro will attribute will be refered to in the program blocks you will use later. Next you will set the PtP parameters for the CP 341 as Modbus master for the project (in HWConfig again): baudrate, parity... Next you will use the program blocks loaded in the Step 7 libraries when you installed the loadable driver earlier. These are described in the manual for Modbus RTUmaster, along with an example project; see chapter 8 of the following link: Manual:” Loadble driver, Modbus RTU, CP341 master” http://support.automation.siemens.com/WW/view/en/1220184 |
||
This contribution was helpful to
2 thankful Users |
Follow us on