Openconnection, Msg configuration parameters – Rockwell Automation 1768-EWEB EtherNet/IP Web Server Module User Manual User Manual

Page 143

Advertising
background image

Publication ENET-UM527E-EN-P - October 2006

Socket Interface 143

Considerations

Use the instance returned by CreateSocket on subsequent service
requests.

Use a MOV instruction to move the instance to another MSG tag (the
.Instance field).

If you use a local port number that is already in use by the web server,
you receive an EADDRINUSE error (see Error Codes section). The
web server uses these port numbers:

• 20, 21 – FTP
• 25 – SMTP
• 80 – HTTP
• 123 – NTP
• 161 – SNMP
• 2222 – EtherNet/IP
• 44818 – EtherNet/IP

OpenConnection

The OpenConnection service does one of the following:

• Opens a TCP connection with the specified destination address
• For UDP, associates a destination IP address and port number

with the specified socket

MSG Configuration Parameters

To call this service, click in the MSG instruction and enter the
values displayed below.

Parameter

Value

Service Type

OpenConnection

Service Code

4c

Class

342

Instance

from CreateSocket

Attribute

0

Advertising
This manual is related to the following products: