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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Programming Techniques 9-177<br />

Data Transfer Schemes This manual provides two possible methods for transferring data from<br />

a primary to a secondary processor<br />

The first programming alternative transfers a data block per program<br />

scan. With this method, the application program defines the order that<br />

is used for transferring the data blocks. This programming scheme<br />

results in a lower overall data transfer throughput and has a minimal<br />

impact in the program scan time.<br />

The second programming alternative transfers each data block at its<br />

maximum possible throughput. This method is shown in the ladder<br />

program example earlier in this chapter. With this method, the<br />

application program tries to make all the possible data transfers in<br />

each program scan, according to the DTSW bits.<br />

Data Transfer Method 1<br />

With this alternative, the primary SLC 5/0x uses a counter to select<br />

the <strong>1747</strong>-BSN module to which the data block is sent. The primary<br />

SLC 5/0x also uses a second counter to select which block is sent to<br />

the BSN module. If the system has only one <strong>1747</strong>-BSN, only one<br />

counter is used. The following procedure is used in the primary SLC<br />

5/0x for sending the data blocks:<br />

1. Read all the DTSWs from the respective <strong>1747</strong>-BSN modules.<br />

2. Clear all DTCW bits corresponding to the data blocks that are<br />

marked as already transferred to secondary system in the<br />

DTSWs. Send the data blocks to their respective <strong>1747</strong>-BSN<br />

modules.<br />

3. Look at the counters and DTSWs to check whether the next data<br />

block that is sent is able to receive new data from the SLC 5/0x:<br />

• If the next data block is not able to receive new data, increment<br />

the data block counter and check whether it is time to select the<br />

next <strong>1747</strong>-BSN module.<br />

• If the next data block is able to receive new data, increment the<br />

module counter, restart the data block counter and repeat step 3.<br />

(Repeat this step until all possible data blocks are scanned.)<br />

4. Copy the data block from the SLC 5/0x to the <strong>1747</strong>-BSN module<br />

indicated by the module counter.<br />

5. Advise the <strong>1747</strong>-BSN module that the data block is ready<br />

through the DTCW (set the bit corresponding to the data block in<br />

this word).<br />

6. Increment the data block counter and check whether it is time to<br />

select the next <strong>1747</strong>-BSN module. If it is time to select the next<br />

module, increment the module counter and restart the data block<br />

counter.<br />

7. Start step 1 in the next program scan.<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!