Section 2 NS Series Functions
2-4 System Memory
2-39
NS Series Programming Manual
Bit 15 8 7 0
BCD/binary: (00 fixed) day of week (00 to 06)
Sun: 00; Mon: 01: Tue: 02; Wed: 03; Thur: 04; Fri: 05; Sat: 06
No. of Alarm/Event Occurred ($SW18)
$SW18 stores the number of generated alarms and events. (Stored in BCD or binary.)
The total number of alarms and events is stored.
Alarm/Event ID Storage ($SW19, $SW20, and $SW21)
The last generated alarm or event ID number is written to $SW19. (Stored in BCD or binary.)
The last cleared alarm or event ID number is written to $SW20. (Stored in BCD or binary.)
The alarm or event ID displayed on the relevant alarm/event display object is written to $SW21 when
the Pressing a Display Area macro is executed. Alternatively, the alarm/event ID number selected when
the Selecting an Alarm/Event macro is executed for the alarm/event summary/history object is written
to $SW21. (Stored in BCD or binary.) If the macro is executed when nothing is displayed on the
alarm/event display object or alarm/event summary & history object, then nothing will be written to
$SW21.
Macro Error Number ($SW23)
The macro execution error number is stored in $SW23. There are no errors if 0 is stored in $SW23.
The error number is held until 0 is written to $SW23 from the host, using a functional object, or other
method. (Stored in BCD or binary.)
N
N
N
o
o
o
t
t
t
e
e
e
♦
The following values are set to $SW23, depending on the macro error.
1: Program error
2: 0 allocation error
3: BCD error
4: Argument value error
♦
The last generated macro execution error number is stored in $SW23 if macros are executed
alternatively as follows: no error, error, no error, etc.
Screen No. Having Macro Error ($SW24)
The screen number where the macro error occurred is stored in $SW24. FFFFh is stored for project
macros. (Stored in BCD or binary.)
Object ID Having Macro Error ($SW25)
The ID number of the functional object where the macro error occurred is stored in $SW25. FFFFh is
stored for project/screen macros. (Stored in BCD or binary.)
Macro Timing Having Error ($SW26)
The macro execution timing when the macro error occurred is stored in $SW26. (Stored in BCD or bi-
nary.)
0 (0): When loading a project
4 (4): Alarm/Event ON
5 (5): Alarm/Event OFF
16 (10): When loading a screen
17(11): When unloading a screen
32 (20): Touch ON
33 (21): Touch OFF
Содержание NS10-TV Series
Страница 2: ......
Страница 12: ...Contents vi NS Series Programming Manual ...
Страница 48: ...Section 1 Overview 1 5 Procedure before Operation 1 35 NS Series Programming Manual ...
Страница 592: ...Section 3 Using PTs 3 12 Function Key Settings NS15 Only 3 35 NS Series Programming Manual ...
Страница 606: ...Section 4 Using Functions 4 1 Application 4 13 NS Series Programming Manual ...
Страница 642: ...Section 5 Troubleshooting and Maintenance 5 2 Error Messages 5 35 NS Series Programming Manual ...