1 sample slc ladder logic - main program, Interbus communications module – Rockwell Automation RECOMM-IBUS Interbus Communications Module User Manual

Page 56

Advertising
background image

6-8

Interbus Communications Module

6.6.1 Sample SLC Ladder Logic - Main Program

Figure 6.3 – Sample SLC Ladder Logic - Main Program

Execute LAD 3 - Station 1.0 Drive Logic (Logic Command / Status, Reference / Feedback and Datalinks).

Execute LAD 4 - Station 2.0 Drive Logic (Logic Command / Status, Reference / Feedback and Datalinks).

Can Read OR Write at any one time. B3:47/0 will be turned off by the subroutine when the reading is complete and signals that

Can only Write OR Read at any one time. B3:47/10 will be turned off by the subroutine when the writing is complete and

The following rung performs power-up initialization of the PCP Read and PCP Write routines.

0000

S:1

15

First Pass

U

B3:47

0

Execute
PCP Read
Subroutine

U

B3:47

1

PCP Read
Routine
1-shot

U

B3:47

2

PCP Read
Reply Msg
1-Shot

U

B3:47

10

Execute
PCP Write
Subroutine

U

B3:47

11

PCP Write
Routine
1-shot

U

B3:47

12

PCP Write
Reply Msg
1-Shot

0001

JSR

Jump To Subroutine
SBR File Number

U:3

JSR

0002

JSR

Jump To Subroutine
SBR File Number

U:4

JSR

Execute LAD 5 - PCP Read Subroutine (Explicit Messaging)

another read (or write) cycle can take place.

0003

B3:47

0

Execute
PCP Read
Subroutine

B3:47

10

Execute
PCP Write
Subroutine

JSR

Jump To Subroutine
SBR File Number

U:5

JSR

Execute LAD 6 - PCP Write Subroutine (Explicit Messaging)

signals that another write (or read) cycle can take place.

0004

B3:47

0

Execute
PCP Read
Subroutine

B3:47

10

Execute
PCP Write
Subroutine

JSR

Jump To Subroutine
SBR File Number

U:6

JSR

0005

END

Advertising