Hitachi HF-W6500 60 Manual page 129

Industrial computer
Table of Contents

Advertisement

(3) Status display mode setup function (SetMode7seg)
<Name>
SetMode7seg - Setting up the status display mode
<Syntax>
#include <ctrl7seg.h>
BOOL SetMode7seg(DWORD dwMode);
<Description>
This function configures the status display mode of the status display digital LEDs.
The parameters of this function are explained below.
dwMode:
This parameter specifies the "status display mode" of the status display digital LEDs.
Table 6-14 shows a list of values that can be specified by dwMode.
Table 6-14 List of Values Specified by dwMode in the SetMode7seg Function
dwMode
APPST_MODE (0x00)
RASST_MODE (0x01)
If a value other than the above is specified, this function terminates with an error. If you call
the GetLastError Windows API function, an error code
CTRL7SEG_INVALID_PARAMETER is returned.
<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)
CTRL7SEG_INVALID_PARAMETER
(0x2001)
CTRL7SEG_INTERNAL_ERROR
(0x2002)
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".
Explanation of the action
Selects the application status display mode.
Selects the status display mode.
There is an error in the specified parameters.
An internal error has been generated.
6-25
6. LIBRARY FUNCTIONS
Description

Advertisement

Table of Contents
loading

Table of Contents