DO_SetSafeValues_W

 

This function code is used to set safe values of contiguous D/O channels.

 

C/C++

int DO_SetSafeValues_W( int hConnection,

BYTE bytSlot,

BYTE bytStartChannel,

BYTE bytCount,

WORD * wValue);

 

Visual Basic

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

 

Arguments:

hConnection

The handle for an I/O device connection.

bytSlot

Slot number of the I/O module. Slot numbers range from 1 to 32. But this parameter is inactive in ioLogik 2000.

bytStartChannel

Specifies the starting channel.

bytCount

The number of channels to be set.

wValue

A pointer that stores the safe value of contiguous D/O channels; each word holds one channel value. A word value of 0 represents the digital output status of the start channel. A word value of 1 represents the status of the second digital output channel.

0: OFF

1: ON

2: Hold Last

 

Return Value:

Succeed

MXIO_OK

Fail

Refer to Return Codes.