13.07.2015 Views

User manual - ICP DAS USA

User manual - ICP DAS USA

User manual - ICP DAS USA

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

DWORD m_checksum=0;Open_Com(COM3, 9600, Data8Bit, NonParity, OneStopBit);dwBuf[0] = m_port;dwBuf[1] = m_address;dwBuf[2] = 0x8041;dwBuf[3] = m_checksum;dwBuf[4] = m_timeout;dwBuf[5] = 10;// digital outputdwBuf[6] = 0;dwBuf[7] = m_slot;DigitalOut_8K(dwBuf, fBuf, szSend, szReceive);Close_Com(COM3);Remark:• DigitalBitOut_8KDescription:This function is used to set the digital value of the digital output channel No. of I-8000series modules. Theoutput value is “0” or “1”.Syntax:[ C ]WORD DigitalBitOut_8K(DWORD dwBuf[], float fBuf[],char szSend[],char szReceive[])Parameter:dwBuf: DWORD Input/Output argument talbedwBuf[0] : [Input] COM port number, from 1 to 255dwBuf[1] : [Input] Module address, form 0x00 to 0xFFdwBuf[2] : [Input] Module ID, 0x8041/42/54/55/56/57/60/63/64/65/66/67/68/77dwBuf[3] : [Input] 0= Checksum disable; 1= Checksum enabledwBuf[4] : [Input] Timeout setting , normal=100 msecondLinPAC-8x4x SDK:103

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

Saved successfully!

Ooh no, something went wrong!