Rockwell Automation 1768-EWEB EtherNet/IP Web Server Module User Manual User Manual
Page 152
![background image](/manuals/581540/152/background.png)
Publication ENET-UM527E-EN-P - October 2006
152 Socket Interface
where:
MSG Source Length
Specify 16 bytes (Timeout + Addr + BufLen) + number of bytes to
write
MSG Destination Element
The MSG instruction returns the number of bytes that were written.
Specify a DINT tag.
Considerations
See Programming Considerations on page 135 for more information.
Element
Data Type
Description
Timeout
DINT
Specify the timeout in milliseconds
ToAddr
structure
A user-defined structure that specifies the address to write.
Family
INT
Specify the address family. Must be 2.
Port
INT
Specify a local port number, or set to 0 (the local port number will be
chosen by the web server). For TCP client operations, specify 0 unless
you want a specific local port number. For TCP server communications,
specify the port number on which to accept incoming connection
requests. For UDP, to receive datagrams on a specific port, you must
specify a local port number.
Addr
DINT
Specify an IP address. Typically, set to 0 (any address).
BufLen
DINT
Specify the number of bytes of data to write.
Buf
SINT array
Specify the data to write.