ICP DAS USA I-8088W Api Reference Manual page 83

I/o module
Table of Contents

Advertisement

Examples
[C]
int slot,ch,enBit[8];
Slot=0;
unsigned int dival=0;
pac_i8088W_GetDI(slot, &diVal,enBit);
Print ("DI Vaule = %02X\n",diVal);
for (ch=0; ch< 8; ch++)
{
Print ("DI[%d]= %d\n",ch, enBit[ch]);
}
[C#]
using pac8088WNet;
int slot=0,ch,enBit[8];
Uint16 dival=0;
pac8088W.GetDI(slot, &diVal,enBit);
Console.WriteLine("DI Vaule = {0:X2}",diVal);
for (ch=0; ch< 8; ch++)
{
Console.WriteLine("DI[{0}]= {1}",ch, enBit[ch]);
}
I-8088W API Reference Manual, Version 1.0.0, Aug. 2010
--- 83

Advertisement

Table of Contents
loading

Table of Contents