Moxa M-1401 Instrukcja Obsługi Strona 68

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 129
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 67
ioLogik MXIO DLL API Reference Direct I/O Command Sets
6-31
Pulse2K_SetSignalWidth
This function code is used to set the Hi/Lo signal width for a
specific pulse channel.
C/C++
Arguments
Return Value
int Pulse2K_SetSignalWidth ( int hConnection,
BYTE bytChannel,
WORD wHiWidth,
WORD wLoWidth);
hConnection: The handle for an I/O connection.
bytChannel: The desired channel.
wHiWidth: A pointer to the Hi signal width of the
desired channel.
wLoWidth: A pointer to the Lo signal width of the
desired channel.
Succeed MXIO_OK.
Fail Refer to Return Codes.
Pulse2K_GetSignalWidths32
This function code is used to get the contiguous pulse channel's
Hi/Lo signal width (32 bits).
The function code is designed for the ioLogik E2260 only.
C/C++
Visual Basic
Arguments
Return Value
int Pulse2K_GetSignalWidths32
( int hConnection,
BYTE bytStartChannel,
BYTE bytCount,
DWORD dwHiWidth[ ],
DWORD dwLoWidth[ ]);
Declare Function Pulse2K_GetSignalWidths32 Lib “MXIO.dll”
(ByVal hConnection As Long, ByVal bytStartChannel As
Byte, ByVal bytCount As Byte, iHiWidth As Long, iLoWidth
As Long) As Long
hConnection: The handle for an I/O connection.
bytStartChannel: Specifies the starting channel.
bytCount: The number of channels to get.
dwHiWidth: An array that stores the contiguous
pulse channel’s Hi signal width,
dwHiWidth[0] represents the Hi
signal width of the starting channel.
dwLoWidth: An array that stores the contiguous
plulse channel’s Lo signal width ,
dwLoWidth[0] represents the Lo
signal width of the starting channel.
Succeed MXIO_OK.
Fail Refer to Return Codes.
Przeglądanie stron 67
1 2 ... 63 64 65 66 67 68 69 70 71 72 73 ... 128 129

Komentarze do niniejszej Instrukcji

Brak uwag