Rockwell Automation 1768-EWEB EtherNet/IP Web Server Module User Manual User Manual

Page 132

Advertising
background image

Publication ENET-UM527E-EN-P - October 2006

132 Socket Interface

Communicate With the
Socket Object Via a MSG
Instruction

In Logix controller programs, use a CIP Generic MSG instruction to
request socket services.

Configure the MSG with these values.

CIP Generic Msg Parameter

Description

MSG Type

CIP Generic.

Service Type

With RSLogix software version 15, select a socket service type from the drop down. The software
automatically fills in the appropriate Service Code and Class values.

With RSLogix 5000 software prior to version 15, select Custom. You have to specify the Service
Code and Class values.

Select Get Attributes Single or Set Attributes Single when getting or setting a Socket Object
attribute (see Socket Attributes on page 157)

Service Code

Each socket service has a unique service code.

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 or structured text statement to move the returned instance number
from a CreateSocket service into the .Instance member of a MSG instruction.

Attribute

Specify the attribute value only when getting or setting an attribute, not when using other services.

Source Element

Contains the request parameters for the socket service.

Create a user defined type for the request parameters for each service.

Advertising
This manual is related to the following products: