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.

• DigitalBitOut_87KDescription:This function is used to set the digital output value of the specific digital output channelNo. of the digital output module for I-87000 series modules. The output value is only for “0”or “1”.Syntax:[ C ]WORD DigitalBitOut_87K(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, 0x87041/54/55/57/58/60/63/64/66/68dwBuf[3] : [Input] 0= Checksum disable; 1= Checksum enabledwBuf[4] : [Input] Timeout setting , normal=100 mseconddwBuf[5] : :: [Input]1-bit digital output data.dwBuf[6] : [Input] 0 no save to szSend &szReceive1 Save to szSend &szReceivedwBuf[7] : [Input] The digital output channel No.dwBuf[8] : [Input] Data to output(0 or 1)fBuf : Not used.szSend : [Input] Command string to be sent to I-87000 series modules.szReceive : [Output] Result string receiving from I-87000 series modules .Return Value:0 is for SuccessNot 0 is for FailureExample:char szSend[80];char szReceive[80];float fBuf[12];DWORD dwBuf[12];DWORD m_port=3;DWORD m_slot=1;LinPAC-8x4x SDK:116

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

Saved successfully!

Ooh no, something went wrong!