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

SLC Ladder Logic Examples
D-11
Figure D.5 Drive 0 Control/Reference Routine
Controlling the Logic Command word in the drive. B3:20/* bits are controlled elsewhere in the user program.
0
B3:20
0
Station 0
Stop
Command
N20:0
0
Station 0
Logic Command
STOP
1
B3:20
1
Station 0
Start
Command
N20:0
1
Station 0
Logic Command
START
2
B3:20
2
Station 0
Jog
Command
N20:0
2
Station 0
Logic Command
JOG
3
B3:20
3
Station 0
Clear Faults
Command
N20:0
3
Station 0
Logic Command
CLEAR FAULTS
4
B3:20
4
Station 0
Reverse
Command
N20:0
4
Station 0
Logic Command
FORWARD
5
B3:20
4
Station 0
Reverse
Command
N20:0
5
Station 0
Logic Command
REVERSE
To control the speed reference
.
6
N20:0
12
Station 0
Logic Command
REFERENCE SELECT 0
7
N20:0
13
Station 0
Logic Command
REFERENCE SELECT 1
8
B3:20
5
"Never Closed"
N20:0
14
Station 0
Logic Command
REFERENCE SELECT 2
need to have the values 11.
over the Profibus, the three reference select bits (bits 14-12)
Station 0 Speed Reference
The PowerFlex 40 parameter 38 - [Speed Reference] needs to be set to 5 ("RS485 [DSI] Port").
N19:1 is controlled elsewhere in the user program.
9
MOV
Move
Source
N19:1
273<
Dest
N20:1
273<
MOV
Station 0
Speed Reference
Write
10
END