Rockwell Automation 1747-SN Remote I/O Scanner User Manual
Page 138
Publication 1747-UM013B-EN-P - January 2005
D-10 Block Transfer Examples for Earlier Processors
Rung 2:0
CONFIGURE THE BTR OPERATION TYPE, LENGTH AND RIO ADDRESS AT POWER-UP. BIT
B3:100/7 MUST BE SET PRIOR TO GOING TO RUN TO INDICATE A BTR OPERATION.
| |
| |
| |
| POWER-UP BTR |
| BIT CONTROL |
| S:1 +COP---------------+ |
|----] [--------------------------------------------------+COPY FILE +-|
| 15 |Source #B3:100| |
| |Dest #M0:1.100| |
| |Length 3| |
| +------------------+ |
Rung 2:1
COPY THE BTR STATUS AREA TO A BINARY FILE WHICH WILL BE USED THROUGHOUT THE
PROGRAM. THIS AVOIDS ADDRESSING THE M1 FILE MULTIPLE TIMES DURING EACH PROGRAM
SCAN. EACH TIME AN INSTRUCTION CONTAINING AN M-FILE BIT, WORD OR FILE IS
SCANNED BY THE PROCESSOR, AN IMMEDIATE DATA TRANSFER TO THE MODULE OCCURS AND
THEREFORE WILL IMPACT THE OVERALL PROCESSOR SCAN TIME.
| |
| |
| |
| BTR |
| PENDING BTR STATUS |
| B3 +COP---------------+ |
|-+----] [-----+------------------------------------------+COPY FILE +-|
| | 80 | |Source #M1:1.100| |
| | | |Dest #B3:0| |
| | | |Length 4| |
| | | +------------------+ |
| | | |
| | | |
| | | |
| | CHECK BTR | |
| | STATUS | |
| | B3 | |
| +----] [-----+ |
| 81 |
Rung 2:2
UNLATCH THE BIT THAT CONTINUES TO CHECK THE BTR STATUS. WHEN A BTR IS
COMPLETE, THE DONE OR ERROR BIT IS SET. THE LADDER PROGRAM MUST THEN UNLATCH
THE ENABLE BIT, THEN WAIT FOR THE SN MODULE TO TURN OFF THE DONE/ERROR BIT
BEFORE ANOTHER BTR TO THE SAME M-FILE LOCATION CAN BE INITIATED. THIS IS ONE
COMPLETE BTR CYCLE.
| |
| |
| VIRTUAL |
| BTR DONE CHECK BTR |
| BIT STATUS |
| B3 B3 |
|-+----]/[-----+-------------------------------------------------------(U)-----|
| | 13 | 81 |
| | | |
| | | |
| | | |
| | | |
| | VIRTUAL | |
| | BT ERROR | |
| | BIT | |
| | B3 | |
| +----]/[-----+ |
| 12 |