Download Print this page

Anybus CompactCom 40 Network Manual page 158

Ethernet/ip iiot
Hide thumbs Also See for CompactCom 40:

Advertisement

Anybus Module Objects
Command Details: Receive_From
Category
Extended
Details
Command Code
Valid for:
Description
This command receives data from an unconnected SOCK_DGRAM-socket. Message segmentation may be used
to receive up to 1472 bytes (For more information, see
The module will return the requested amount of data from the next received datagram. If the datagram is
smaller than requested, the entire datagram will be returned in the response message. If the datagram is
larger than requested, the excess bytes will be discarded.
The response message contains the IP address and port number of the sender.
NON-BLOCKING mode:
BLOCKING mode:
Command Details
Field
Contents
CmdExt[0]
(reserved)
CmdExt[1]
Segmentation Control bits
Data[0]
Receive data size (low byte)
Data[1]
Receive data size (high byte)
Response Details
The data in the response may be segmented (For more information, see
Field
Contents
CmdExt[0]
(reserved)
CmdExt[1]
Segmentation Control bits
Data[0]
Host IP address byte 4
Data[1]
Host IP address byte 3
Data[2]
Host IP address byte 2
Data[3]
Host IP address byte 1
Data[4]
Host port number (low byte)
Data[5]
Host port number (high byte)
Data[6...n]
Received data
Anybus CompactCom 40 EtherNet/IP IIoT Network Guide
16h
Instance
If no data is available on the socket, the error code 0006h (EWOULDBLOCK) will be returned.
The module will not issue a response until the operation has finished.
Message Segmentation, p.
Comments
(set to zero)
For more information, see
Only used in the first segment
Message Segmentation, p.
Comments
(set to zero)
For more information, see
The host address/port information is only included in the first
segment. All data thereafter will start at Data[0]
156 (244)
162).
Message Segmentation, p. 162
162).
Message Segmentation, p. 162
SCM-1202–069 1.9 en-US

Advertisement

loading
Need help?

Need help?

Do you have a question about the CompactCom 40 and is the answer not in the manual?

Questions and answers