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

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