
ioLogik MXIO DLL API Reference Modbus Command Sets
5-3
MXIO_WriteRegs
This function code is used to write the contents of a contiguous
block of the I/O holding registers.
C/C++
Arguments
Return Value
int MXIO_WriteRegs ( int hConnection,
WORD wStartRegister,
WORD wCount,
WORD wRegister[ ]);
hConnection: The handle for an I/O connection.
wStartRegister: Specifies the starting register address. The
address begins at 0.
wCount: The number of coils to be written.
wRegister: An array that stores the register values.
Succeed MXIO_OK.
Fail Refer to Return Codes.
Comentarios a estos manuales