Publication 1747-UM013B-EN-P - January 2005
Block Transfer Examples for Earlier Processors
D-7
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 M1 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
WHEN THE ERROR OR DONE BIT IS SET INDICATING THAT THE BTR COMPLETED EITHER
UNSUCCESSFULLY OR SUCCESSFULLY, THE ENABLE BIT MUST BE UNLATCHED BY THE LADDER
PROGRAM. THE 1747-SN SCANNER THEN UNLATCHES THE ERROR/DONE BIT TO COMPLETE THE
BLOCK TRANSFER HAND-SHAKE PROCESS. AT THIS TIME THE ”CHECK BTR STATUS” BIT
MUST BE UNLATCHED TO AVOID UNNECESSARY M-FILE ACCESSES.
| |
| |
| VIRTUAL |
| BTR DONE CHECK BTR |
| BIT STATUS |
| B3 B3 |
|-+----]/[-----+-------------------------------------------------------(U)-----|
| | 13 | 81 |
| | | |
| | | |
| | | |
| | | |
| | VIRTUAL | |
| | BT ERROR | |
| | BIT | |
| | B3 | |
| +----]/[-----+ |
| 12 |
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com