EasyManua.ls Logo

Anybus CompactCom 40 EtherNet/IP - Page 116

Anybus CompactCom 40 EtherNet/IP
198 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
116
Doc.Id. HMSI-27-212
Anybus CompactCom 40 EtherNet/IP
Doc.Rev. 1.5
Command Details: Accept
Category
Extended
Details
Command Code.: 13h
Valid for: Instance
Description
This command accepts incoming connections on a listening TCP socket. A new socket instance is cre-
ated for each accepted connection. The new socket is connected with the host and the response returns
its instance number.
NON-BLOCKING mode:
This command must be issued repeatedly (polled) for incoming connections. If no incoming
connection request exists, the module will respond with error code 0006h (EWOULDBLOCK).
BLOCKING mode:
This command will block until a connection request has been detected.
Note: This command will only be accepted if there is a free instance to use for accepted connections.
For blocking connections, this command will reserve an instance.
Command Details
(no data)
Response Details
Field Contents
Data[0] Instance number for the connected socket (low)
Data[1] Instance number for the connected socket (high)
Data[2] Host IP address byte 3 (low)
Data[3] Host IP address byte 2
Data[4] Host IP address byte 1
Data[5] Host IP address byte 0 (high)
Data[6] Host port number (low)
Data[7] Host port number (high)

Table of Contents

Related product manuals