
ioLogik MXIO DLL API Reference Direct I/O Command Sets
6-27
DIO2K_SetIOModes
This function code is used to set contiguous channel's DI/DO mode
This function will take effect after restart the device.
C/C++
Arguments
Return Value
int DIO2K_SetIOModes ( int hConnection,
BYTE bytStartChannel,
BYTE bytCount,
DWORD dwMode);
hConnection: The handle for an I/O device connection.
bytStartChannel: Specifies the starting channel.
bytCount: The number of channels to be set.
dwMode: A pointer that stores the contiguous channel's
DI/DO mode; each bit holds one channel status.
A bit value of 0 represents the status of the start
channel. A bit value of 1 represents the second
channel's status. The values are :
0 : INPUT DI mode
1 : OUTPUT DO mode
Succeed MXIO_OK
Fail R
f
r t
R
t
rn
Digital Output Commands for ioLogik 4000
DO4K_GetSafeActions
This function code is used to get the safe actions of contiguous
D/O channels.
C/C++
Arguments
Return Value
int DO4K_GetSafeActions ( 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 read.
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.
Comentarios a estos manuales