EasyManua.ls Logo

Advantech ADAM-6000 series - Page 97

Advantech ADAM-6000 series
156 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
ADAMTCP_Read6KAI
Description:
To read analog input channel's value for an ADAM-6000 module.
Syntax:
int ADAMTCP_Read6KAI(char szIP[], WORD wModule, WORD wIDAddr, WORD wGain[], WORD
wHex[], double dlValue[])
Parameter:
szIP[in]: the IP Address of the target ADAM-6000 module to be connected.
wModule[in]: the module name of the ADAM-6000 module to be connected.
(For example, 6050, 6051, or 6060)
wIDAddr[in]: the Modbus device ID for an ADAM-6000 module. (Always 1)
wGain[in]: the range code against analog input range for individual channels stored in
this array.
wHex[out]: an unsigned 16-bit array that stored the value reading from AI channels.
dlValue[out]: an array that stored the values in engineer unit format that reading from AI
channels.
Return:
Please refer to Chapter 6-2-3 "Return Codes" for more detail information.

Related product manuals