EasyManua.ls Logo

Siemens SIMATIC S7-1200 - Page 462

Siemens SIMATIC S7-1200
1614 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Extended instructions
9.7 Diagnostics (PROFINET or PROFIBUS)
S7-1200 Programmable controller
462 System Manual, V4.2, 09/2016, A5E02486680-AK
Parameter
Declaration
Data type
Description
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
data area.
DATA parameter
Use the "IF_CONF_v4" structure at the DATA parameter to store the address parameter
according to IPv4:
Byte
Parameter
Data type
Start value
Description
0 … 1
Id
UINT
30
ID of the "IF_CONF_v4" structure
2 … 3
Length
UNIT
18
Length of data read in BYTE
4 ... 5 Mode UNIT 0 Not relevant for the "GetStationInfo" instruction (left at
"0")
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

Table of Contents

Other manuals for Siemens SIMATIC S7-1200

Related product manuals