Rockwell Automation 20-COMM-ER 20-COMM-ER Dual-Port EtherNet/IP Communication Adapter User Manual User Manual

Page 129

Advertising
background image

Rockwell Automation Publication 20COMM-UM015B-EN-P - July 2013

129

Using Explicit Messaging Chapter 6

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

MicroLogix 1100/1400 Controller Example Write Single Request Data

In this message example, we use the data table address in

Figure 59

to store the

request value (10.0 sec.) that was written to drive parameter 140 - [Accel Time 1].
To determine the data type for the parameter and its required scaling, see the
specific drive documentation.

Figure 59 - Example Write Single Request Data File

Figure 60

shows example ladder logic to correctly format the three possible data

types for write messages in the MicroLogix 1100/1400 controller.

General Tab

Example Value

Description

Channel

Comm… Command

Data Table Address

Size in Bytes

Extended Routing…

Service

(1)

Instance

(2)

1

CIP Generic

N50:0

2

(3)

RIX16:0

Write Parameter

140 (Dec.)

Controller port to which the network is connected.

Used to access the Parameter Object in the adapter.

An unused controller data table address containing the message

instruction. This address is the starting word of the destination file.

Number of bytes to be transferred. Each byte size is an 8-bit integer.

An unused routing information file for the controller.

Code for the requested service.

Instance number is the same as the parameter number.

MultiHop Tab

Example Value

Description

To Address

10.91.100.79

IP address of the adapter connected to the drive.

(1) The default setting for Service is ‘Custom’, enabling entry of a Service Code not available from the Service pull-down menu. When

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

(2) Only drive parameters (Port 0) can be written to using Parameter Object Class code 0x0F. To write to a parameter of a peripheral in

another port, use DPI Parameter Object Class code 0x93 (see

page 133

).

(3) In this example, Accel Time 1 is a 16-bit parameter. If the parameter being written to is a 32-bit parameter, the Size in Bytes would

be set to 4. When the parameter being written to is a 32-bit REAL (floating point) data type, the size in bytes would be set to 4. See
the drive documentation to determine the size of the parameter and its data type (16-bit or 32-bit integer or REAL).

Advertising