7 sample slc ladder logic - main program – Rockwell Automation RECOMM-PBUS PROFIBUS Communications Module User Manual

Page 62

Advertising
background image

6-10

PROFIBUS Communications Module

6.7

Sample SLC Ladder Logic - Main
Program

Figure 6.4 – Sample SLC Ladder Logic - Main Program

This sample 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 sample 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

SP600 Tabletop demo with RECOMM-PBUS
SP600 Tabletop demo with RECOMM-PBUS

Advertising