EasyManua.ls Logo

Hitachi HF-W100E/IoT - Table 6-5 Bit Allocation of Pusiinput for Getgendin; Table 6-6 Return Value from the Getgendin Function (Error Cases)

Hitachi HF-W100E/IoT
133 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
6. RAS FEATURES IN HF-W100E/IoT
6-5
(2) Get function for the external general purpose inputs (GetGendiN)
<Name>
GetGendiN - Acquires the status of the external general purpose inputs (general-
purpose input1 to 7)
<Syntax>
DWORD GetGendiN(POINTER TO USINT pusiInput);
<Description of the functionality>
This function acquires the status of the external general purpose inputs.
The parameters of this function are explained below.
pusiInput: The input state of external general purpose input is stored. Table 6-5 shows
how bits are allocated to each general purpose input. If the input level of a
general purpose input is low, “0” is stored to the corresponding bit, and “1”
otherwise.
Table 6-5 Bit Allocation of pusiInput for GetGendiN
bit0
input1
bit1
input2
bit2
input3
bit3
input4
bit4
input5
bit5
input6
bit6
input7
bit7
Not used
<Return value>
If this function completes successfully, the function returns RET_TRUE (0x01). If this
function terminates with an error, the function returns a value as follows.
Table 6-6 Return Value from the GetGendiN Function (Error Cases)
Return value
Description
W2KRAS_INVALID_PARAMETER (0x2001)
There is an error in the specified arguments.
W2KRAS_INTERNAL_ERROR (0x2007)
An internal error has been generated.
W2KRAS_RESOURCE_LOCKED (0x2101)
Another process uses the same resources.
RET_FALSE (0x00)
An error other than
W2KRAS_INVALID_PARAMETER,
W2KRAS_INTERNAL_ERROR, and
W2KRAS_RESOURCE_LOCKED has been generated.

Table of Contents

Related product manuals