1747-6.22, Backup Scanner User Manual
1747-6.22, Backup Scanner User Manual
1747-6.22, Backup Scanner User Manual
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
7-136 RIO Block Transfer<br />
Publication <strong>1747</strong>-<strong>6.22</strong><br />
Directional Non-Continuous Block Transfer Example<br />
The following rungs demonstrate a directional non-continuous block<br />
transfer. The block transfer executes once for every false-to-true<br />
transition of the input. Please note that the input bit I:2.0/0 was<br />
chosen randomly for this example and can be any address in your<br />
program used to initiate a BTR. Also note that this same method may<br />
be used for a BTW.<br />
Rung 2:0<br />
Configure the BTR operation type, length and rio address at power-up. Bit B3:100/7 must be set prior to going to<br />
run to indicate a BTR operation.<br />
| |<br />
| |<br />
| |<br />
| POWER±UP BTR |<br />
| BIT CONTROL |<br />
| S:1 +COP---------------+ |<br />
|----] [--------------------------------------------------+COPY FILE +-<br />
| 15 |Source #B3:100| |<br />
| |Dest #M0:1.100| |<br />
| |Length 3| |<br />
| +------------------+ |<br />
Rung 2:1<br />
Copy the BTR status area to a binary file, which is used throughout the program. This avoids addressing the M1 file<br />
multiple times during each program scan. Each time an instruction containing an M1 file bit, word or file is scanned b<br />
the processor, an immediate data transfer to the module occurs and therefore will impact the overall processor scan<br />
time.<br />
| |<br />
| |<br />
| |<br />
| BTR |<br />
| PENDING BTR STATUS |<br />
| B3 +COP---------------+ |<br />
|-+----] [-----+------------------------------------------+COPY FILE +-<br />
| | 80 | |Source #M1:1.100| |<br />
| | | |Dest #B3:0| |<br />
| | | |Length 4| |<br />
| | | +------------------+ |<br />
| | | |<br />
| | | |<br />
| | | |<br />
| | CHECK BTR | |<br />
| | STATUS | |<br />
| | B3 | |<br />
| +----] [-----+ |<br />
| 81 |<br />
Rung 2:2<br />
Unlatch the bit that continues to check the BTR status. When a BTR is complete, the done or error bit is set. The<br />
ladder program must then unlatch the enable bit, then wait for the SN module to turn off the done/error bit before<br />
another BTR to the same M-file location can be initiated. This is one complete BTR cycle.<br />
| |<br />
| |<br />
| VIRTUAL |<br />
| BTR DONE CHECK BTR |<br />
| BIT STATUS |<br />
| B3 B3 |<br />
|-+----]/[-----+-------------------------------------------------------(U)-----|<br />
| | 13 | 81 |<br />
| | | |<br />
| | | |<br />
| | | |<br />
| | | |<br />
| | VIRTUAL | |<br />
| | BTR ERROR | |<br />
| | BIT | |<br />
| | B3 | |<br />
| +----]/[-----+ |<br />
| 12 |