Extended instructions
9.7 Diagnostics (PROFINET or PROFIBUS)
S7-1200 Programmable controller
462 System Manual, V4.2, 09/2016, A5E02486680-AK
ERROR OUT Bool STATUS parameter:
• 0: No error.
• 1: An error occurred during execution of the instruction.
Detailed information is output using the STATUS parameter.
STATUS OUT Word STATUS parameter:
The parameter is only set for the duration of one call. To dis-
play the status, you should therefore copy STATUS to a free
● Use the "IF_CONF_v4" structure at the DATA parameter to store the address parameter
according to IPv4:
ID of the "IF_CONF_v4" structure
Length of data read in BYTE
4 ... 5 Mode UNIT 0 Not relevant for the "GetStationInfo" instruction (left at
6 ... 9 InterfaceAddress ARRAY [1..4] of
BYTE
- IP address of the IO device in the format IP_V4 (for
example, 192.168.3.10):
• addr[1] = 192
• addr[2] = 168
• addr[3] = 3
• addr[4] = 10
10 …
13
SubnetMask ARRAY [1..4] of
BYTE
- Subnet mask of the IO device in the format IP_V4 (for
example, 255.255.255.0):
• addr[1] = 255
• addr[2] = 255
• addr[3] = 255
• addr[4] = 0
14 ...
17
DefaultRouter ARRAY [1..4] of
BYTE
- IP address of the router in the format IP_V4 (for ex-
ample, 192.168.3.1):
• addr[1] = 192
• addr[2] = 168
• addr[3] = 3
• addr[4] = 1