Publication 1766-RM001A-EN-P - October 2008
Socket Interface Using CIP Generic Messaging
501
Configure the MSG with these values:
•
Timeout : Specify the timeout in milliseconds.
•
BufLen : Specify the number of bytes of data to receive. If
configured BufLen is less than the actual received data length, the
rest of the data can be read from the next read request service. If
BufLen is larger than the actual received data length, all the received
data will be stored to the Buf. For more detail, see Partial Reads on
page 490.
•
Reserved : Specify 0.
CIP Generic Msg Parameter
Description
Channel
1 (Integral)
Communication Command
CIP Generic
Service
Custom
Service Code
4D (hexadecimal)
Class
342 (hexadecimal)
Instance
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.
Attribute
0
Data Table Address (Send)
Specify N file
Size in Bytes (Send)
8 bytes
Data Table Address (Receive)
Specify N file.
Size in Bytes (Receive)
12 bytes + n (number of bytes of data to receive) bytes
Extended Routing Info File(RIX)
Specify RIX file
To Address in MultiHop tab
127.0.0.1
Considerations :
N file for sending contains: 8 bytes
Nx:0, Nx:1
Nx:2
Nx:3
Timeout
(4 bytes)
BufLen
(2 bytes)
Reserved
Family
(2 bytes)
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive