EasyManua.ls Logo

Advantech ADAM-6000 series - Page 102

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_Read6KCounter
Description:
To read the counter value when a DI channel configured in 'Counter' mode.
Syntax:
int ADAMTCP_Read6KCounter(char szIP[], WORD wModule, WORD wIDAddr,
unsigned long ulCounterValue[]);
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)
ulCounterValue[out]: an unsigned 32-bit array that stored the counter value of each DI channel.
Return:
Please refer to Chapter 6-2-3 "Return Codes" for more detail information.
ADAMTCP_Clear6KCounter
Description:
To clear the counter value when a DI channel configured in 'Counter' mode.
Syntax:
int ADAMTCP_Clear6KCounter(char szIP[], WORD wIDAdd, WORD wChIndex, WORD wData)
Parameter:
szIP[in]: the IP Address of the target ADAM-6000 module to be connected.
wIDAddr[in]: the Modbus device ID for an ADAM-6000 module. (Always 1)
wChIndex[in]: the specific DI channel need to be cleared the counter value.
wData[in]: always 1.
Return:
Please refer to Chapter 6-2-3 "Return Codes" for more detail information.

Related product manuals