beautypg.com

Rockwell Automation 22-COMM-P PowerFlex Profibus Adapter User Manual

Page 98

background image

D-10

SLC Ladder Logic Examples

Figure D.4 Main Routine (continued)

Execute LAD 5 - Station 2 Drive Logic

5

JSR

Jump To Subroutine
SBR File Number

U:5

JSR

Execute LAD 6 - Parameter Protocol

6

JSR

Jump To Subroutine
SBR File Number

U:6

JSR

Write the drives' data to the profibus scanner.

File N20: contains the actual write data generated elsewhere in the ladder program.

Station File No. Description
M0:1.0 (N20:0)

Logic Command Drive 0

M0:1.1 (N20:1) Speed Reference Drive 0
M0:1.2 (N20:2)

Logic Command Drive 1

M0:1.3 (N20:3) Speed Reference Drive 1
M0:1.4 (N20:4)

Logic Command Drive 2

M0:1.5 (N20:5) Speed Reference Drive 2
M0:1.6 (N20:6) Parameter Access Word 1 (PCA)
M0:1.7 (N20:7) Parameter Access Word 2 (IND)
M0:1.8 (N20:8) Parameter Access Word 3 (PVA 1)
M0:1.9 (N20:9) Parameter Access Word 4 (PVA 2)

7

COP

Copy File
Source

#N20:0

Dest

#M0:1.0

Length

10

COP

8

END