Horner APG XL6 OCS User Manual
Page 86
CH.14 MAN0883-05-EN
March 4, 2010
Page 86 of 135
#1037
%S System Bit
Single-bit bit coils predefined for system use.
%SR System Register
16-bit registers predefined for system use.
%T Temporary Bit
Non-retentive single-bit registers.
14.2
Useful %S and %SR registers
Table 14.1 – Common %S Register Definitions
Register Description
%S1 Indicate
First
Scan
%S2
Network is OK
%S3 10mS
timebase
%S4 100mS
timebase
%S5
1 second timebase
%S6
I/O is OK
%S7 Always
ON
%S8 Always
OFF
%S9
Pause 'n Load soon
%S10
Pause 'n load done
%S11
I/O being forced
%S12
Forcing is enabled
%S13
Network I/O is OK
%S16
Ethernet COM module is OK
Table 14.2
–
%SR Registers
Register
Name
Description
Min Val
Max Val
%SR1
USER_SCR
Current User Screen Number
1
1023
%SR2
ALRM_SCR
Current Alarm Screen Number (0=none)
0
1023
%SR3
SYS_SCR
Current System Screen Number (0=none)
0
14
%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 ( / 10)
-
1000
%SR7
MIN_RATE
Minimum Scan Rate ( / 10)
-
1000
%SR8
MAX_RATE
Maximum Scan Rate ( / 10)
-
1000
%SR9-10
EDIT_BUF
Data Field Edit Buffer
0
2
32
-1
%SR11-12
LADDER_SIZE
Ladder Code Size
2
256K
%SR 13-16
Reserved -
-
-
%SR17-18
IO_SIZE
I/O Configuration Table Size
16
127K
%SR19-20
NET_SIZE
Network Configuration Table Size
34
1K
%SR21-22
SD_SIZE
Security Data Table Size
-
-
%SR23
LADDER_CRC
Ladder Code CRC
0
65535
%SR 24-25
Reserved -
-
-
%SR26
IO_CRC I/O
Configuration Table CRC
0
65535
%SR27
NET_CRC
Network Configuration Table CRC
0
65535
%SR28
SD_CRC
Security Data Table CRC
0
65535
%SR29
NET_ID
This Station’s Primary Network ID (CsCAN)
1
253
%SR30
NET_BAUD
Network Baud Rate (CsCAN)
(0=125KB; 1=250KB; 2=500KB; 3=1MB)
0 3