beautypg.com

Rockwell Automation 25-COMM-E2P PowerFlex 25-COMM-E2P Dual-Port EtherNet/IP Adapter User Manual

Page 76

background image

76

Rockwell Automation Publication 520COM-UM003A-EN-E - June 2013

Chapter 6

Using Explicit Messaging

The following table identifies the data that is required in each box to configure a
CompactLogix controller message to read a single parameter.

Example Ladder Logic Program to Write a Single Parameter

A Set Attribute Single message is used to write to a single parameter. This
CompactLogix controller write message example writes a value to the 16-bit
parameter P041 [Accel Time 1] in a PowerFlex 525 drive.

Example Controller Tags to Write a Single Parameter

Example Ladder Logic to Write a Single Parameter

Configuration Tab

Example Value

Description

Message Type
Service Type

(1)

Service Code

(1)

Class
Instance
Attribute
Source Element
Source Length
Destination

(1) The default setting for Service Type is “Custom,” enabling entry of a Service Code not available from the Service Type pull-down

menu. When choosing a Service Type other than “Custom” from the pull-down menu, an appropriate Hex. value is automatically
assigned to the Service Code box which is dimmed (unavailable).

CIP Generic
Get Attribute Single
e (Hex.)
93

(3)

3 (Dec.)
9 (Hex.)

0 bytes
Output_Current

(4)

(3) See

Explicit Messaging Class Code Compatibility with PowerFlex 520-series Drives on page 74

for limitations of PowerFlex 520-series

drives when using DPI Parameter Object Class code 0x93 for explicit messaging.

(4) In this example, Output Current is a 16-bit parameter requiring the Data Type field to be set to “INT” when creating the controller

tag. See the drive documentation to determine the size of the parameter and its data type.

Used to access the DPI Parameter Object in the adapter.
This service is used to read a parameter value.
Code for the requested service.
Class ID for the DPI Parameter Object.
Instance number is the same as parameter number.
Attribute number for the Parameter Value attribute.
Leave blank (not applicable).
Number of bytes of service data to be sent in the message.
The tag where the data that is read is stored.

Communication Tab Example Value

Description

Path

(2)

(2) Click Browse to find the path, or type in the name of the device listed in the I/O Configuration folder (for this example,

PowerFlex_52X_Drive).

PowerFlex_52X_Drive

The path is the route that the message will follow.

Tag Tab

Example Value

Description

Name

Single_Read_Message

The name for the message.

Operation

Controller Tags for Single Write Message

Data Types

XIC

Execute_Single_Write_Message

BOOL

MSG

Single_Write_Message

MESSAGE

Execute_Single_Write_Message

Message
Message Control Single_Write_Message

MSG

EN
DN
ER