Advantech ADAM-5000/TCP Series Manual page 82

Distributed da&c system based on ethernet
Table of Contents

Advertisement

Planning Your Application Program
ADAM5KTCP_ReadReg
Description:
Syntax:
Parameter:
szIP[in]:
wID[in]:
wStartAddress[in]: the starting address that to be read
wCount[in]:
wData[out]:
Return:
ADAM-5000/TCP User's Manual
Reads the holding register value at a specified range
described in parameters.
int
ADAM5KTCP_ReadReg(char
WORD wID, WORD wStartAddress, WORD wCount,
WORD wData[]);
the IP Address of the ADAM-5000/TCP that to be
connected
the specific device ID for an Modbus/TCP device.
The ADAM-5000/TCP is always assigned as 1
how many holdings register to be read
a unsigned 16 bits array that stored the read holding
register
Please refer to Chapter 6-2-4 "Return Codes" for more
detail information
Chapter 6
szIP[],
6-15

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Adam-5000l/tcp

Table of Contents