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.

• DigitalOutReadBackDescription:This function is used to read back the digital output value of I-7000 series modules.Syntax:[ C ]WORD DigitalOutReadBack(WORD wBuf[ ], float fBuf[ ],char szSend[ ],Parameter:wBuf:char szReceive[ ])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, 0x7042/43/44/50/60/63/65/66/67/80[Input] 0=Checksum disable; 1=Checksum enable[Input] Timeout setting , normal=100 msecondwBuf[5] : : [Output] 16-bit digital output data read backwBuf[6] :fBuf :szSend :[Input] 0 no save to szSend &szReceiveNot used.1 Save to szSend &szReceive[Input] Command string to be sent to I-7000 series modules.szReceive : [Output] Result string receiving from I-7000 series modules .Return Value:0 is for SuccessNot 0 is for FailureExample:char szSend[80];char szReceive[80];float fBuf[12];WORD DO;WORD wBuf[12];WORD m_port=3;WORD m_address=1;WORD m_timeout=100;WORD m_checksum=0;Open_Com(COM3, 9600, Data8Bit, NonParity, OneStopBit);wBuf[0] = m_port;LinPAC-8x4x SDK:88

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

Saved successfully!

Ooh no, something went wrong!