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.

Program File 2<br />

0000<br />

0001<br />

0002<br />

Module Control and Status Word 6-97<br />

The following ladder program example shows how to monitor the<br />

status bits in the System Status Word (SSW) and in the Module Status<br />

Word (MSW) that indicate which processor is in the primary mode<br />

and which is in the secondary mode. This information is needed in<br />

order to determine whether the local processor needs to execute the<br />

primary system or the secondary system HSSL data transfer ladder<br />

logic.<br />

File 2 monitors the appropriate SSW and MSW bits and executes<br />

subroutine 4 if the local system is in primary mode.<br />

Note: It is recommended that the M1 and M0 file lengths for<br />

the BSN be set to the maximum (5548). There is no<br />

memory or speed penalty for creating the maximum<br />

buffer size for these files in the BSN modules.<br />

Copy the System Status Word (SSW) and the Module Status Word (MSW) from the BSN module to internal storage words in the SLC<br />

processor every program scan. Bits 6 and 7 of the SSW word indicate whether this processor is Primary or Secondary at any given time.<br />

Bits 6 and 14 of the MSW word indicate whether the local or remote system is in the Primary or Secondary mode respectively. Virtual<br />

SSW and MSW words/bits are used to minimize M-file transfers, thereby minimizing their effects on the program scan time.<br />

COP<br />

Copy File<br />

Source #M1:1.3400<br />

Dest #B3:1<br />

Length 2<br />

This rung executes subroutine number 3 when the Local System is in the Secondary Mode. Subroutine 3 contains the logic which must<br />

be executed to properly transfer HSSL data from the Secondary BSN Module to the Secondary SLC Processor.<br />

Virtual SSW Bit:<br />

when = 1, indicates Virtual MSW Bit: Virtual MSW Bit:<br />

the local system is when = 1, indicates when = 1, indicates<br />

in the Secondary the Local System is the Remote System is<br />

Mode<br />

in the Primary Mode in the Primary Mode<br />

B3:1<br />

B3:2<br />

B3:2<br />

JSR<br />

Jump To Subroutine<br />

7<br />

6<br />

14<br />

SBR File Number U:3<br />

This rung executes subroutine number 4 when the Local System is in the Primary Mode. Subroutine 4 contains the logic which must be<br />

executed to properly transfer HSSL data from the Primary SLC Processor to the Primary BSN Module.<br />

Virtual SSW Bit: Virtual MSW Bit: Virtual MSW Bit:<br />

when = 1, the Local when = 1, indicates when = 1, indicates<br />

System is in the the Local System is the Remote System is<br />

Primary Mode in the Primary Mode in the Primary Mode<br />

B3:1<br />

B3:2<br />

B3:2<br />

JSR<br />

Jump To Subroutine<br />

6<br />

6<br />

14<br />

SBR File Number U:4<br />

0003 END<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!