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.

dwBuf[0] = 3; // COM PortdwBuf[1] = 06;// AddressdwBuf[2] = 0x87054; // IDdwBuf[3] = 0;// CheckSum disabledwBuf[4] = 100;// TimeOut , 100 mseconddwBuf[6] = 0;// string debuggetch();DigitalIn_87k(dwBuf, fBuf, szSend, szReceive); // DI Inputprintf("DI= %u",dwBuf[5]);//--- digital output ---- ** Close DO **dwBuf[0] = 3;// COM PortdwBuf[1] = 06;// AddressdwBuf[2] = 0x87054; // IDdwBuf[3] = 0;// CheckSum disabledwBuf[4] = 100;// TimeOut , 100 mseconddwBuf[5] = 0x00; // digital outputdwBuf[6] = 0;// string debuggetch();// push any key to continuewRetVal = DigitalOut_87k(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-11.Fig. 7-117.3.3 I-87k Modules in slots of I-8000 ControllerIf the I-87k DIO modules are in the I-8000 controller slots, I-87k modules will beregarded as I-8k modules and so please refer to DI/DO control of I-8k modules in thesection 7.5.LinPAC-8x4x SDK:254

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

Saved successfully!

Ooh no, something went wrong!