Rockwell Automation 1768-EWEB EtherNet/IP Web Server Module User Manual User Manual

Page 142

Advertising
background image

Publication ENET-UM527E-EN-P - October 2006

142 Socket Interface

Select the data type you created in the Source Element field of the
Message Configuration dialog.

MSG Source Length

Specify the size of the user-defined structure for the Source Element.
In this example, CreateParams is 12 bytes.

MSG Destination Element

The MSG instruction returns the instance number of the socket it just
created to the Destination Element. Specify a DINT tag (in this
example, SockInstance).

Element

Data Type

Description

Type

DINT

Specify:

• 1 for TCP
• 2 for UDP

Addr

structure

A user-defined structure that specifies the address for the socket.

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).

Advertising
This manual is related to the following products: