All controller versions – Rockwell Automation 20-COMM-R Remote I/O Adapter User Manual
Page 55

Using Discrete and Block Transfer I/O
4-19
20-COMM-R Remote I/O Adapter User Manual
Publication 20COMM-UM004D-EN-P
All Controller Versions
The SLC RIO scanner performs Block Transfers through control/status
buffers that you allocate in the scanner’s M0 and M1 files. The first 10
words of each file are reserved for either control words (M0) or status words
(M1). Block Transfer Read/Write data starts in word 11. See the Remote
I/O 1747-SN Scanner User Manual, publication 1747-UM013, for more
information.
The following data is required for the example program.
The length of ‘28’ words used in the COP instructions in the ladder
example, reflect the 10 reserved words plus 18 words of data.
Figure 4.13 SLC 500 Example Ladder Logic for Main Routine (I/O User Logic)
Address
Value (decimal)
Description
N10:1
18
Block Transfer Write Length
N10:2
100
Rack 1, Group 0, Slot 0
N10:3
18
Block Transfer Read Length
N10:4
100
Rack 1, Group 0, Slot 0
This rung handles the logic needed to stop the drive upon the user's command. As shown, the user STOP input must be a normally
closed pushbutton.
If the drive is running, pressing the STOP button will seal the stop command bit until the drive comes to a complete stop.
0000
N7:0
0
User
STOP
Input
I:1.9
1
1747-SN
Drive
RUNNING
Status
O:1.9
0
1747-SN
Drive
STOP
Command
O:1.9
0
1747-SN
Drive
STOP
Command
This rung allows the user to start the drive. Note that the drive may not start if the user briefly taps the button.
0001
N7:0
1
User
START
Input
O:1.9
1
1747-SN
Drive
START
Command
This rung allows the user to Jog the drive.
0002
N7:0
2
User
JOG
Input
O:1.9
2
1747-SN
Drive
JOG
Command
This rung allows the user to clear any faults present in the drive.
0003
N7:0
3
User
CLEAR FAULTS
Input
O:1.9
3
1747-SN
Drive
CLEAR FAULTS
Command