Moxa M-1401 Manual Pagina 56

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 129
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 55
ioLogik MXIO DLL API Reference Direct I/O Command Sets
6-19
DO_Writes
This function code is used to write the output statuses of
contiguous D/O channels. There may not contiguous channels if
you use ioLogik E2212 DIO channels. Please make sure they are
contiguous channels or “ILLEGAL_DATA_VALUE” will be
return.
C/C++
Arguments
Return Value
int DO_Writes ( int hConnection,
BYTE bytSlot,
BYTE bytStartChannel,
BYTE bytCount,
DWORD dwValue);
hConnection: The handle for an I/O connection.
bytSlot: Slot number of the I/O module, from 1 to 32.
This parameter is inactive for the ioLogik
E2000 and R2000.
bytStartChannel: Specifies the starting channel.
bytCount: The number of channels to be written.
dwValue: Stores the channel statuses of the contiguous
D/O channels; each bit holds the status of one
channel. A bit value of 0 represents the digital
output status of the start channel. A bit value of
1 represents the second digital output channel’s
status. The values of the unused bits are random.
Succeed MXIO_OK.
Fail Refer to Return Codes.
DO_Write
This function code is used to write the output status for a specific
D/O channel.
C/C++
Arguments
Return Value
int DO_Write ( int hConnection,
BYTE bytSlot,
BYTE bytChannel,
BYTE bytValue);
hConnection: The handle for an I/O connection.
bytSlot: Slot number of the I/O module, from 1 to 32.
This parameter is inactive for the ioLogik
E2000 and R2000.
bytChannel: The desired channel.
bytValue: Stores the output status of the desired channel.
1 represents ON, 0 represents OFF.
Succeed MXIO_OK.
Fail Refer
t
oRe
t
u
r
nCodes.
Vista de pagina 55
1 2 ... 51 52 53 54 55 56 57 58 59 60 61 ... 128 129

Comentarios a estos manuales

Sin comentarios