Rev. 1.4E
Manual ME-1000
Function Reference
Page 32
Meilhaus Electronic
☞
Important Note!
To properly configure the port the function
me1000DIOSetPortDirection
must first be called for the selected
port.
●
Definitions
C:
int me1000DIGetWord (int iBoardNumber, int iPortNo,
int iWordNo, int *piWordValue);
Delphi:
Function me1000DIGetWord (iBoardNumber, iPortNo,
iWordNo: integer; Var piWordValue: integer): integer;
Basic:
Declare Function me1000DIGetWord Lib „me1000“ Alias
"_VBme1000DIGetWord@12" (ByVal lBoardNumber As
Long, ByVal lPortNo As Long, ByVal lWordNo As Long,
ByRef lWordValue As Long) As Long
➔
Parameters
<BoardNumber>
Board number for ME-1000 to be accessed,
(1
st
: 0, 2
nd
: 1, n
th
<
PortNo
>
Selection of port:
<Port>
Port
PORTA (00Hex)
32 bit port A
PORTB (01Hex)
32 bit port B
PORTC (02Hex)
32 bit port C
PORTD (03Hex)
32 bit port D
<
WordNo
>
Selection of the 16 bit word within the 32 bit
word; possible are:
<WordNo>
16 bit word
WORD_0 (00Hex)
P
x
0…P
x
15
WORD_1 (01Hex)
P
x
16…P
x
31
<
WordValue
>
Pointer to an integer value where the 16 Bit word
is read into. Only the lower 16 bits are significant.
Return value
If the function is successfully executed, a '1' is returned. If an error
occurs, a '0' is returned. The cause of the error can be determined
with the function
me1000GetDrvErrMess
Содержание ME-1000 Series
Страница 8: ...Rev 1 4E Manual ME 1000 Introduction Page 8 Meilhaus Electronic ...
Страница 10: ...Rev 1 4E Manual ME 1000 Installation Page 10 Meilhaus Electronic ...
Страница 16: ...Rev 1 4E Manual ME 1000 Hardware Page 16 Meilhaus Electronic ...
Страница 40: ...Rev 1 4E Manual ME 1000 Function Reference Page 40 Meilhaus Electronic ...
Страница 46: ...Rev 1 4E Manual ME 1000 Technical Questions Page 46 Meilhaus Electronic ...