Allen-Bradley MicroLogix 1400 Instruction Manual page 498

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

Advertisement

efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive
496
Socket Interface Using CIP Generic Messaging
Publication 1766-RM001A-EN-P - October 2008
Configure the MSG with these values:
CIP Generic Msg Parameter
Channel
Communication Command
Service
Service Code
Class
Instance
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 :
In some cases, the OpenConnection service can return before the timeout period without
creating a TCP connection. For example, if the destination device is running, but is not listening
for connections on the specified port number, OpenConnection returns with an error before the
timeout period.
For UDP, if you use OpenConnection, you do not have to specify the IP address and port number
each time you send data. If you do not specify an IP address and port number, you can only
receive data from the previously specified IP address and port number in the OpenConnection
service.
For UDP, if you do not use OpenConnection, you must specify the destination address each time
you call the Write service to send data. When you call the Read service, in addition to the data,
you receive the address of the sender. You can then use the address of the sender to send a
response via the Write service.
N file for sending contains: 8 bytes + n bytes
Nx:0, Nx:1
Nx:2
Timeout
DestAddr
(4 bytes)
Length
(2 bytes)
• Timeout : Specify the timeout in milliseconds.
• DestAddr Length : The length of the destination address.
Description
1 (Integral)
CIP Generic
Custom
4C (hexadecimal)
342 (hexadecimal)
0 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.
0
Specify N file
8 + n (number of characters in the destination address)
bytes
Not used. The MSG instruction does not return any
data.
0 bytes
Specify RIX file
127.0.0.1
Nx:3
Nx:4...
DestAddr
DestAddr
Reserved
Data
(2 bytes)
(n bytes, max 64 bytes)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents