Planning Your Application Program
ADAM5KTCP_ReadReg
Chapter 6
Description:
Reads the holding register value at a specified range
described in parameters.
Syntax:
int ADAM5KTCP_ReadReg(char szIP[],
WORD wID, WORD wStartAddress, WORD wCount,
WORD wData[]);
Parameter:
szIP[in]:
the IP Address of the ADAM-5000/TCP that to be
connected
wID[in]:
the specific device ID for an Modbus/TCP device.
The ADAM-5000/TCP is always assigned as 1
wStartAddress[in]: the starting address that to be read
wCount[in]:
how many holdings register to be read
wData[out]:
a unsigned 16 bits array that stored the read holding
register
Return:
Please refer to Chapter 6-2-4 “Return Codes” for more
detail information
ADAM-5000/TCP
User’s Manual
6-15
Summary of Contents for ADAM-5000/TCP Series
Page 1: ......
Page 23: ......
Page 44: ...4 I O modules...
Page 148: ......
Page 183: ......
Page 218: ......
Page 300: ...Appendix A Design Worksheets...
Page 307: ...Appendix A Design Worksheets A 8 ADAM 5000 TCP User s Manual...
Page 308: ...Appendix B Data Formats and I O Ranges...
Page 323: ...Appendix B Data Formats and I O Ranges B 13 ADAM 5000 TCP User s Manual...
Page 324: ...Appendix C Grounding Reference...
Page 331: ...Appendix C Grounding Reference Figure C 6 wire impedancC C 8 ADAM 5000 TCP User s Manual...