ST_SockAddr
Structure with address information for an open socket.
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
nPort: Internet Protocol (IP) port;
sAddr: Internet protocol address (Ipv4) separated by dots as a string, e.g. "172.34.12.3";
Requirements
Development environment | Target system type | PLC libraries to be linked |
---|---|---|
TwinCAT version 2.8.0 or higher | PC or CX (x86) | TcpIp.Lib ( Standard.Lib; TcBase.Lib; TcSystem.Lib are included automatically ) |
TwinCAT v2.10.0 Build >= 1301 | CX (ARM) |