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.

WORD m_timeout=100;WORD m_checksum=0;Open_Com(COM3, 9600, Data8Bit, NonParity, OneStopBit);wBuf[0] = m_port;wBuf[1] = m_address;wBuf[2] = 0x7050;wBuf[3] = m_checksum;wBuf[4] = m_timeout;wBuf[5] = 0x0f;// 8 DO Channels OnwBuf[6] = 0;DigitalOut(wBuf, fBuf, szSend, szReceive);Close_Com(COM3);Remark:• DigitalBitOutDescription:This function is used to set digital output value of the channel No. of I-7000 seriesmodules. The output value is “0” or “1”.Syntax:[ C ]WORD DigitalBitOut(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] : [Input] Module address, form 0x00 to 0xFFwBuf[2] : [Input] Module ID, 0x7042/43/44/50/60/63/65/66/67wBuf[3] : [Input] 0= Checksum disable; 1= Checksum enablewBuf[4] : [Input] Timeout setting , normal=100 msecondwBuf[5] : : Not usedLinPAC-8x4x SDK:86

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

Saved successfully!

Ooh no, something went wrong!