DO4K_GetSafeActions

 

This function code is used to get the safe action of contiguous D/O channels.

 

C/C++

int DO4K_GetSafeActions( int hConnection,

BYTE bytSlot,

BYTE bytStartChannel,

BYTE bytCount,

WORD wAction[ ]);

 

Visual Basic

Declare Function DO4K_GetSafeActions Lib "MXIO.dll" (ByVal hConnection As Long, ByVal bytSlot As Byte, ByVal bytStartChannel As Byte, ByVal bytCount As Byte, iAction As Integer) As Long

 

Arguments:

hConnection

The handle for an I/O device connection.

bytSlot

Slot number of the I/O module. The Slot number ranges from 1 to 32.

bytStartChannel

Specifies the starting channel.

bytCount

The number of channels to be gets.

wAction

An array that sotres the safe action of contiguous D/O channels. The values are:

0: Safe Value

1: Hold last state

 

Return Value:

Succeed

MXIO_OK

Fail

Refer to Return Codes.