D.2.3 drive 0-1 control reference routine, Slc ladder logic examples – Rockwell Automation MD65 Profibus Communication Card User Manual
Page 95
![background image](/manuals/581482/95/background.png)
SLC Ladder Logic Examples
D-9
D.2.3 Drive 0-1 Control Reference Routine
gi
o
Controlling the Lo c C mmand 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 MD65 parameter 38 (Speed Reference) needs to be set to 5 ("RS485 [MDI] 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