19.08.2013 Views

1747-6.22, Backup Scanner User Manual

1747-6.22, Backup Scanner User Manual

1747-6.22, Backup Scanner User Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Directional Repeating Block Transfer Example<br />

RIO Block Transfer 7-133<br />

The following example shows a directional repeating block transfer.<br />

This means that block transfer reads are sent repeatedly, as fast as<br />

possible. Use the same method 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<br />

| to going to 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 M-file bit, word or file is scanned by the<br />

| processor, an immediate data transfer to the module occurs and therefore will impact the overall processor scan time. |<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 />

| | BT ERROR |<br />

| | BIT |<br />

| | B3 |<br />

| +----]/[-----+<br />

| 12<br />

Publication <strong>1747</strong>-<strong>6.22</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!