Moxa M-1401 Manuale Pagina 55

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 129
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 54
ioLogik MXIO DLL API Reference Direct I/O Command Sets
6-18
Digital Output Commands
DO_Reads
This function code is used to read the output statuses of contiguous
D/O channels.
C/C++
Arguments
Return Value
int DO_Reads ( 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 read.
dwValue: A pointer to the statuses of the contiguous D/O
channels; each bit holds the value of one
channel. A bit value of 0 represents the digital
output status of the start channel. A bit value of
1 represents the status of the second digital
output channel. The values of the unused bits
are random.
Succeed MXIO_OK.
Fail Refer
t
oRe
t
u
r
nCodes.
DO_Read
This function code is used to read the output status of a specific
D/O channel.
C/C++
Arguments
Return Value
int DO_Read ( 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: A pointer to the output value of the desired
channel.
Succeed MXIO_OK.
Fail Refer to Return Codes.
Vedere la pagina 54
1 2 ... 50 51 52 53 54 55 56 57 58 59 60 ... 128 129

Commenti su questo manuale

Nessun commento