6. LIBRARY FUNCTIONS
6-10
<Diagnosis>
If this function completes successfully, the function returns TRUE. If this function terminates
with an error, the function returns FALSE.
When this function terminates with an error, call the GetLastError Windows API function to
get the error code. Error codes returned by this function on its own are as follows.
Error code (value)
Description
W2KRAS_INVALID_PARAMETER
(0x2001)
There is an error in the specified parameters.
W2KRAS_NOT_INITIALIZE
(0x2005)
Startup of the RAS software has not completed yet.
W2KRAS_INTERNAL_ERROR
(0x2007)
An internal error has been generated.
Other error codes come from the Windows API functions used by this function. For details
about those error codes, refer to the Windows API help.
<Sample program>
We provide a sample program that uses this function in C. For information about the name of
the sample program and where you can find it, see “6.2 Sample Programs”.
(3) Behavior of the general purpose external contacts (GENDO0 / GENDO1 / GENDO2) of the
RAS external contacts interface
Those general purpose external contacts become open when the power is turned on or off.
Figure 6-3 shows the behavior of the GENDO0 contact when the GendoControl function is
used.
Figure 6-3 Behavior of the GENDO0 Contact
Dotted lines in Figure 6-3 denote the respective states of the contact and the thick line
denotes the transition of the state of the contact.
The explanation in this sub-subsection is applicable for both RAS external contacts
interfaces, HJ-7805-21 and HJ-7805-22.
GendoControl function
is executed.
(GENDO_CLOSE)
Contact closed
Contact open
Time
→
GendoControl function
is executed.
(GENDO_OPEN)
GendoControl function
is executed.
(GENDO_CLOSE)
Power is turned off.
Power is turned on.
Summary of Contents for HF-W7500 40
Page 1: ...WIN 63 0090 03 ...
Page 2: ...WIN 63 0090 03 ...
Page 23: ...This page is intentionally left blank ...
Page 105: ...This page is intentionally left blank ...