Moxa M-1401 Handbuch Seite 49

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 129
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 48
ioLogik MXIO DLL API Reference Direct I/O Command Sets
6-12
Cnt2K_GetTriggerTypes
This function code is used to get the trigger types of contiguous
D/I channels in Counter mode.
C/C++
Arguments
Return Value
int Cnt2K_GetTriggerTypes ( int hConnection,
BYTE bytStartChannel,
BYTE bytCount,
DWORD * dwType);
hConnection: The handle for an I/O connection.
bytStartChannel: Specifies the starting channel.
bytCount: The number of channels to read.
dwType: A pointer to the triggers types; each bit holds
the trigger type of one channel. A bit value of 0
represents the trigger type of the start channel.
A bit value of 1 represents the second channel’s
trigger type. The values are :
0: LoToHi
1: HiToLo
Succeed MXIO_OK.
Fail Refer
t
oRe
t
u
r
nCodes.
Cnt2K_SetTriggerTypes
This function code is used to set the trigger types of contiguous
D/I channels in Counter mode.
C/C++
Arguments
Return Value
int Cnt2K_SetTriggerTypes ( int hConnection,
BYTE bytStartChannel,
BYTE bytCount,
DWORD dwType);
hConnection: The handle for an I/O connection.
bytStartChannel: Specifies the starting channel.
bytCount: The number of channels to set.
dwType: Stored the trigger types of the contiguous
channels; each bit holds the trigger type of one
channel. A bit value of 0 represents the trigger
type of the start channel. A bit value of 1
represents the second channel’s trigger type.
The values are :
0: LoToHi
1: HiToLo
Succeed MXIO_OK.
Fail Refer to Return Codes.
Seitenansicht 48
1 2 ... 44 45 46 47 48 49 50 51 52 53 54 ... 128 129

Kommentare zu diesen Handbüchern

Keine Kommentare