beautypg.com

Enable the devicenet scanner, Example datalink data – Rockwell Automation 25-COMM-D PowerFlex 525 DeviceNet Adapter User Manual

Page 53

background image

Rockwell Automation Publication 520COM-UM002A-EN-E - April 2013

53

Using the I/O

Chapter 5

Compact Logix Example Ladder Logic Program Using a Drive Generic Profile for Logic Command/
Reference

Enable the DeviceNet Scanner

A rung in the ladder logic must be created and assigned to the 1769-SDN scanner
Command Register Run bit. This rung enables the scanner to transfer I/O on the
network.

Example Datalink Data

The Datalink data used in the example program is shown in (

CompactLogix

Controller Example Datalinks for Ladder Logic Program Using a Drive Generic
Profile on page 54

). Note that to describe the parameters to which the Datalinks

are assigned, you may want to add descriptions to the generic tags or create a
UDDT (user-defined data type). For this example, the Opt_Data_Out tags were
created to describe the drive parameters to which these Datalinks are assigned.
For example, Opt_Data_Out_01_Stop_Mode indicates that adapter

Host

parameter C165[Opt Data Out 1] is assigned to drive parameter P045 [Stop
Mode]

. This same method applies to the Opt_Data_In tags.

IMPORTANT

This rung must always be included in the ladder logic program.

Copy File
Source
Dest
Length

DriveReference

DriveOutputImage[1]

1

COP

Copy File
Source
Dest
Length

DriveOutputImage[0]

Local:1:O.Data[0]

3

COP

DriveCommandStop

Command Word

Command Word

Command Word

Command Word

Command Word

Command Word

Speed Reference

DriveOutputImage[0].0

DriveCommandStart

DriveOutputImage[0].1

DriveCommandJog

DriveOutputImage[0].2

DriveCommandClearFaults

DriveOutputImage[0].3

DriveCommandForward

DriveOutputImage[0].4

DriveCommandForward

DriveOutputImage[0].5

8

9

10

11

12

13

14

15

Local:1:O.CommandRegister.Run

0

This manual is related to the following products: