CPU-CPU Communication with SIMATIC Controllers SIMATIC S7 Compendium September 2010 Warranty, Liability and Support Note The application examples are not binding and do not claim to be complete regarding configuration, equipment and any eventuality. The application examples do not represent customer-specific solutions. They are only intended to provide support for typical applications. You are responsible for ensuring that the described products are used correctly. These application examples do not relieve you of the responsibility to use sound practices in application, installation, operation and maintenance. When using these Application Examples, you recognize that we cannot be made liable for any damage/claims beyond the liability clause described. We reserve the right to make changes to these Application Examples at any time without prior notice. If there are any deviations between the recommendations provided in these application examples and other Siemens publications – e.g. Catalogs – the contents of the other documents have priority. We accept no liability for information contained in this document. Any claims against us – based on whatever legal reason – resulting from the use of the examples, information, programs, engineering and performance data etc., described in this Application Example shall be excluded. Such an exclusion shall not apply in the case of mandatory liability, e.g. under the German Product Liability Act (“Produkthaftungsgesetz”), in case of intent, gross negligence, or injury of life, body or health, guarantee for the quality of a product, fraudulent concealment of a deficiency or breach of a condition which goes to the root of the contract (“wesentliche Vertragspflichten”). However, claims arising from a breach of a condition which goes to the root of the contract shall be limited to the foreseeable damage which is intrinsic to the contract, unless caused by intent or gross negligence or based on mandatory liability for injury of life, body or health. The above provisions do not imply a change in the burden of proof to your detriment. It is not permissible to transfer or copy these Application Examples or excerpts thereof without express authorization from Siemens Industry Sector. If you have any questions about this document, please contact us at the following e-mail address: <a class="__cf_email__" href="http://www.cloudflare.com/email-protection" data-cfemail="adc2c3c1c4c3c880ded8ddddc2dfd983ccd8d9c2c0ccd9c4c2c3eddec4c8c0c8c3de83cec2c0">[email protected]<script type="text/javascript"> (function(){try{var s,a,i,j,r,c,l,b=document.getElementsByTagName("script");l=b[b.length-1].previousSibling;a=l.getAttribute(data-cfemail);if(a){s=;r=parseInt(a.substr(0,2),16);for(j=2;a.length-j;j+=2){c=parseInt(a.substr(j,2),16)^r;s+=String.fromCharCode(c);}s=document.createTextNode(s);l.parentNode.replaceChild(s,l);}}catch(e){}})(); Industry Automation and Drives Technologies Service & Support Portal This article is taken from the Service Portal of Siemens AG, Industry Automation and Drives Technologies. The following link takes you directly to the download page of this document. http://support.automation.siemens.com/WW/view/en/20982954 1 Preliminary Remarks on the Document 1.1 Subject of the document CPU-CPU Communication with SIMATIC V2.01, Entry ID: 20982954 3 / 401 Copyright Siemens AG 2011 All rights reserved 20982954_SIMATIC_Comm_DOKU_v201_e.doc Table of Contents Warranty, Liability and Support 2 1 Preliminary Remarks on the Document 15 1.1 Subject of the document . 15 1.2 Purpose and objective of the document . 17 1.3 Properties and benefits of the document . 18 1.4 Scope of validity of this document 18 1.5 Document classification 19 2 Structure of the Document . 20 2.1 Part 1: Introduction . 20 2.2 Part 2: Selection aids . 20 2.3 Part 3: Communication types . 21 2.4 Part 4: Communication with third-party controllers without using an open standard 21 2.5 Part 5: Appendix . 21 3 Application of the document 22 3.1 Notes on handling the document . 22 3.2 Example on the application of the document . 23 3.2.1 Task 23 3.2.2 Overview of interfaces and communication types 24 3.2.3 Combination controller 1 / controller 2 . 26 3.2.4 Communication types . 28 PART 1: Introduction . 30 PART 1: Structure and content . 31 4 Models on CPU-CPU Communication . 32 4.1 Definition of controller . 32 4.2 Definition CPU-CPU communication 32 4.3 CPUs in different central stations . 33 4.4 CPUs in central and decentralized station . 34 4.5 CPUs within a central station . 35 5 Connections for SIMATIC . 36 5.1 Connections . 36 5.2 Protocols 37 5.3 Connection resources 38 5.4 Establishing connections 39 5.5 Configured connection . 39 5.6 Non-configured connection 40 5.6.1 Automatic establishing of a connection 41 5.6.2 Programmed establishing of a connection . 41 6 Data Consistency with SIMATIC 42 6.1 Definitions . 42 6.2 System-related data consistency . 43 6.2.1 S7-300 43 6.2.2 S7-400 43 6.2.3 S7-1200 43 6.3 Additional data consistency 44 6.3.1 Additional measures . 44 6.3.2 Case discrimination 44 1 Preliminary Remarks on the Document 1.1 Subject of the document CPU-CPU Communication with SIMATIC V2.01, Entry ID: 20982954 4 / 401 Copyright Siemens AG 2011 All rights reserved 20982954_SIMATIC_Comm_DOKU_v201_e.doc 7 SIMATIC Controller 45 8 Media on SIMATIC communication 47 9 PROFINET/Industrial Ethernet (PN/IE) . 48 9.1 Preliminary remarks . 48 9.2 Ethernet 48 9.3 Industrial Ethernet (IE) . 50 9.4 PROFINET (PN) . 51 10 PROFIBUS (PB) 54 11 MPI . 55 12 SIMATIC Backplane Bus . 56 13 Serial Interface (PtP) 57 14 Comparison of the Media 58 15 Interfaces of the SIMATIC Families 59 16 Information Part 1 60 PART 2: Selection aids 61 PART 2: Structure and content . 62 17 Preliminary Remarks . 63 17.1 Overview of all combinations . 63 17.1.1 Terms . 63 17.1.2 Symmetry of the combinations . 64 17.1.3 Realization in the document . 65 17.2 Interfaces table . 67 17.2.1 Purpose of this table . 67 17.2.2 Structure of the table 67 17.2.3 Abbreviations and indices 69 17.3 Combinations table . 70 17.3.1 Purpose of this table . 70 17.3.2 Structure of the table 70 17.3.3 Real example . 73 17.3.4 Abbreviations and indices 73 17.4 Communication types – compact table 74 17.4.1 Purpose of this table . 74 17.4.2 Structure of the table 74 17.5 Overview of abbreviations and indices . 75 17.5.1 Abbreviations 75 17.5.2 Overview of the indices 76 18 ********** Jump Distributor ********** 77 18.1 Network PN/IE 77 18.2 Network PB 78 18.3 Network MPI . 79 18.4 SIMATIC backplane bus . 80 18.5 Serial interfaces 81 19 Selection Aid: PROFINET/Industrial Ethernet (PN/IE) 82 19.1 PN/IE: Content of the chapter 82 19.2 PN/IE: Interfaces and communication types 83 19.2.1 ET 200 CPU to PN/IE . 83 19.2.2 S7-300 to PN/IE . 84 1 Preliminary Remarks on the Document 1.1 Subject of the document CPU-CPU Communication with SIMATIC V2.01, Entry ID: 20982954 5 / 401 Copyright Siemens AG 2011 All rights reserved 20982954_SIMATIC_Comm_DOKU_v201_e.doc 19.2.3 S7-400 to PN/IE . 85 19.2.4 S7-1200 to PN/IE . 86 19.2.5 S7-mEC to PN/IE . 87 19.2.6 Box PC to PN/IE . 88 19.2.7 Panel PC to PN/IE 90 19.2.8 WinAC MP to PN/IE . 92 19.2.9 WinAC RTX to PN/IE 93 19.3 PN/IE: Controller 1 = ET 200 CPU . 95 19.3.1 ET 200 CPU / ET 200 CPU 95 19.3.2 ET 200 CPU / S7-300 . 96 19.3.3 ET 200 CPU / S7-400 . 97 19.3.4 ET 200 CPU / S7-1200 . 98 19.3.5 ET 200 CPU / S7-mEC . 99 19.3.6 ET 200 CPU / Box PC 100 19.3.7 ET 200 CPU / Panel PC . 101 19.3.8 ET 200 CPU / WinAC MP . 102 19.3.9 ET 200 CPU / WinAC RTX . 103 19.4 PN/IE: Controller 1 = S7-300 104 19.4.1 (S7-300 / ET 200 CPU) 104 19.4.2 S7-300 / S7-300 . 105 19.4.3 S7-300 / S7-400 . 106 19.4.4 S7-300 / S7-1200 . 107 19.4.5 S7-300 / S7-mEC . 108 19.4.6 S7-300 / Box PC . 109 19.4.7 S7-300 / Panel PC 110 19.4.8 S7-300 / WinAC MP . 111 19.4.9 S7-300 / WinAC RTX . 112 19.5 PN/IE: Controller 1 = S7-400 113 19.5.1 (S7-400 / ET 200 CPU) 113 19.5.2 (S7-400 / S7-300) . 113 19.5.3 S7-400 / S7-400 . 114 19.5.4 S7-400 / S7-1200 . 115 19.5.5 S7-400 / S7-mEC . 116 19.5.6 S7-400 / Box PC . 117 19.5.7 S7-400 / Panel PC 118 19.5.8 S7-400 / WinAC MP . 119 19.5.9 S7-400 / WinAC RTX . 120 19.6 PN/IE: Controller 1 = S7-1200 121 19.6.1 (S7-1200 / ET 200 CPU) 121 19.6.2 (S7-1200 / S7-300) . 121 19.6.3 (S7-1200 / S7-400) . 121 19.6.4 S7-1200 / S7-1200 . 122 19.6.5 S7-1200 / S7-mEC . 123 19.6.6 S7-1200 / Box PC . 124 19.6.7 S7-1200 / Panel PC 125 19.6.8 S7-1200 / WinAC MP . 126 19.6.9 S7-1200 / WinAC RTX . 127 19.7 PN/IE: Controller 1 = S7-mEC 128 19.7.1 (S7-mEC / ET 200 CPU) 128 19.7.2 (S7-mEC / S7-300) . 128 19.7.3 (S7-mEC / S7-400) . 128 19.7.4 (S7-mEC / S7-1200) . 128 19.7.5 S7-mEC / S7-mEC . 129 19.7.6 S7-mEC / Box PC . 130 19.7.7 S7-mEC / Panel PC 131 19.7.8 S7-mEC / WinAC MP . 132 19.7.9 S7-mEC / WinAC RTX . 133 1 Preliminary Remarks on the Document 1.1 Subject of the document CPU-CPU Communication with SIMATIC V2.01, Entry ID: 20982954 6 / 401 Copyright Siemens AG 2011 All rights reserved 20982954_SIMATIC_Comm_DOKU_v201_e.doc 19.8 PN/IE: Controller 1 = Box PC . 134 19.8.1 (Box PC / ET 200 CPU) 134 19.8.2 (Box PC / S7-300) 134 19.8.3 (Box PC / S7-400) 134 19.8.4 (Box PC / S7-1200) 134 19.8.5 (Box PC / S7-mEC) 134 19.8.6 Box PC / Box PC 135 19.8.7 Box PC / Panel PC . 136 19.8.8 Box PC / WinAC MP . 137 19.8.9 Box PC / WinAC RTX . 138 19.9 PN/IE: Controller 1 = Panel PC 139 19.9.1 (Panel PC / ET 200 CPU) 139 19.9.2 (Panel PC / S7-300) . 139 19.9.3 (Panel PC / S7-400) . 139 19.9.4 (Panel PC / S7-1200) . 139 19.9.5 (Panel PC / S7-mEC) . 139 19.9.6 (Panel PC / Box PC) . 139 19.9.7 Panel PC / Panel PC 140 19.9.8 Panel PC / WinAC MP 141 19.9.9 Panel PC / WinAC RTX 142 19.10 PN/IE: Controller 1 = WinAC MP 143 19.10.1 (WinAC MP / ET 200 CPU) 143 19.10.2 (WinAC MP / S7-300) . 143 19.10.3 (WinAC MP / S7-400) . 143 19.10.4 (WinAC MP / S7-1200) . 143 19.10.5 (WinAC MP / S7-mEC) . 143 19.10.6 (WinAC MP / Box PC) 143 19.10.7 (WinAC MP / Panel PC) . 143 19.10.8 WinAC MP / WinAC MP . 144 19.10.9 WinAC MP / WinAC RTX . 145 19.11 PN/IE: Controller 1 = WinAC RTX 146 19.11.1 (WinAC RTX / ET 200 CPU) 146 19.11.2 (WinAC RTX / S7-300) . 146 19.11.3 (WinAC RTX / S7-400) . 146 19.11.4 (WinAC RTX / S7-1200) . 146 19.11.5 (WinAC RTX / S7-mEC) . 146 19.11.6 (WinAC RTX / Box PC) 146 19.11.7 (WinAC RTX / Panel PC) . 146 19.11.8 (WinAC RTX / WinAC MP) . 146 19.11.9 WinAC RTX / WinAC RTX 147 19.12 PN/IE: Overview of communication types 148 20 Selection Aid: PROFIBUS (PB) . 150 20.1 PB: Content of the chapter . 150 20.2 PB: Interfaces and communication types . 151 20.2.1 ET 200 CPU to PB . 151 20.2.2 S7-300 to PB 152 20.2.3 S7-400 to PB 153 20.2.4 S7-1200 to PB 154 20.2.5 S7-mEC to PB 155 20.2.6 Box PC to PB . 156 20.2.7 Panel PC to PB 157 20.2.8 WinAC MP to PB 158 20.2.9 WinAC RTX to PB 159 20.3 PB: Controller 1 = ET 200 CPU 160 20.3.1 ET 200 CPU / ET 200 CPU 160 20.3.2 ET 200 CPU / S7-300 . 161 1 Preliminary Remarks on the Document 1.1 Subject of the document CPU-CPU Communication with SIMATIC V2.01, Entry ID: 20982954 7 / 401 Copyright Siemens AG 2011 All rights reserved 20982954_SIMATIC_Comm_DOKU_v201_e.doc 20.3.3 ET 200 CPU / S7-400 . 162 20.3.4 ET 200 CPU / S7-mEC . 163 20.3.5 ET 200 CPU / Box PC 164 20.3.6 ET 200 CPU / Panel PC . 165 20.3.7 ET 200 CPU / WinAC MP . 166 20.3.8 ET 200 CPU / WinAC RTX . 167 20.4 PB: Controller 1 = S7-300 168 20.4.1 (S7-300 / ET 200 CPU) 168 20.4.2 S7-300 / S7-300 . 169 20.4.3 S7-300 / S7-400 . 170 20.4.4 S7-300 / S7-mEC . 171 20.4.5 S7-300 / Box PC . 172 20.4.6 S7-300 / Panel PC 173 20.4.7 S7-300 / WinAC MP . 174 20.4.8 S7-300 / WinAC RTX . 175 20.5 PB: Controller 1 = S7-400 176 20.5.1 (S7-400 / ET 200 CPU) 176 20.5.2 (S7-400 / S7-300) . 176 20.5.3 S7-400 / S7-400 . 177 20.5.4 S7-400 / S7-mEC . 178 20.5.5 S7-400 / Box PC . 179 20.5.6 S7-400 / Panel PC 180 20.5.7 S7-400 / WinAC MP . 181 20.5.8 S7-400 / WinAC RTX . 182 20.6 PB: Controller 1 = S7-mEC 183 20.6.1 (S7-mEC / ET 200 CPU) 183 20.6.2 (S7-mEC / S7-300) . 183 20.6.3 (S7-mEC / S7-400) . 183 20.6.4 S7-mEC / S7-mEC . 184 20.6.5 S7-mEC / Box PC . 185 20.6.6 S7-mEC / Panel PC 186 20.6.7 S7-mEC / WinAC MP . 187 20.6.8 S7-mEC / WinAC RTX . 188 20.7 PB: Controller 1 = Box PC 189 20.7.1 (Box PC / ET 200 CPU) 189 20.7.2 (Box PC / S7-300) 189 20.7.3 (Box PC / S7-400) 189 20.7.4 (Box PC / S7-mEC) 189 20.7.5 Box PC / Box PC 190 20.7.6 Box PC / Panel PC . 191 20.7.7 Box PC / WinAC MP . 192 20.7.8 Box PC / WinAC RTX . 193 20.8 PB: Controller 1 = Panel PC . 194 20.8.1 (Panel PC / ET 200 CPU) 194 20.8.2 (Panel PC / S7-300) . 194 20.8.3 (Panel PC / S7-400) . 194 20.8.4 (Panel PC / S7-mEC) . 194 20.8.5 (Panel PC / Box PC) . 194 20.8.6 Panel PC / Panel PC 195 20.8.7 Panel PC / WinAC MP 196 20.8.8 Panel PC / WinAC RTX 197 20.9 PB: Controller 1 = WinAC MP 198 20.9.1 (WinAC MP / ET 200 CPU) 198 20.9.2 (WinAC MP / S7-300) . 198 20.9.3 (WinAC MP / S7-400) . 198 20.9.4 (WinAC MP / S7-mEC) . 198 20.9.5 (WinAC MP / Box PC) 198 1 Preliminary Remarks on the Document 1.1 Subject of the document CPU-CPU Communication with SIMATIC V2.01, Entry ID: 20982954 8 / 401 Copyright Siemens AG 2011 All rights reserved 20982954_SIMATIC_Comm_DOKU_v201_e.doc 20.9.6 (WinAC MP / Panel PC) . 198 20.9.7 WinAC MP / WinAC MP . 199 20.9.8 WinAC MP / WinAC RTX . 200 20.10 PB: Controller 1 = WinAC RTX 201 20.10.1 (WinAC RTX / ET 200 CPU) 201 20.10.2 (WinAC RTX / S7-300) . 201 20.10.3 (WinAC RTX / S7-400) . 201 20.10.4 (WinAC RTX / S7-mEC) . 201 20.10.5 (WinAC RTX / Box PC) 201 20.10.6 (WinAC RTX / Panel PC) . 201 20.10.7 (WinAC RTX / WinAC MP) . 201 20.10.8 WinAC RTX / WinAC RTX 202 20.11 PB: Overview of communication types . 203 21 Selection Aid: MPI (MPI) 205 21.1 MPI: Content of the chapter . 205 21.2 MPI: Interfaces and communication types . 206 21.2.1 ET 200 CPU to MPI 206 21.2.2 S7-300 to MPI 207 21.2.3 S7-400 to MPI 208 21.3 MPI: Controller 1 = ET 200 CPU 209 21.3.1 ET 200 CPU / ET 200 CPU 209 21.3.2 ET 200 CPU / S7-300 . 210 21.3.3 ET 200 CPU / S7-400 . 211 21.4 MPI: Controller 1 = S7-300 . 212 21.4.1 (S7-300 / ET 200 CPU) 212 21.4.2 S7-300 / S7-300 . 212 21.4.3 S7-300 / S7-400 . 213 21.5 MPI: Controller 1 = S7-400 . 214 21.5.1 (S7-400 / ET 200 CPU) 214 21.5.2 (S7-400 / S7-300) . 214 21.5.3 S7-400 / S7-400 . 214 21.6 MPI: Overview of communication types . 215 22 Selection Aid: SIMATIC Backplane Bus 216 22.1 Content of the chapter 216 22.2 Interfaces and communication types 217 22.3 Controller 1 = S7-400 / Controller 2 = S7-400 . 217 22.4 Overview of communication types . 218 23 Selection Aid: Serial Interface (PtP) 219 23.1 Content of the chapter 219 23.2 ET 200 CPU to PtP 220 23.3 S7-300 to PtP . 221 23.4 S7-400 to PtP . 222 23.5 S7-1200 to PtP . 223 23.6 S7-mEC to PtP . 224 23.7 Box PC to PtP 225 23.8 Panel PC to PtP . 225 23.9 WinAC MP to PtP . 225 23.10 WinAC RTX to PtP . 225 23.11 Decentralized station 226 24 Information Part 2 227 24.1 Communication types . 227 24.2 Specific application examples 228 24.3 Performance data . 228 1 Preliminary Remarks on the Document 1.1 Subject of the document CPU-CPU Communication with SIMATIC V2.01, Entry ID: 20982954 9 / 401 Copyright Siemens AG 2011 All rights reserved 20982954_SIMATIC_Comm_DOKU_v201_e.doc PART 3: Communication types 229 PART 3: Structure and content . 230 25 Preliminary Remarks . 231 25.1 Characteristics 231 25.2 Properties (Communication types – detailed table) . 231 25.2.1 Purpose of this table . 231 25.2.2 Structure of the table 232 25.2.3 Explanation of the criteria . 233 25.3 Application 236 25.4 Overview of user interfaces 236 25.5 User interface . 237 26 SIMATIC S7-specific communication 238 26.1 Characteristics 238 26.2 Overview 238 27 Global Data Communication 239 27.1 Characteristics 239 27.2 Properties . 240 27.3 Application 242 27.4 Overview of user interfaces 242 27.5 User interface GD_SND, GD_RCV 243 27.5.1 Description . 243 27.5.2 Parameters for GD_SND 243 27.5.3 Parameters for GD_RCV 243 28 S7 Basic Communication 244 28.1 Characteristics 244 28.2 Properties . 245 28.3 Application 247 28.3.1 X-blocks 247 28.3.2 I-blocks . 248 28.4 Overview of user interfaces 248 28.5 User interface X_SEND/ X_RCV . 249 28.5.1 Description . 249 28.5.2 Parameters for X_SEND 249 28.5.3 Parameters for X_RCV . 249 28.6 User interface X_PUT/ X_GET 250 28.6.1 Description . 250 28.6.2 Parameters for X_PUT . 250 28.6.3 Parameters for X_GET . 250 28.7 User interface I_PUT, I_GET . 251 28.7.1 Description . 251 28.7.2 Parameters for I_PUT 251 28.7.3 Parameters for I_GET 251 29 S7 Communication 252 29.1 Characteristics 252 29.2 Properties . 253 29.3 Application 256 29.4 Overview of user interfaces 257 29.5 User interface: USEND / URCV . 258 29.5.1 Description . 258 29.5.2 Parameters for USEND 259 29.5.3 Parameters for URCV 259 1 Preliminary Remarks on the Document 1.1 Subject of the document CPU-CPU Communication with SIMATIC V2.01, Entry ID: 20982954 10 / 401 Copyright Siemens AG 2011 All rights reserved 20982954_SIMATIC_Comm_DOKU_v201_e.doc 29.6 User interface: BSEND / BRCV . 260 29.6.1 Description . 260 29.6.2 Parameters for BSEND 261 29.6.3 Parameters for BRCV . 261 29.7 User interface PUT, GET . 262 29.7.1 Description . 262 29.7.2 Parameters for PUT . 262 29.7.3 Parameters for GET . 263 29.8 User interface: USEND_E / URCV_E 264 29.8.1 Description . 264 29.8.2 Parameters for USEND_E . 264 29.8.3 Parameters for URCV_E 264 29.9 User interface PUT_E, GET_E 265 29.9.1 Description . 265 29.9.2 Parameters for PUT_E . 265 29.9.3 Parameters for GET_E . 265 30 PROFINET/Industrial Ethernet (PN/IE) . 266 30.1 Characteristics 266 30.2 Overview 266 31 PN/IE: open communication with send/receive blocks . 267 31.1 Characteristics 267 31.2 Properties . 269 31.3 Application 272 31.4 Overview of user interfaces 273 31.5 User interface AG_xSEND, AG_xRECV 274 31.5.1 Description . 274 31.5.2 Parameters for AG_SEND, AG_LSEND, AG_SSEND 275 31.5.3 Parameters for AG_RECV, AG_LRECV, AG_SSRECV 276 31.6 User interface FETCH, WRITE (server) . 277 32 PN/IE: open communication with T blocks . 278 32.1 Characteristics 278 32.2 Properties . 280 32.3 Application 283 32.4 Overview of user interfaces 284 32.5 User interface TSEND / TRCV . 286 32.5.1 Description . 286 32.5.2 Parameters for TSEND 286 32.5.3 Parameters for TRCV . 287 32.6 User interface TUSEND / TURCV 288 32.6.1 Description . 288 32.6.2 Parameters for TUSEND 288 32.6.3 Parameters for TURCV 289 32.7 User interface for connection blocks 290 32.7.1 Description . 290 32.7.2 Parameters for TCON 290 32.7.3 Parameters for TDISCON 290 32.8 User interface TSEND_C / TRCV_C 291 32.8.1 Description . 291 32.8.2 Parameters for TSEND_C 291 32.8.3 Parameters for TRCV_C 292 32.9 User interface FETCH, WRITE (Server) 293 32.9.1 Description . 293 32.9.2 Parameters for FW_TCP 293 32.9.3 Parameters for FW_IOT . 293 1 Preliminary Remarks on the Document 1.1 Subject of the document CPU-CPU Communication with SIMATIC V2.01, Entry ID: 20982954 11 / 401 Copyright Siemens AG 2011 All rights reserved 20982954_SIMATIC_Comm_DOKU_v201_e.doc 33 PN/IE: CBA . 294 33.1 Characteristics 294 33.2 Application 296 33.3 User interfaces . 296 34 PN/IE: PNIO 297 34.1 Characteristics 297 34.2 Properties . 298 34.3 Application 300 34.4 Overview of user interfaces 300 34.5 User interface PNIO_SEND, PNIO_RECV 301 34.5.1 Description . 301 34.5.2 Parameters for PNIO_SEND 302 34.5.3 Parameters for PNIO_RECV 302 34.6 User interface DPRD_DAT, DPWR_DAT 303 34.6.1 Description . 303 34.6.2 Parameters for DPRD_DAT . 303 34.6.3 Parameters for DPWR_DAT 303 35 PROFIBUS (PB) 304 35.1 Characteristics 304 35.2 Overview 304 36 PB: open communication with send/receive blocks 305 36.1 Characteristics 305 36.2 Properties . 306 36.3 Application 308 36.4 Overview of user interfaces 308 36.5 User interface: AG_xSEND, AG_xRECV . 309 36.5.1 Description . 309 36.5.2 Parameters for AG_SEND, AG_LSEND 310 36.5.3 Parameters for AG_RECV, AG_LRECV 310 37 PB: FMS Communication 311 37.1 Characteristics 311 37.2 Properties . 312 37.3 Application 314 37.4 Overview of user interfaces 314 37.5 User interface: READ . 315 37.5.1 Description . 315 37.5.2 Parameters . 315 37.6 User interface WRITE 316 37.6.1 Description . 316 37.6.2 Parameter . 316 37.7 User interface REPORT . 317 37.7.1 Description . 317 37.7.2 Parameters . 317 38 PB: DP Communication 318 38.1 Characteristics 318 38.2 Properties . 319 38.3 Application 321 38.4 Overview of user interfaces 321 38.5 User interface DP_SEND, DP_RECV 322 38.5.1 Description . 322 38.5.2 Parameters for DP_SEND . 323 1 Preliminary Remarks on the Document 1.1 Subject of the document CPU-CPU Communication with SIMATIC V2.01, Entry ID: 20982954 12 / 401 Copyright Siemens AG 2011 All rights reserved 20982954_SIMATIC_Comm_DOKU_v201_e.doc 38.5.3 Parameters for DP_RECV . 323 38.6 User interface DPRD_DAT, DPWR_DAT 324 38.6.1 Description . 324 38.6.2 Parameters for DPRD_DAT . 324 38.6.3 Parameters for DPWR_DAT 324 39 Serial Interface . 325 39.1 Characteristics 325 39.2 Overview 325 40 ASCII and 3964(R) and RK 512 . 326 40.1 Characteristics 326 40.1.1 Classification 326 40.1.2 Characteristics ASCII . 327 40.1.3 Characteristics 3964(R) 328 40.1.4 Characteristics RK 512 . 329 40.2 Application 330 40.3 Properties . 331 40.4 Overview of user interfaces ASCII and 3964(R) 333 40.5 ASCII and 3964(R): user interface ET 200S 334 40.5.1 Description . 334 40.5.2 Parameters for S_SEND 334 40.5.3 Parameters for S_RCV . 335 40.6 ASCII / 3964(R): user interface S7-300 CPU . 336 40.6.1 Description . 336 40.6.2 Parameters for SEND_PTP . 336 40.6.3 Parameters for RCV_PTP 337 40.7 ASCII / 3964(R): user interface CP 340 . 338 40.7.1 Description . 338 40.7.2 Parameters for P_SEND 338 40.7.3 Parameters for P_RCV . 339 40.8 ASCII / 3964(R): user interface CP 341 . 340 40.8.1 Description . 340 40.8.2 Parameters for P_SND_RK . 340 40.8.3 Parameters for P_RCV_RK . 341 40.9 ASCII / 3964(R): user interface CP 440 . 342 40.9.1 Description . 342 40.9.2 Parameters for SEND_440 342 40.9.3 Parameters for REC_440 . 343 40.10 ASCII / 3964(R): user interface CP 441 . 344 40.10.1 Description . 344 40.10.2 Parameters for BSEND 345 40.10.3 Parameters for BRCV . 345 40.11 Overview of user interfaces RK 512 . 346 40.12 RK 512: user interface S7-300 CPU 347 40.12.1 Description . 347 40.12.2 Sending data 347 40.12.3 Fetching data 347 40.12.4 Parameters for SEND_RK . 348 40.12.5 Parameters for SERVE_RK . 349 40.12.6 Parameters for FETCH_RK . 350 40.12.7 Parameters for SERVE_RK . 351 40.13 RK 512: user interface CP 341 352 40.13.1 Description . 352 40.13.2 Sending data 352 40.13.3 Fetching data 352 40.13.4 Parameters for P_SND_RK . 353 1 Preliminary Remarks on the Document 1.1 Subject of the document CPU-CPU Communication with SIMATIC V2.01, Entry ID: 20982954 13 / 401 Copyright Siemens AG 2011 All rights reserved 20982954_SIMATIC_Comm_DOKU_v201_e.doc 40.13.5 Parameters for P_RCV_RK . 354 40.13.6 Parameters for P_SND_RK . 355 40.13.7 Parameters for P_RCV_RK . 356 40.14 RK 512: user interface CP 441 357 40.14.1 Description . 357 40.14.2 Sending data 357 40.14.3 Sending data 357 40.14.4 Parameters for BSEND 359 40.14.5 Parameters for BRCV . 359 40.14.6 Parameters for BSEND 360 40.14.7 Parameters for PUT . 360 40.14.8 Parameters for GET . 361 41 User-defined protocol . 362 41.1 Characteristics 362 41.2 Application 362 41.3 User interface S7-1200 362 41.3.1 Description . 362 41.3.2 Parameters for SEND_PTP . 363 41.3.3 Parameters for RCV_PTP 363 42 Information Part 3 364 PART 4: Communication with third-party controllers without using an open standard 365 PART 4: Structure and content . 366 43 Preliminary remarks 367 44 Modbus/TCP . 368 44.1 Characteristics 368 44.2 Overview of user interfaces 368 44.2.1 General information 368 44.2.2 Connection via SIMATIC CPU . 369 44.2.3 Connection via SIMATIC CP 369 44.2.4 Establishing the TCP connection . 369 45 Modbus serial (RTU format) . 370 45.1 Characteristics 370 45.2 Overview of user interfaces 371 45.2.1 General information 371 45.2.2 Connection via SIMATIC CP 371 45.2.3 Modbus master . 371 45.2.4 Modbus slave . 372 45.3 Modbus master: user interface ET 200S 373 45.4 Modbus master: user interface CP 341 373 45.4.1 Description . 373 45.4.2 Parameter P_SND_RK . 373 45.4.3 Parameter P_RCV_RK . 374 45.5 Modbus master: user interface CP 441-2 375 45.5.1 Description . 375 45.5.2 Parameter BSEND . 375 45.5.3 Parameter BRCV 376 45.6 Modbus master: user interface CM 1241 . 377 45.6.1 Description . 377 45.6.2 Parameter MB_MASTER . 377 45.7 Modbus slave: user interface ET 200S 378 1 Preliminary Remarks on the Document 1.1 Subject of the document CPU-CPU Communication with SIMATIC V2.01, Entry ID: 20982954 14 / 401 Copyright Siemens AG 2011 All rights reserved 20982954_SIMATIC_Comm_DOKU_v201_e.doc 45.7.1 Description . 378 45.7.2 Parameter S_MODB 378 45.8 Modbus slave: user interface CP 341 379 45.8.1 Description . 379 45.8.2 Parameter FB80 . 379 45.9 Modbus slave: user interface CP 441-2 . 380 45.9.1 Description . 380 45.9.2 Parameter FB180 . 380 45.10 Modbus slave: user interface CM 1241 381 45.10.1 Description . 381 45.10.2 Parameter MB_SLAVE . 381 46 Information Part 4 382 PART 5: Appendix 383 PART 5: Structure and content . 384 47 Literature 385 47.1 Information . 385 47.2 FAQ 388 47.3 Applications from the Service & Support Portal . 388 48 Terms 389 49 Abbreviations . 391 50 Background Information . 392 50.1 ISO/OSI reference model . 392 50.2 Communication models 393 50.2.1 Client and server 393 50.2.2 Master and slave 394 50.2.3 Consumer and provider 395 50.3 Confirmation . 396 51 Discussed Components 397 51.1 Programming tools . 397 51.2 SIMATIC CPU 398 51.3 SIMATIC CP . 400 52 History . 401 52.1 Versions . 401 52.2 Main changes . 401