Allen-Bradley MicroLogix 1400 Instruction Manual page 496

Programmable controllers
Hide thumbs Also See for MicroLogix 1400:
Table of Contents

Advertisement

efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive
494
Socket Interface Using CIP Generic Messaging
Publication 1766-RM001A-EN-P - October 2008
CIP Generic Msg Parameter
Attribute
Data Table Address (Send)
Size in Bytes (Send)
Data Table Address (Receive)
Size in Bytes (Receive)
Extended Routing Info File(RIX)
To Address in MultiHop tab
Considerations :
Use the instance returned by CreateSocket on subsequent service requests.
Use a relay ladder instruction to move the returned instance number from a
CreateSocket service into the MGx:y.TFN element of a MSG instruction.
N file for sending contains: 12 bytes
Nx:0
Nx:1
SocketType
Reserved
(2 bytes)
(2 bytes)
• SocketType : Specify 1 for TCP, 2 for UDP. 0 or all others are
reserved.
• Reserved : Specify 0.
• Structure of SocketAddr :
• 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 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.
• IPAddr : Specify an IP address. Typically, set to 0 (any address).
N file for sending contains: 4 bytes
Nx:0
Nx:1
SockInstance
Reserved
(2 bytes)
(2 bytes)
• SockInstance : Contains Instance number of the socket.
Description
0
Specify N file
12 bytes
Specify N file
4 bytes
Specify RIX file
127.0.0.1
Nx:2
Nx:3
SocketAddr
SocketAddr
Family
Port
(2 bytes)
(2 bytes)
Nx:4, Nx:5
SocketAddr
IP Address
(4 bytes)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents