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.

wBuf[1] = m_address;wBuf[2] = 0x7050;wBuf[3] = m_checksum;wBuf[4] = m_timeout;wBuf[6] = 0;DigitalOutReadBack (wBuf, fBuf, szSend, szReceive);DO=wBuf[5];Close_Com(COM3);Remark:• DigitalOut_7016Description:This function is used to set the digital output value of the specified channel No. ofI-7016 module. If the parameter of wBuf[7] is “0”, it means to output the digital valuethrough Bit0 and Bit1 digital output channels. If wBuf[7] is “1”, it means to output the digitalvalue through Bit2 and Bit3 digital output channels.Syntax:[ C ]WORD DigitalOut_7016(WORD wBuf[], float fBuf[], char szSend[], char szReceive[])Parameter:wBuf:WORD Input/Output argument talbewBuf[0] : [Input] COM port number, from 1 to 255wBuf[1] :wBuf[2] :wBuf[3] :wBuf[4] :[Input] Module address, form 0x00 to 0xFF[Input] Module ID, 0x7016[Input] 0= Checksum disable; 1= Checksum enable[Input] Timeout setting , normal=100 msecondLinPAC-8x4x SDK:89

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

Saved successfully!

Ooh no, something went wrong!