Extended instructions
9.7 Diagnostics (PROFINET or PROFIBUS)
S7-1200 Programmable controller
466 System Manual, V4.2, 09/2016, A5E02486680-AK
3. Assigning parameters for the GetStationInfo instruction:
– Enter the hardware ID of the IO device at the LADDR parameter. The hardware
identifier uniquely identifies the product, and, in this example, the hardware ID is
"270". You can find the hardware ID at the following location: PLC tags > Show all
tags > System constants tab
Search for the IO device in the Name column and for the "Hw_Device" in the Data
type column. The associated value is the hardware ID that you enter at the LADDR
parameter.
– Select "1" (read address parameters according to IPv4) for the MODE parameter.
– Connect the IF_CONF_v4 structure at the DATA parameter.
Note
When using the dropdown list to make your selections for configuring the tag to the
DATA parameter, select the DB (in
the example, "GetStationInfo_Global_DB") and the
address"). In order to read the entire IF_CONF_v4 data type,
you must delete the period that appears following "IP
address" so that the final result
is: "GetStationInfo_Global_DB".IP
address
– Define PLC tags from your global DB for the output parameters of the instruction.