Moxa M-1401 Manual Pagina 40

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 129
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 39
ioLogik MXIO DLL API Reference Direct I/O Command Sets
6-3
Digital Input Commands for ioLogik E2000, R2000
DI2K_GetModes
This function code is used to get the mode of contiguous D/I
channels.
C/C++
Arguments
Return Value
int DI2K_GetModes ( int hConnection,
BYTE bytStartChannel,
BYTE bytCount,
WORD wMode[ ]);
hConnection: The handle for an I/O connection.
bytStartChannel: Specifies the starting channel.
bytCount: The number of channels to read.
wMode: An array that stores the modes of the
contiguous D/I channels. wMode[0] represents
the value of the starting channel. The values
are:
0: D/I Mode.
1: Counter Mode.
Succeed MXIO_OK.
Fail Refer
t
oRe
t
u
r
nCodes.
DI2K_SetModes
This function code is used to set the mode of contiguous D/I
channels.
C/C++
Arguments
Return Value
int DI2K_SetModes ( int hConnection,
BYTE bytStartChannel,
BYTE bytCount,
WORD wMode[ ]);
hConnection: The handle for an I/O connection.
bytStartChannel: Specifies the starting channel.
bytCount: The number of channels to set.
wMode: An array that stores the modes of the
contiguous D/I channels. wMode [0] represents
the value of the starting channel. The values
are:
0: D/I Mode.
1: Counter Mode.
Succeed MXIO_OK.
Fail Refer to Return Codes.
Vista de pagina 39
1 2 ... 35 36 37 38 39 40 41 42 43 44 45 ... 128 129

Comentarios a estos manuales

Sin comentarios