Moxa M-1401 Manual Pagina 41

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 129
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 40
ioLogik MXIO DLL API Reference Direct I/O Command Sets
6-4
DI2K_GetMode
This function code is used to get the mode of a specific D/I
channel.
C/C++
Arguments
Return Value
int DI2K_GetMode ( int hConnection,
BYTE bytChannel,
WORD * wMode);
hConnection: The handle for an I/O connection.
bytChannel: The desired channel.
wMode: A pointer to the mode of the desired D/I
channel. The values are:
0: D/I Mode.
1: Counter Mode.
Succeed MXIO_OK.
Fail Refer
t
oRe
t
u
r
nCodes.
DI2K_SetMode
This function code is used to set the mode of a specific D/I
channel.
C/C++
Arguments
Return Value
int DI2K_SetMode ( int hConnection,
BYTE bytChannel,
WORD wMode);
hConnection: The handle for an I/O connection.
bytChannel: The desired channel.
wMode: A pointer to the mode of the desired D/I
channel. The values are:
0: D/I Mode.
1: Counter Mode.
Succeed MXIO_OK.
F
a
il R
e
f
e
r
t
o
R
et
ur
n
ode
s
.
DI2K_GetFilters
This function code is used to get the filter of contiguous D/I
channels.
C/C++
Arguments
Return Value
int DI2K_GetFilters ( int hConnection,
BYTE bytStartChannel,
BYTE bytCount,
WORD wFilter[ ]);
hConnection: The handle for an I/O connection.
bytStartChannel: Specifies the starting channel.
bytCount: The number of channels to read.
wFilter: An array that stores the filter values of the
contiguous D/I channels. wFilter [0] represents
the value of the starting channel.
Succeed MXIO_OK.
Fail Refer to Return Codes.
Vista de pagina 40
1 2 ... 36 37 38 39 40 41 42 43 44 45 46 ... 128 129

Comentarios a estos manuales

Sin comentarios