ICP DAS
LinPAC-52xx Series XV-Board API User Manual
11
2.3. getXVBitBack
Description:
This function is used to read back the channel status value from a specified DO module in an
LP-22xx/52xx system using the Modbus protocol.
Syntax:
[ C ]
int
getXVBitBack(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
decimal
format.
wCount:
[Input] The number of channels.
szBuf[ ]:
[Output] Used to read back the Digital Output value.
wBufLen:
[Input] The length of the szBuf[ ].
Return Values:
0: The function was successfully processed.
Other: The processing failed.
Refer to Chapter 3: “
” for details of other returned values.