Slc ladder logic examples – Rockwell Automation MD65 Profibus Communication Card User Manual

Page 89

Advertising
background image

SLC Ladder Logic Examples

D-3

D.1.2 Drive 0 Control/Reference/Parameter Access

Routine

0

Controlling the Logic Command word in the drive. B3:20/* bits are controlled elsewhere in the user program.

B3:20

0

Station 1

Stop

Command

N20:0

0

Station 1

Logic Command

STOP

1

B3:20

1

Station 1

Start

Command

N20:0

1

Station 1

Logic Command

START

2

B3:20

2

Station 1

Jog

Command

N20:0

2

Station 1

Logic Command

JOG

3

B3:20

3

Station 1

Clear Faults

Command

N20:0

3

Station 1

Logic Command

CLEAR FAULTS

4

B3:20

4

Station 1

Reverse

Command

N20:0

4

Station 1

Logic Command

FORWARD

0

5

B3:2

4

Station 1

Reverse

Command

N20:0

5

Station 1

Logic Command

REVERSE

6

N20:0

12

Station

Logic Command

E SELECT 0

7

N20:0

13

Station 1

Logic Command

REFERENCE SELECT 1

8

B3:20

5

"Never Closed"

N20:0

14

Station 1

Logic Command

REFERENCE SELECT 2

c

e over the Profibus, the

e Reference

To ontrol the speed referenc

thre

Select bits (bits 14-12) need to have the values 011.

REFERENC

Station 1 Speed Reference

The MD65 Speed Reference (parameter 38) needs to be set to 5 ("RS485 [MDI] Port").

N19:1 is controlled elsewhere in the user program.

9

MOV

Move

Source

N19:1

273<

Dest

N20:1

273<

MOV

Station 1

Speed Reference

Write

r

rs

This section of the outine is only needed if the application needs to perform Parameter Protocol Reads or Writes to Station 1.

On power-up, initialize the Parameter Protocol routine.

10

S:1

15

Fi t Pass

U

B3:19

15

Station 1

Par Prot

Messaging

Request

Advertising