Publication 1766-RM001A-EN-P - October 2008
508
Socket Interface Using CIP Generic Messaging
Configure the MSG with these values:
N file for sending contains : 0 bytes
- NONE
N file for receiving contains : 0 bytes
- NONE
Possible Error Codes for
Socket Services
If the Socket Object encounters an error with a service request, or while
processing the service request:
•
The Socket Object returns an error code.
•
The MSG instruction sets the MGx:y/ER bit.
•
The MSG instruction sets error codes in Word 18(MGx:y.ERR) of MG
file. Low byte is error code 0xDE (Object Specific General Error) and
high byte is 0.
•
The MSG instruction sets internal fail code in Word 22(MGx:y.22) of
MG file. Low byte is error code 0xDE (Object Specific General Error)
and high byte of this sub-element contains detailed extended error
code.
CIP Generic Msg Parameter
Description
Channel
1 (Integral)
Communication Command
CIP Generic
Service
Custom
Service Code
51 (hexadecimal)
Class
342 (hexadecimal)
Instance
0
Attribute
0
Data Table Address (Send)
Not used.
Size in Bytes (Send)
0 bytes
Data Table Address (Receive)
Not used.
Size in Bytes (Receive)
0 bytes
Extended Routing Info File(RIX)
Specify RIX file
To Address in MultiHop tab
127.0.0.1
Considerations :
Call the DeleteAllSockets service with instance 0.
A typical use of DeleteAllSockets is when application development and debugging is complete.
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive