Moxa M-1401 Handbuch Seite 39

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 129
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 38
ioLogik MXIO DLL API Reference Direct I/O Command Sets
6-2
Digital Input Commands
DI_Reads
This function code is used to read the status of a group of
contiguous D/I channels.
C/C++
Arguments
Return Value
int DI_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 contiguous D/I channel’s
values; each bit holds the value of one channel.
A bit value of 0 represents the digital input
status of the start channel. A bit value of 1
represents the second digital input channel’s
status. The values of the unused bits are
random.
Succeed MXIO_OK.
Fail Refer
t
oRe
t
u
r
nCodes.
DI_Read
This function code is used to read the status of a specific D/I
channel.
C/C++
Arguments
Return Value
int DI_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 a specific D/I channel’s status.
Succeed MXIO_OK.
Fail Refer
t
oRe
t
u
r
nCodes.
Seitenansicht 38
1 2 ... 34 35 36 37 38 39 40 41 42 43 44 ... 128 129

Kommentare zu diesen Handbüchern

Keine Kommentare