Publication 1766-RM001A-EN-P - October 2008
504 Socket Interface Using CIP Generic Messaging
• Timeout : Specify the timeout in milliseconds.
• Structure of ToAddr :
• Family : Specify the address family. Must be 2.
• Port : Specify a local port number, or set to 0 (the local port
number will be chosen by the Ethernet subsystem). 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 : Specify an IP address. Typically, set to 0 (any address).
• BufLen : Specify the number of bytes of data to write.
• Reserved : Specify 0.
• Buf : Specify the data to write.
• BufLen : the number of bytes that were written.
• Reserved : Contains 0.
Inline Indirection functionality
You can use Inline Indirection functionality for N file in Write service.
Extended Routing Info File(RIX) Specify RIX file
To Address in MultiHop tab 127.0.0.1
Considerations :
For TCP connections, ToAddr is ignored. Connectionless UDP messages may use the address
stored in the open connection service.
CIP Generic Msg Parameter Description
N file for sending contains: 16 bytes + n bytes
Nx:0, Nx:1 Nx:2 Nx:3 Nx:4, Nx:5 Nx:6 Nx:7 Nx:…
Timeout
(4 bytes)
ToAddr
Family
(2 bytes)
ToAddr
Port
(2 bytes)
ToAddr
IP Address
(4 bytes)
BufLen
(2 bytes)
Reserved
(2 bytes)
Buf
(n bytes)
N file for receiving contains: 4 bytes
Nx:0 Nx:1
BufLen
(2 bytes)
Reserved
(2 bytes)
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive