Skip to main content

Siemens Profinet IO

Profinet IO is an industrial Ethernet standard led by Siemens. It is most commonly used for communication between S7 PLCs and distributed I/O (ET200SP / ET200MP / external drives), and it can also communicate with S7 PLCs themselves.

This gateway supports Profinet communication through the common integration engine.


How is it different from S7?

ItemS7 (ISO-on-TCP)Profinet IO
Port10234962 / 34963 / 34964 (RT)
Communication modelrequest/response (polling)cyclic IO exchange (real time)
Address notation%DB1.DBW0slot/subslot/index
Primary useReading DB variables from a PLCProcess data of distributed I/O / drives
GSDMLRequired (device specification XML)
If you only need to read DB blocks from an S7 PLC

The %DB1.DBW0 notation on the Siemens S7 page is far simpler. Profinet is the option for cases where you need to communicate directly with the distributed I/O itself or where cyclic data exchange is required.


Registration form entries

FieldWhat to enterExample
IP addressProfinet device IP192.168.0.160
PortProfinet port34962 (RT_CLASS_1 default)
Device Name (device-name)Profinet device name (DCP)et200sp-1
GSDML file pathDevice specification XML/opt/.../gsd/GSDML-...xml
GSDML is the key

Without the GSDML (the XML supplied by the device manufacturer), Profinet has no way of knowing what a slot/subslot/parameter means. Download the model-specific GSDML from the device manufacturer's site (Siemens / Festo / SEW / Bosch Rexroth, etc.) and register it with the gateway.


PLC address notation for tags

Data on a Profinet device is identified by slot / subslot / index coordinates.

NotationMeaning
slot:1/subslot:1/index:0slot 1, subslot 1, parameter index 0
slot:2/subslot:1/inputcyclic input data of slot 2
slot:2/subslot:1/outputcyclic output data of slot 2

Alternatively, you can use the module name from the GSDML directly.

NotationMeaning
DI8.input.0channel 0 of an 8-channel digital input module
AI4.value.0channel 0 of a 4-channel analog input module
Drive.actualSpeedactual speed of a drive

What slot / subslot mean

  • slot — The slot number of the Profinet device. 0 is the device itself; modules start at 1
  • subslot — A sub-module within a slot (usually 1)
  • index — The byte offset of the IO data, or the parameter number

The entire "Module → Submodule → IOData" tree is defined inside the GSDML.


Matching data formats

MeaningData formatFormat modifier
Digital input/output (1 bit)Boolean(leave empty)
16-bit integerInteger(leave empty)
32-bit integerIntegerDW
32-bit floatFloatREAL
String (devicename, ordering information)String(leave empty)

The byte order is big-endian (Profinet standard).


Common problems and solutions

SymptomPossible causeSolution
"Device not reachable (DCP)"Profinet device name does not matchCheck the device-name with TIA Portal / PRONETA. Assign the name with a DCP command
"GSDML not loaded"Wrong XML pathUse the exact absolute path and check file permissions
"Slot/subslot not found"Does not match the device hardware configurationCheck that the actually installed modules match the GSDML
Values are staleRT cyclic exchange not startedVerify that the application relation (AR) has started
AR establishment failsAnother master (S7 PLC) already holds the connectionA Profinet device normally allows only one master. Use either the gateway or the PLC, not both
Do not access the distributed I/O of a PLC in operation directly

In a live production environment, attaching the gateway directly over Profinet to the distributed I/O of an S7 PLC (ET200SP, etc.) can conflict with the PLC and stop the line. On production lines, it is safer to read the PLC's DB variables via S7.


Next steps