beautypg.com

Rockwell Automation 22-COMM-C ControlNet Adapter User Manual

Page 81

background image

Using Multi-Drive Mode

7-13

Figure 7.10 ControlLogix Drive 0 Control Subroutine (Continued)

13

Copy File

Source Drive_0_Speed_Reference

Dest

Drive_Output_Image[1]

Length

1

COP

Explicit Messaging Example

Drive 0 parameters are accessed by adding 17408 decimal (4400 hex) to the desired parameter number. This example

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

14

Drive_0_Perform_Parameter_Read

EN

DN

ER

Type - CIP Generic

Message Control

Drive_0_Parameter_Read_Message ...

MSG

Explicit Messaging Example

Drive 0 parameters are accessed by adding 17408 decimal (4400 hex) to the desired parameter number. This example

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

Drive 0 parameters are accessed by adding 17408 decimal (4400 hex) to the desired parameter number. This example

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

15

Drive_0_Perform_Parameter_Write

EN

DN

ER

Type - CIP Generic

Message Control

Drive_0_Parameter_Write_Message ...

MSG

Drive 0 parameters are accessed by adding 17408 decimal (4400 hex) to the desired parameter number. This example

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

16

Return

RET

(End)