Setxvbit - ICP DAS USA LinPAC-22 Series User Manual

Xv-board api functions
Table of Contents

Advertisement

ICP DAS

2.7. setXVBit

Description:
This function is used to set the status value for a specified DO module in an LP-22xx/52xx
system using the Modbus protocol.
Syntax:
int
setXVBit(char cPort, WORD wAddr, WORD wCount, char szBuf, WORD wBufLen)
Parameters:
cPort:
[Input] The number of the COM port for the XV-Board. 1=COM1=/dev/ttyO1.
wAddr:
[Input] The channel address.
Note: Input the channel address mapping in
wCount:
[Input] The number of channels.
szBuf[ ]:
[Input] Use to set the Digital Output data in decimal format.
wBufLen:
[Input] The length of the szBuf[ ].
Return Values:
0: The function was successfully processed.
Other: The processing failed.
Refer to Chapter 3:
"Error
Codes" for details of other returned values.
LinPAC-52xx Series XV-Board API User Manual
[ C ]
decimal
format.
19

Advertisement

Table of Contents
loading

Table of Contents