2/9/2009 5:52 AM | |
Joined: 9/27/2006 Last visit: 12/11/2023 Posts: 12193 Rating:
|
Hello Wesley; Here are some quickanswers to your questions. More detailed information can be found in the manual "Loadable Drivers... Modbus Protocol, RTU Format, S7 is master"; it can be found in the link below. 1. The function code is loaded in the instance datablock for the FB8 ("FB P_SND_RK"), in the example programin DB50; look at chapter 5, Function Codes to see in which DB register it needs to be located. 2. LADDR is used to tell the CPU which I/O address it can use to connect to the CP on the rack. You can use the first address given to you by the HWConfig editor when you setup the CP 341. 3. DB_No (number of the DataBlock) and DBB_No (number of the DataBlock Byte), along with the LEN(gth) parameter are used to build a pointer to the data you neen to send. In which DB is it located, at what byte inside this DB does it start, how much data (the number of bytes) you want to send? Modbus Master manual for the CP341: http://support.automation.siemens.com/WW/view/en/1220184 Hope this helps, Daniel Chartier |
Last edited by: dchartier at: 2/9/2009 5:53 AM |
|
Follow us on