Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 1.47 KB

File metadata and controls

27 lines (20 loc) · 1.47 KB

S7Net Device configuration

This project provides a bridge to make SmartIOT.Connector able to use the S7Net library to connect to a Siemens PLC and to exchange data defined in its datablocks.

The supported connection string is as follows (square brackets for optional parameters):

s7net://Ip=<plc ip address>[;Port=<port>];CpuType=<cpuType>;Rack=<rack>;Slot=<slot>

The values for Rack and Slot should be taken from the hardware configuration in Simatic Manager. Usually we have Rack=0;Slot=2 for S7300 PLCs and Rack=0;Slot=0 for S71500 PLCs.

The CpuType should be one of the following:

  • S7200: S7 200 cpu type
  • Logo0BA8: Siemens Logo 0BA8
  • S7200Smart: S7 200 Smart
  • S73000: S7 300 cpu type
  • S7400: S7 400 cpu type
  • S71200: S7 1200 cpu type
  • S71500: S7 1500 cpu type

The TagIds must currently be numbers or be preceded by DB: Currently just Datablocks are supported by this library.

The S7Net library exchanges an important piece of data from the PLC that is the PDU size: by using this information, SmartIOT.Connector is able to maximize the performance of reads and writes, in particular by using the parameters if you enable them in the general device configuration section (see here)

"IsPartialReadsEnabled": true,
"IsWriteOptimizationEnabled": true,