beautypg.com

Rockwell Automation DeviceNet Communications Module User Manual

Page 84

background image

8-10

DeviceNet Communications Module

Drive 0 - Drive 4 Control Routines

The Drive Control routines provide status information (Logic Status
and Feedback), control (Logic Command and Reference), and
parameter read/write for each of the respective drives. See figure
8.8 for Drive 0, figure 8.10 for Drive 1, figure 8.12 for Drive 2, figure
8.14 for Drive 3, and figure 8.16 for Drive 4.

Figure 8.7 – Main Routine (Continued)

7

Copy File
Source

DriveOutputImage[0]

Dest

Local:3:O.Data[0]

Length

5

COP

(End)

This section writes the output image to the scanner. The output image is as follows:

Drive Output Image (0) and Drive Output Image (1) = Drive 0 Logic Command and Reference
Drive Output Image (2) and Drive Output Image (3) = Drive 1 Logic Command and Reference
Drive Output Image (4) and Drive Output Image (5) = Drive 2 Logic Command and Reference
Drive Output Image (6) and Drive Output Image (7) = Drive 3 Logic Command and Reference
Drive Output Image (8) and Drive Output Image (9) = Drive 4 Logic Command and Reference

(Note the length of the COP instruction is "5" because the Destination address is a DINT)