Extended instructions
9.7 Diagnostics (PROFINET or PROFIBUS)
S7-1200 Programmable controller
System Manual, V4.2, 09/2016, A5E02486680-AK
461
The instruction displays the execution status of the read job using the BUSY, DONE, and
ERROR output parameters and the STATUS output parameter.
Note
Address the IO device using only the hardware identifier of the station
The station, the IO device, and PROFINET interface have their own hardware identifi
er. Use
only the hardware identifier of the station for the GetStationInfo instruction.
If a PROFINET interface is addressed using the LADDR parameter, for example, the
address data is not read and the CPU generates a "8092" error code.
data of an integrated PROFINET interface or a CM/CP module in the
central configuration, use the "RDREC" instruction.
The following table shows the parameters of the GetStationInfo instruction:
REQ IN Bool Control parameter request
Activates the reading of the information with REQ = "1".
LADDR IN HW_DEVICE Hardware identifier of the station of the IO device
The number is taken from the properties of the station in the
Network view or from the "System constants" tab of the default
DETAIL IN HW_SUBMODUL
The DETAIL parameter is not used. Leave the parameter un-
MODE IN UNIT Selection of address data to be read:
• MODE = 1: Address parameter according to IPv4 (S7-1200
CPUs as of firmware version V4.2)
• MODE = 2: MAC address (S7-1200 CPUs as of firmware
version V4.2)
DATA IN_OUT Variant Pointer to the area to which the program writes the address
data of the IO device. Use the "IF_CONF_v4" structure for
MODE = 1, and the "IF_CONF_MAC" structure for MODE = 2.
DONE OUT Bool The program executed the instruction successfully. The pro-
gram transferred the address data to the DATA parameter.
BUSY OUT Bool STATUS parameter:
• 0: Execution of the instruction complete.
• 1: Execution of the instruction not yet complete.