Table of contents
Communication
Function Manual, 12/2017, A5E03735815-AF
9
9.3 Using the S7-1500 as an OPC UA server ............................................................................ 157
9.3.1 Configuring access to PLC tags ........................................................................................... 157
9.3.1.1 Managing write and read rights ............................................................................................ 157
9.3.1.2 Managing write and read rights for a complete DB .............................................................. 158
9.3.1.3 Accessing OPC UA server data ............................................................................................ 159
9.3.1.4 Exporting the XML file with the enabled PLC tags ............................................................... 160
9.3.2 Configuring the OPC UA server of the S7-1500 CPU .......................................................... 161
9.3.2.1 Enabling the OPC UA server ................................................................................................ 161
9.3.2.2 Access to the OPC UA server .............................................................................................. 162
9.3.2.3 General settings of the OPC UA server ................................................................................ 164
9.3.2.4 Settings of the server for subscriptions ................................................................................. 166
9.3.2.5 Handling client and server certificates .................................................................................. 167
9.3.2.6 Handling of the client certificates of the S7-1500 CPU ......................................................... 172
9.3.2.7 Generating server certificates with STEP 7 .......................................................................... 174
9.3.2.8 User authentication ............................................................................................................... 177
9.3.2.9 Users and roles with OPC UA function rights ....................................................................... 178
9.3.2.10 Licenses for the OPC UA server ........................................................................................... 179
9.3.3 Providing methods on the OPC UA server ........................................................................... 180
9.3.3.1 Server methods ..................................................................................................................... 180
9.3.4 OPC UA server instructions for the implementation of methods .......................................... 184
9.3.4.1 OPC_UA_ServerMethodPre ................................................................................................. 184
9.3.4.2 OPC_UA_ServerMethodPost ................................................................................................ 187
9.3.4.3 Example program for providing a method for OPC UA clients ............................................. 190
9.3.4.4 Error codes ...........................................................................................................................
194
9.3.
5 Using OPC UA information models ...................................................................................... 203
9.3.5.1 Using OPC UA companion specifications............................................................................. 203
9.3.5.2 Coordinating write and read rights for CPU tags .................................................................. 215
9.3.5.3 Notes on configuration limits when using server interfaces.................................................. 217
10 Routing ............................................................................................................................................... 219
10.1 S7 routing .............................................................................................................................. 219
10.2 Data record routing ............................................................................................................... 224
11 Connection resources ......................................................................................................................... 226
11.1 Connection resources of a station ........................................................................................ 226
11.2 Allocation of connection resources ....................................................................................... 230
11.3 Display of the connection resources ..................................................................................... 234
12 Connection diagnostics ....................................................................................................................... 238
13 Industrial Ethernet Security with CP 1543-1......................................................................................... 242
13.1 Firewall .................................................................................................................................. 243
13.2 Logging ................................................................................................................................. 244
13.3 NTP client ............................................................................................................................. 244
13.4 SNMP .................................................................................................................................... 245
13.5 VPN ....................................................................................................................................... 245
Glossary ............................................................................................................................................. 246
Index................................................................................................................................................... 258