Program file 2 – Rockwell Automation 1747-BSN Backup Scanner Module User Manual

Page 144

Advertising
background image

Publication 1747-UM010B-EN-P - September 2003

9-2 Programming Techniques

Program File 2

m

0000

COP

Copy File
Source #M1:1.3400
Dest

#B3:1

Length

2

COP

0001

B3:1

7

B3:2

6

B3:2

14

JSR

Jump To Subroutine
SBR File Number

U:3

0002

B3:1

6

B3:2

6

B3:2

14

JSR

Ju p To Subroutine
SBR File Number

U:4

JSR

0003

END

Copy the System Status Word (SSW) and the Module Status Word (MSW) from the 1747-BSN module to internal storage words in the
SLC processor every program scan. Bits 6 and 7 of the SSW word indicate whether this processor is primary or secondary at any given
time. Bits 6 and 14 of the MSW indicate whether the local or remote system is in the primary or secondary mode, respectively. Virtual
SSW and MSW words/bits are used to minimize M-file transfers, thereby minimizing their effects on the program scan time.

This rung executes subroutine number 3 when the local system is in the secondary mode. Subroutine 3 contains logic which must be
executed to properly transfer HSSL data from the secondary 1747-BSN module to the secondary SLC processor.

Virtual SSW Bit:
1 = Local System in
Secondary Mode

Virtual MSW Bit:
1 = Local System in
Primary Mode

Virtual MSW Bit:
1 = Remote System
in Primary Mode

This rung executes subroutine number 4 when the local system is in the primary mode. Subroutine 4 contains logic which must be
executed to properly transfer HSSL data from the primary 1747-BSN module to the primary SLC processor.

Virtual SSW Bit:
1 = Local System in
Primary Mode

Virtual MSW Bit:
1 = Local System in
Primary Mode

Virtual MSW Bit:
1 = Remote System
in Primary Mode

Advertising