Extended instructions
9.7 Diagnostics (PROFINET or PROFIBUS)
S7-1200 Programmable controller
464 System Manual, V4.2, 09/2016, A5E02486680-AK
In the example below, you use the GetStationInfo instruction to read the IP address data of
an IO device and write the information to a data block. The IP address data includes the
IP address, subnet mask, and (if used) the address data of the router.
The IO controller executes the GetStationInfo instruction, and the instruction reads the
IP address information of a lower-level IO device (in this example, an ET200SP):
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.