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.

7-150 RIO Block Transfer<br />

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

Bidirectional Alternating Repeating Block Transfer<br />

The following rungs demonstrate a bidirectional alternating repeating<br />

block transfer. Using these rungs ensures the block transfer requests<br />

are executed in the order in which they are sent to the queue. This<br />

example also ensures that the BTR and BTW repeatedly alternate.<br />

The XIO conditions prevent the BTR and BTW from queuing<br />

simultaneously. The BTs continue as long as the ladder rungs are<br />

scanned.<br />

Rung 2:0<br />

Configure the BT operation type, length and RIO address (R, G, S in decimal) at power-up. Bit N7:50/7 must be set to a<br />

| |<br />

| "1" to indicate a BTR and N7:53/7 must be a logical "0" to indicate a BTW operation.<br />

|<br />

| |<br />

| POWER±UP BTR |<br />

| BIT CONTROL |<br />

| S:1 +COP---------------+ |<br />

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

| 15 | |Source #N7:50| | |<br />

| | |Dest #M0:1.100| | |<br />

| | |Length 3| | |<br />

| | +------------------+ | |<br />

| | | |<br />

| | | |<br />

| | | |<br />

| | BTW | |<br />

| | OPERATION | |<br />

| | +COP---------------+ | |<br />

| +-+COPY FILE +-+ |<br />

| |Source #N7:53| |<br />

| |Dest #M0:1.200| |<br />

| |Length 3| |<br />

| +------------------+ |<br />

Rung 2:1<br />

| Copy the BTR status area to an integer file only when a BTR is in progress. This status data is then used<br />

|<br />

|<br />

throughout the program and will limit the number of M-file accesses.<br />

|<br />

| |<br />

| BTR |<br />

| PENDING BTR STATUS |<br />

| B3 +COP---------------+ |<br />

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

| | 0 | |Source #M1:1.100| |<br />

| | | |Dest #N7:60| |<br />

| | | |Length 4| |<br />

| | | +------------------+ |<br />

| | | |<br />

| | | |<br />

| | | |<br />

| | CHECK BTR | |<br />

| | STATUS | |<br />

| | B3 | |<br />

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

| 2 |

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

Saved successfully!

Ooh no, something went wrong!