
ioLogik MXIO DLL API Reference Direct I/O Command Sets
6-14
Cnt2K_GetPowerOnValues
This function code is used to get the power on values of
contiguous D/I channels in Counter mode.
C/C++
Arguments
Return Value
int Cnt2K_GetPowerOnValues ( int hConnection,
BYTE bytStartChannel,
BYTE bytCount,
DWORD * dwValue);
hConnection: The handle for an I/O connection.
bytStartChannel: Specifies the starting channel.
bytCount: The number of channels to read.
dwValue: A pointer to the power on values; each bit
holds the power on value of one channel. A bit
value of 0 represents the power on value of
the start channel. A bit value of 1 represents
the second channel’s power on value. The
values are:
0: OFF
1: ON
Succeed MXIO_OK.
Fail Refer to Return Codes.
Cnt2K_SetPowerOnValues
This function code is used to set the power on values of
contiguous D/I channels in Counter mode.
C/C++
Arguments
Return Value
int Cnt2K_SetPowerOnValues ( int hConnection,
BYTE bytStartChannel,
BYTE bytCount,
DWORD dwValue);
hConnection: The handle for an I/O connection.
bytStartChannel: Specifies the starting channel.
bytCount: The number of channels to set.
dwValue: Stored the power on values for the contiguous
channels; each bit holds the power on value of
one channel. A bit value of 0 represents the
power on value of the start channel. A bit
value of 1 represents the second channel’s
power on value. The values are:
0: OFF
1: ON
Succeed MXIO_OK.
Fail Refer to Return Codes.
Komentarze do niniejszej Instrukcji