Advantech ADAM-5511 Manual page 255

Table of Contents

Advertisement

Set4050, Set4060
Syntax:
void Set4050(int ID, void *pValue, int Bit, int Size)
void Set4060(int ID, void *pValue, int Bit, int Size)
Description:
Sets the digital output for ADAM-4050, ADAM-4060 modules to the
specified values.
Parameter
ID
pValue
Bit
Size
Return Value:
None.
Example:
void main()
{
unsigned char *Bitdata = 1;
Description
Node number on the network
1~32
The digital value specified by the user to
be output
See "Size" parameter below
ABit, AByte, AWord
If Size = ABit, Bit = 0...15 (pin0 ... pin15)
If Size = AByte, Bit = 0 is Low Byte data
Bit = 8 is High Byte data
If Size = AWord, Bit does not care, always
word data

Advertisement

Table of Contents
loading

Table of Contents