
ioLogik MXIO DLL API Reference Direct I/O Command Sets
6-16
Cnt2K_GetSafeValues
This function code is used to get the safe values of contiguous D/I
channels in Counter mode.
C/C++
Arguments
Return Value
int Cnt2K_GetSafeValues ( 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 safe values; each bit holds the
safe value of one channel. A bit value of 0
represents the safe value of the start channel.
A bit value of 1 represents the second
channel’s safe value. The values are:
0: OFF
1: ON
Succeed MXIO_OK.
Fail Refer
oRe
u
nCodes.
Cnt2K_SetSafeValues
This function code is used to set the safe values of contiguous D/I
channels in Counter mode.
C/C++
Arguments
Return Value
int Cnt2K_SetSafeValues ( 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 safe values of the contiguous
channels; each bit holds the safe value of one
channel. A bit value of 0 represents the safe
value of the start channel. A bit value of 1
represents the second channel’s safe value.
The values are:
0: OFF
1: ON
Succeed MXIO_OK.
Fail Refer to Return Codes.
Kommentare zu diesen Handbüchern