1747-6.22, Backup Scanner User Manual
1747-6.22, Backup Scanner User Manual
1747-6.22, Backup Scanner User Manual
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
9-178 Programming Techniques<br />
Publication <strong>1747</strong>-<strong>6.22</strong><br />
To receive the data blocks, the secondary SLC 5/0x application<br />
program uses the following procedure:<br />
1. Read all the DTSWs from the respective <strong>1747</strong>-BSN modules.<br />
2. Clear all DTHW bits corresponding to the data blocks that were<br />
previously read and that no longer have a data ready bit set for<br />
them in the DTSWs. Send all the DTHWs to their respective<br />
<strong>1747</strong>-BSN modules.<br />
3. Look at the counters and DTSWs to check whether the next data<br />
block that is received is ready in the <strong>1747</strong>-BSN module<br />
• If the next data block is not ready, increment the data block<br />
counter and check whether it is time to select the next <strong>1747</strong>-<br />
BSN module.<br />
• If the next data block is ready, increment the module counter,<br />
restart the data block counter and repeat step 3. (Repeat this<br />
step until all possible data blocks are scanned.)<br />
4. Copy the data block from the <strong>1747</strong>-BSN module to the<br />
SLC 5/0x.<br />
5. Advise the <strong>1747</strong>-BSN module that the data block was already<br />
read through the DTHW (set the bit corresponding to the data<br />
block in 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 />
The worst scenario with this transfer method is a system that has eight<br />
<strong>1747</strong>-BSN modules in which each one is transferring 16 data blocks.<br />
The total number of data blocks is 128 and the backup system spends<br />
128 program scans to transfer all the data blocks.<br />
Data Transfer Method 2<br />
With method 2, the application program in the SLC 5/0x considers<br />
each data block independent from the other data blocks. This is<br />
shown in the ladder program example earlier in this chapter for one<br />
set of BSN modules. Reproduce this logic for additional sets of BSN<br />
modules, being sure to update the slot number in the M-file addresses<br />
for each set. The following procedure is used in the primary SLC 5/0x<br />
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.