EasyManua.ls Logo

Advantech ADAM-6000 series - Page 95

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_Read6KDIO
Description:
To read the DI/DO status in the specific ADAM-6000 module.
Syntax:
int ADAMTCP_Read6KDIO(char szIP[], WORD wModule, WORD wIDAddr, BYTE byDI[], BYTE byDO[])
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)
byDI[out]: an 8-bit array that stored the DI status of the specific ADAM-6000.
byDO[out]: an 8-bit array that stored the DO status of the specific ADAM-6000.
Return:
Please refer to Chapter 6-2-3 "Return Codes" for more detail information.

Related product manuals