Advantech ADAM-5511 Manual page 257

Table of Contents

Advertisement

Get4050, Get4052, Get4053
Syntax:
void Get4050(int ID, void *pValue, int Bit, int Size)
void Get4052(int ID, void *pValue, int Bit, int Size)
void Get4053(int ID, void *pValue, int Bit, int Size)
Description:
Reads the data value in an I/O module.
Parameter
ID
Bit
Size
pValue
Return value:
None.
Example:
void main()
{
unsigned char *Bdata;
Description
Node number on the network
1~32
See "Size" parameter below.
ABit, AByte, AWord
If Size= ABit, Bit=0..15 (pin0..pin15)
If Size=AByte, Bit=0 for Low Byte data;
Bit=8 for High Byte data If Size=AWord,
Bit does not care. Always word data.
The value returned.

Advertisement

Table of Contents
loading

Table of Contents