Publication 1766-RM001A-EN-P - October 2008
486
Socket Interface Using CIP Generic Messaging
Service Code
Each socket service has a unique service
code:
•
CreateSocket : 4B (hexadecimal)
•
OpenConnection : 4C (hexadecimal)
•
AcceptConnection : 50 (hexadecimal)
•
Read : 4D (hexadecimal)
•
Write : 4E (hexadecimal)
•
DeleteSocket : 4F (hexadecimal)
•
DeleteAllSockets : 51 (hexadecimal).
Class
Specify 342 (hexadecimal) for the Socket
Object.
Instance
Specify:
•
0 for CreateSocket and DeleteAllSockets
services
•
Instance number returned by
CreateSocket for other services
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
Specify the attribute value only when
getting or setting an attribute, not when
using other services.
Data Table Address (Send)
Specify N file.
Contains the request parameters for the
socket service. Create a user defined type
for the request parameters for each service.
Size in Bytes (Send)
Specify the length of the Send Element.
Data Table Address (Receive)
Specify N file.
Contains the response data returned by the
service.
Create a user defined type for the response
data for each service.
Size in Bytes (Receive)
Specify the length of the Receive Element.
Extended Routing Info File(RIX)
Specify RIX file.
Control Bits(TO, BK, EN)
TO bit: If this bit is set, the MSG instruction
will cause message timeout and set error
bit.
BK bit: Specify 0. This bit is not used for this
Socket Object and is ignored.
EN bit: If this bit is set, the MSG instruction
will be triggered.
Message Parameters
CIP Generic Msg Parameter
Description
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive