RLY2K_TotalCntReads

 

This function code is used to get count value of contiguous D/O channels.

 

C/C++

int RLY2K_TotalCntReads ( int hConnection,

BYTE bytStartChannel,

BYTE bytCount,

DWORD dwValue[ ]);

 

Visual Basic

Declare Function RLY2K_TotalCntReads Lib "MXIO.dll" (ByVal hConnection As Long, ByVal bytStartChannel As Byte, ByVal bytCount As Byte, nValue As long) As Long

 

Arguments:

hConnection

The handle for an I/O device connection.

bytStartChannel

Specifies the starting channel.

bytCount

The number of channels to be set.

wValue

An array that stores the contiguous D/O channels relay count. wValue[0] represents the value of the starting channel.

 

Return Value:

Succeed

MXIO_OK

Fail

Refer to Return Codes.