![background image](http://html1.mh-extra.com/html/advantech/adam-6000-series/adam-6000-series_user-manual_2857302102.webp)
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.
Summary of Contents for ADAM-6000 series
Page 21: ...Figure 3 2 Fix ADAM 6000 module on the bracket...
Page 23: ......
Page 24: ...Figure 3 4 Secure ADAM 6000 Module to a DIN rail...
Page 27: ...Figure 3 6 ADAM 6000 I O Module Terminal Block wiring...
Page 32: ...Figure 4 4 ADAM 6017 Digital Output wiring...
Page 36: ...Figure 4 8 ADAM 6050 Digital Output Wiring...
Page 41: ...Figure 4 13 ADAM 6051 Digital Output and Counter Wiring...
Page 46: ...Figure 4 18 ADAM 6060 Relay Output Wiring...
Page 75: ...Figure 5 29 Firmware Upgrade for ADAM 6000 I O Series Modules...
Page 153: ...Appendix A Design Worksheets...