MXIO_WriteRegs_Ex

 

This function code is used to write the fix modbus address contents of a contiguous block of the I/O device's holding registers.

 

C/C++

int MXIO_WriteRegs_Ex( int hConnection,

WORD wStartRegister,

WORD wCount,

WORD wRegister[ ]);

 

Visual Basic

Declare Function MXIO_WriteRegs_Ex Lib "MXIO.dll" (ByVal hConnection As Long, ByVal iStartRegister As Integer, ByVal iCount As Integer, iRegister As Integer) As Long

 

 

Arguments:

hConnection

The handle for an I/O device connection.

wStartRegister

Specifies the starting register address. The address is beginning at 0.

wCount

The number of registers to be written.

wRegister

An array that stores the register values.

 

Return Value:

Succeed

MXIO_OK

Fail

Refer to Return Codes.