Horner APG RCS SmartStix User Manual

Page 13

Advertising
background image

CH.1

15 MAR 2003

PAGE 13

MAN0305-04


1.3.2

Resource Definitions


This section defines the resources listed in Table 1.2.

System Registers

System Registers (%S and %SR) are used to store general OCS or RCS status information. This
information is used internally, and is also available to the operator via the System Menu, using the Control
Station’s display and keypad. The System Registers are also available for User Screens and can be
accessed by Ladder Code.

a.

%S Registers


%S Registers are 1-bit memory locations, containing system status information, implemented as shown in
Table 1.3:

Table 1.3 - %S Registers

Register

Name

Description

%S1

FST_SCN

On during first scan after entering RUN mode

%S2

NET_OK

On if Network is functioning properly

%S3

T_10MS

On for 5 mS; Off for 5 mS

%S4

T_100MS

On for 50 mS; Off for 50 mS

%S5

T_SEC

On for 500 mS; Off for 500 mS

%S6

IO_OK

On if SmartStack I/O is configured properly

%S7

ALW_ON

Always On

%S8

ALW_OFF

Always Off


b.

%SR Registers


%SR Registers are 16-bit memory locations, containing system status information, implemented as
shown in Table 3. Note: Where 2 %SRs are combined to make a 32-bit value, the lower numbered %SR
is the low word, while the higher numbered %SR is the high word.

Table 1.4

- %SR Registers

Register

Name

Description

Min

Max

%SR1

USER_SCR

Current User Screen Number (0=none)

0

200

%SR2

ALRM_SCR

Current Alarm Screen Number (0=none)

0

200

%SR3

SYS_SCR

Current System Screen Number (0=none)

0

11

%SR4

SELF_TEST

Bit-Mapped Self-Test Result

0

65535

%SR5

CS_MODE

Control Station Mode
(0=Idle, 1=Do I/O, 2=Run)

0

2

%SR6

SCAN_RATE

Average Scan Rate (in tenths of mS)

-

1000

%SR7

MIN_RATE

Minimum Scan Rate (in tenths of mS)

-

1000

%SR8

MAX_RATE

Maximum Scan Rate (in tenths of mS)

-

1000

%SR9-10

EDIT_BUF

Data Field Edit Buffer

0

2

32

-1

%SR11-12

LADDER_SIZE

Ladder Code Size

2

64K

%SR13-14

UTXT_SIZE

User Text Screen Table Size

4

64K

%SR15-16

Reserved

-

-

-

%SR17-18

IO_SIZE

I/O Configuration Table Size

16

64K

%SR19-20

NET_SIZE

Network Configuration Table Size

34

32K

%SR21-22

SD_SIZE

Security Data Table Size

-

-

%SR23

LADDER_CRC

Ladder Code CRC

0

65535

%SR24

UTXT_CRC

User Text Screen Table CRC

0

65535

%SR25

Reserved

-

-

-

%SR26

IO_CRC

I/O Configuration Table CRC

0

65535

%SR27

NET_CRC

Network Configuration Table CRC

0

65535

Advertising
This manual is related to the following products: