150
Resetting Alarm
This function prohibits an INT4Ah interrupt by internally calling INT1Ah (Ah = 7).
Note that neither the time data set for the RTC is erased nor is the power ON alarm setting for the
SYS_SetPowerOnAlarm() function canceled by this function. If this function is called with the
power ON alarm active, the alarm is temporarily reset. However, the RTC will be automatically set
to active after the power is turned off again to enable the power ON alarm.
The power ON alarm can also be canceled using the SYS_SetPowerOnAlarm() function.
SYNTAX
int SYS_ResetAlarm();
INPUT
None
OUTPUT
0 Normal
< 0 Error
Setting/Acquisition of Power ON Alarm
This terminal has a function to automatically turn on the power to the main unit at the specified time.
This function requires the RTC (Real Time Clock) function. Normally, an INT4Ah interrupt will
occur when the setting is being made on the RTC. This function makes it possible to add the
function which turns on the main unit at the desired time.
SYNTAX
int SYS_SetPowerOnAlarm(int OnOff);
INPUT
OnOff = Power On setup
0 Does not turn on the power.
Other than 0 Turns on the power.
OUTPUT
0 Normal
SYNTAX
int SYS_GetPowerOnAlarm();
INPUT
None
OUTPUT
0 = Does not turn on the power.
Other than 0 = Turns on the power.