DO4K_GetSafeAction

 

This function code is used to get the safe action for a specific channel.

 

C/C++

int DO4K_GetSafeAction( int hConnection,

BYTE bytSlot,

BYTE bytChannel,

WORD * wAction);

 

Visual Basic

Declare Function DO4K_GetSafeAction Lib "MXIO.dll" (ByVal hConnection As Long, ByVal bytSlot As Byte, ByVal bytChannel 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.

bytChannel

The specific channel to be get.

wAction

A pointer 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.