Slc ladder logic example - main program, Logic command/status words, Using i/o messaging 5-9 – Rockwell Automation 20-COMM-P Profibus Adapter User Manual

Page 59

Advertising
background image

Using I/O Messaging

5-9

Logic Command/Status Words

These examples use the Logic Command word and Logic Status word
for PowerFlex 70 and PowerFlex 700 drives. Refer to

Appendix C

,

Logic Command/Status Words

for more information. The definition of

the bits in these words may vary if you are using a different DPI Host
product. Refer to the documentation for your Host product.

Figure 5.4 Example SLC Ladder Logic - Main Program

SLC Ladder Logic Example - Main Program

This example program is for a PROFIBUS demonstration using a SLC 5/05 processor with an SST Profibus scanner
(SST-PFB-SLC) in the first slot of the rack. The program is written for (2) drives on the network:

Station 1

PowerFlex 70 Tabletop demo with 20-COMM-P

Station 2

PowerFlex 70 Tabletop demo with 20-COMM-P

The example program demonstrates using Logic Command / Reference, Logic Status / Feedback, Datalinks, and Parameter
Access using the Parameter Protocol.

On power-up, zero out the transmit buffer to the Scanner.

0000

S:1

15

First Pass

FLL

Fill File
Source

0

Dest

#N20:0

Length

28

FLL

Automatically have the SST-PFB-SLC scanner's watchdog period track that of the SLC processor (recommended per SST user
manual)

0001

MOV

Move
Source

S:3

2562 <
Dest

M0:1.4011

?<

MOV

SST Scanner
Write Data
Word 0

The Scanner is configured for 28 bytes (14 words) of inputs for each drive. Two drives require 48 bytes (28 words).

Read the drives data from the Profibus scanner.

0002

COP

Copy File
Source

#M1:1.0

Dest

#N9:0

Length

28

COP

SST Scanner
Read Data
Word #0

20COMM-UM006A-EN-P.book Page 9 Friday, September 28, 2001 10:43 AM

Advertising