Extended instructions
9.7 Diagnostics (PROFINET or PROFIBUS)
S7-1200 Programmable controller
454 System Manual, V4.2, 09/2016, A5E02486680-AK
The following table shows the parameters of the Get_Name instruction:
LADDR IN HW_IOSYSTEM Hardware identifier (HW-IoSystem) of the distributed IO sys-
tem. The number is taken from the system constants or the
properties of the IO system.
STATION_NR IN UInt
• PROFINET IO device: Device number is applied in the
Network view from the properties of the IO device under
"Ethernet addresses".
• PROFIBUS slave: PROFIBUS address is applied in the
Network view from the properties of the PROFIBUS slave
under "PROFIBUS address".
Pointer to the area where the name is written.
DONE OUT Bool The instruction executes successfully. Name of the module
transfers to the area at the DATA parameter.
BUSY OUT Bool Status parameter:
• 0: Execution of the instruction complete.
• 1: Execution of the instruction not yet complete.
ERROR OUT Bool Status parameter:
• 0: No error
• 1: An error occurred during execution of the instruction.
The STATUS parameter contains detailed information.
Length of the name of the IO device (number of characters).
STATUS OUT Word Status parameter: The parameter is only set for the duration of
one call. To display the status, you should therefore copy
STATUS to a free data area.