13.07.2015 Views

User manual - ICP DAS USA

User manual - ICP DAS USA

User manual - ICP DAS USA

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

printf("DI = %u",dwBuf[5]);//--- digital output ---- ** Close DO **dwBuf[0] = 3;// COM PortdwBuf[1] = 01;// AddressdwBuf[2] = 0x8055; // IDdwBuf[3] = 0;// CheckSum disabledwBuf[4] = 100;// TimeOut , 100 mseconddwBuf[5] = 0x00;// digital outputdwBuf[6] = 0;// string debugdwBuf[7] = 1;// slot number}getch();// push any key to continuewRetVal = DigitalOut_8K(dwBuf, fBuf, szSend, szReceive);Close_Com(COM3);return 0;All the steps from programming to execution are the same as those in the section 7.1.The result of execution refers to Fig. 7-14.Fig. 7-147.6 I-8k Modules AIO Control DemoI8000.c of Libi8k.a is the source file for i8k modules in slots of I-8000 controller. Slot.cof Libi8k.a is the source file for i8k modules in slots of the LinPAC-8000. Therefore thefunctions for the i8k modules in LinPAC-8000 slots and in the I-8000 controller slots arecompletely different. There are two conditions for the location of the I-8k modules:(1) When I-8K AIO modules are in the LinPAC-8000, then please refer to the demo insection 7.6.1.LinPAC-8x4x SDK:262

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!