beautypg.com

Rockwell Automation 22-COMM-C ControlNet Adapter User Manual

Page 89

background image

Using Multi-Drive Mode

7-21

Figure 7.14 ControlLogix Drive 4 Control Subroutine (Continued)

13

Copy File

Source Drive_4_Speed_Reference

Dest

Drive_Output_Image[9]

Length

1

COP

Explicit Messaging Example

Drive 4 parameters are accessed by adding 21504 decimal (5400 hex) to the desired parameter number. This example

reads data from Parameter d003 - [Output Current] by using an Instance of 21507 (21504 + 3).

14

Drive_4_Perform_Parameter_Read

EN

DN

ER

Type - CIP Generic

Message Control

Drive_4_Parameter_Read_Message ...

MSG

Explicit Messaging Example

Drive 4 parameters are accessed by adding 21504 decimal (5400 hex) to the desired parameter number. This example

reads data from Parameter d003 - [Output Current] by using an Instance of 21507 (21504 + 3).

Drive 4 parameters are accessed by adding 21504 decimal (5400 hex) to the desired parameter number. This example

writes data to Parameter P039 - [Accel Time 1] by using an Instance of 21543 (21504 + 39).

15

Drive_4_Perform_Parameter_Write

EN

DN

ER

Type - CIP Generic

Message Control

Drive_4_Parameter_Write_Message ...

MSG

Drive 4 parameters are accessed by adding 21504 decimal (5400 hex) to the desired parameter number. This example

writes data to Parameter P039 - [Accel Time 1] by using an Instance of 21543 (21504 + 39).

16

Return

RET

(End)