ST_SockAddr
The structure contains address information of an open socket.
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
Values
Name | Type | Description |
---|---|---|
nPort | UDINT | Internet Protocol (IP) port |
sAddr | STRING(15) | Internet Protocol address separated by periods (Ipv4) in the form of a string e.g.: "172.34.12.3" |
Requirements
Development environment |
Target system type |
PLC libraries to include (category group) |
---|---|---|
TwinCAT v3.1.0 |
PC, or CX (x86, X64, ARM) |
Tc2_TcpIp (communication) |