Siemens S7 ISOTCP
Siemens S7 ISOTCP is a protocol developed by Siemens for communication with Siemens S7 series PLCs. This protocol is based on the TCP/IP protocol stack and uses the ISO-TSAP protocol for handling connections and data transmission. It enables read and write operations on various data types of the PLC, including bits, bytes, word, double word, timers, and counters.
The implementation of S7 ISOTCP in Neuron is divided into two plugins.
- The Siemens S7 ISOTCP plugin is mainly used to connect to PLC modules such as Siemens S200, S200smart, S1200, and S1500.
- The Siemens S7 ISOTCP for 300/400 plugin is mainly used to connect to PLC modules such as Siemens S300 and S400 that have an Ethernet module.
Go to Configuration -> South Devices, then click Add Device to add the driver. Configure the following settings in the popup dialog box.
- Name: The name of this device node.
- Plugin: Select the Siemens S7 ISOTCP plugin or Siemens S7 ISOTCP for 300/400.
|Siemens S7 ISOTCP||For Siemens S200, S200smart, S1200, S1500 PLC|
|Siemens S7 ISOTCP for 300/400||For Siemens S300, S400 PLC|
After clicking Create, you will be redirected to the Device Configuration page, where we will set up the parameters required for Neuron to establish a connection with the northbound application. You can also click the device configuration icon on the southbound device card to enter the Device Configuration interface.
|PLC IP Address||Target PLC IPv4 Address|
|PLC Port||Target PLC port, default 102|
|PDU Size||PDU size, default 960|
|PLC Module||Target PLC module, S7-200/300/400/1200/1500|
|Connection Type||Only for S7-300/400/1200/1500, Connection type, default PG|
|CPU Rack||Only for S7-300/400/1200/1500, PLC CPU rack, default 0|
|CPU Slot||Only for S7-300/400/1200/1500, PLC CPU slot, default 1|
|Local TSAP||Only for S7-200, local TSAP|
|Remote TSAP||Only for S7-200, remote TSAP|
When interfacing with Siemens S7 1200/1500 PLC using the Siemens S7 ISOTCP plugin, certain modifications are required in the Siemens software (TIA16) settings:
optimized block accessmust be turned off.
access levelmust be full and the connection mechanism must allow GET/PUT.
For detailed operating steps, please refer to Tailor S7 1200/1500 PLC for Effective ISOTCP Plugin Use.
Configure Data Groups and Tags
After the plug-in is added and configured, the next step is to establish communication between your device and Neuron by adding groups and tags to the Southbound driver.
Once device configuration is completed, navigate to the South Devices page. Click on the device card or device row to access the Group List page. Here, you can create a new group by clicking on Create, then specifying the group name and data collection interval.
Upon successfully creating a group, click on its name to proceed to the Tag List page. This page allows you to add device tags for data collection. You'll need to provide information such as the tag address, attributes, and data type.
For information on general configuration items, see Connect to Southbound Devices. The subsequent section will concentrate on configurations specific to the driver.
|AREA||DATA TYPE||ATTRIBUTE||REMARK||PLC Area|
|F||int16/uint16/bit||read/write||flag||FLAG Memory M|
|DB||int8/uint8/int16/uint16/bit/int32/uint32/float/double/string||read/write||global DB block||Variable Memory V, DB index 1|
For the global data block DB, in the PLC side of the address such as DBX, DBW, DBB, etc., directly converted to DBW can be, do not need to do byte conversion, such as DBX1 -> DBW1.
|I0||int16||I area, address is 0|
|I1||uint16||I area, address is 1|
|O2||int16||O area, address is 2|
|O3||uint16||O area, address is 3|
|F4||int16||F area, address is 0|
|F5||int16||F area, address is 0|
|T6||int32||T area, address is 0|
|T7||int32||T area, address is 0|
|C8||uint16||C area, address is 0|
|C9||uint16||C area, address is 0|
|DB10.DBW10||int16||In a data block of 10, the starting data word is 10|
|DB12.DBW10||uint16||In a data block of 12, the starting data word is 10|
|DB10.DBW10||float||In a data block of 10, the starting data word is 10|
|DB11.DBW10||double||In a data block of 1 , the starting data word is 10|
Optional, referring to a bit of an address, range 0 - 7.
When the data type is a string type, it is required and indicates the length of the string.
|I0.0||bit||I area, address 0, bit 0|
|I0.1||bit||I area, address 0, bit 1|
|O1.0||bit||O area, address 1, bit 0|
|O1.2||bit||O area, address 1, bit 2|
|F2.1||bit||F area, address 2, bit 1|
|F2.2||bit||F area, address 2, bit 2|
|DB1.DBW10.0||bit||In a data block of 1, the starting data word is 10, bit 0|
|DB2.DBW1.7||bit||In a data block of 2, the starting data word is 1, bit 7|
|DB1.DBW12.20||string||In a data block of 1, the starting data word is 12, string length is 20|
This chapter also provides practical examples to facilitate a quick start.
After completing the point configuration, you can click Monitoring -> Data Monitoring to view device information and control devices. For details, refer to Data Monitoring.