Communication
11.2 PROFINET
S7-1200 Programmable controller
System Manual, V4.2, 09/2016, A5E02486680-AK
883
The table below details the form of the TDIAG_Status structure. The value of each element
is only valid if the instruction has been executed without errors. If an error occurs, the
content of the parameters will not change:
The following parameters are in the TDIAG_Status structure:
InterfaceID HW_ANY Interface ID (LADDR) of the CPU or the CM/CP.
ID CONN_OUC ID of the connection diagnosed. Following a successful call, the value of this ele-
ment is identical to the parameter ID of the "T_DIAG" instruction.
ConnectionType BYTE Protocol type used for connection:
• 0x01: Not used.
• ...
• 0x0B: TCP protocol (IP_v4)
• 0x0C: ISO-on-TCP protocol (RFC1006)
• 0x0D: TCP protocol (DNS)
• 0x0E: Dial-in protocol
• 0x0F: WDC protocol
• 0x10: SMTP protocol
• 0x11: TCP protocol
• 0x12: TCP and ISO-on-TCP protocol (RFC1006)
• 0x13: UDP protocol
• 0x14: Reserved
• 0x15: PROFIBUS bus access protocol (FDL)
• 0x16: ISO 8073 transport protocol (ISO native)
• ...
• 0x20: SMTP or SMTPS protocol - based on IPv4
• 0x21: SMTP or SMTPS protocol - based on IPv6
• 0x22: SMTP or SMTPS protocol - based on FQDN (
ully
ualified
omain
ame)
• ...
• 0x70: S7 connection
• Other: Reserved
ActiveEstablished BOOL
• FALSE: Locally, the passive connection end point
• TRUE: Locally, the active connection end point