Extended instructions
9.7 Diagnostics (PROFINET or PROFIBUS)
S7-1200 Programmable controller
456 System Manual, V4.2, 09/2016, A5E02486680-AK
The following example shows how you can read the station name of an ET 200SP
PROFINET IO device:
1. Configuring the ET 200SP:
– Create the ET 200SP with the station name "Conveyor_1" in the network view and
assign it to the same PROFINET IO system as the CPU.
– Assign the CPU as the IO controller for the ET 200SP.
– Use the default device number "1" located in the Properties under "Ethernet
addresses".
2. Assigning parameters for the Get_Name instruction:
– Enter the hardware ID of the IO system at the LADDR parameter. In this example, the
hardware ID is "269". You can find the hardware ID at the following location:
PLC tags > Show all tags > System constants tab > Local-PROFINET_IO-System
– Enter the device number of the ET 200SP at the STATION_NR parameter. In this
example, the device number is "1".
– Connect a tag with the data type STRING of a data block at the DATA parameter.