Moxa M-1401 Instrukcja Obsługi Strona 65

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 129
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 64
ioLogik MXIO DLL API Reference Direct I/O Command Sets
6-28
DO4K_SetSafeActions
This function code is used to set the safe actions of contiguous
D/O channels.
C/C++
Arguments
Return Value
int DO4K_SetSafeActions ( int hConnection,
BYTE bytSlot,
BYTE bytStartChannel,
BYTE bytCount,
WORD wAction[ ]);
hConnection: The handle for an I/O connection. bytSlot:
Slot number of the I/O module, from 1 to 32.
bytStartChannel: Specifies the starting channel.
bytCount: The number of channels to set.
wAction: An array that stores the safe actions of
contiguous D/O channels. The values are:
0: Safe Value
1: Hold last state
Succeed MXIO_OK.
Fail Refer to Return Codes.
DO4K_GetSafeAction
This function code is used to get the safe action for a specific D/O
channel.
C/C++
Arguments
Return Value
int DO4K_GetSafeAction ( int hConnection,
BYTE bytSlot,
BYTE bytChannel,
WORD * wAction);
hConnection: The handle for an I/O connection. bytSlot:
Slot number of the I/O module, from 1 to 32.
bytChannel: The desired channel.
wAction: A pointer to the safe action for the desired D/O
channel. The values are:
0: Safe Value
1: Hold last state
Succeed MXIO_OK.
Fail Refer
t
oRe
t
u
r
nCodes.
Przeglądanie stron 64
1 2 ... 60 61 62 63 64 65 66 67 68 69 70 ... 128 129

Komentarze do niniejszej Instrukcji

Brak uwag