ST_SockAddr

Die Struktur enthält Adressinformationen eines geöffneten Sockets.

Syntax

TYPE ST_SockAddr : (* Local or remote endpoint address *)
STRUCT
    nPort : UDINT; (* Internet Protocol (IP) port. *)
    sAddr : STRING(15); (* String containing an (Ipv4) Internet Protocol dotted address. *)
END_STRUCT
END_TYPE

Werte

Name

Typ

Beschreibung

nPort

UDINT

Internetprotokoll (IP) port

sAddr

STRING(15)

Durch Punkte getrennte Internetprotokolladresse (Ipv4) als String z. B.:"172.34.12.3"

Voraussetzungen

Entwicklungsumgebung

Zielplattform

Einzubindende SPS Bibliotheken (Kategoriegruppe)

TwinCAT v3.1.0

PC oder CX (x86, x64, ARM)

Tc2_TcpIp (Communication)