Moxa M-1401 Manual Pagina 63

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 129
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 62
ioLogik MXIO DLL API Reference Direct I/O Command Sets
6-26
DIO2K_SetIOMode
This function code is used to set specific channel's DI/DO mode.
This function will take effect after restart the device.
C/C++
Arguments
Return Value
int DIO2K_SetIOMode ( int hConnection,
BYTE bytChannel,
BYTE bytMode);
hConnection: The handle for an I/O connection.
bytChannel: The specific channel to be set.
bytMode: A pointer that stores the specific channel's
DI/DO mode. The values are:
0 : INPUT DI mode
1 : OUTPUT DO mode
Succeed MXIO_OK
Fail Refer to Return Codes.
DIO2K_GetIOModes
This function code is used to get contiguous channel's DI/DO
mode.
C/C++
Arguments
Return Value
int DIO2K_GetIOModes ( int hConnection,
BYTE bytStartChannel,
BYTE bytCount,
DWORD * dwMode);
hConnection: The handle for an I/O connection.
bytStartChannel: Specifies the starting channel.
bytCount: The number of channels to be set.
dwStatus: A pointer that stores the contiguous channel's
DI/DO mode; each bit holds one channel status.
A bit value of 0 represents the status of the start
channel. A bit value of 1 represents the second
channel's status. The values are :
0 : INPUT DI mode
1 : OUTPUT DO mode
Succeed MXIO_OK
Fail Refer to Return Codes.
Vista de pagina 62
1 2 ... 58 59 60 61 62 63 64 65 66 67 68 ... 128 129

Comentarios a estos manuales

Sin comentarios