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.

6.4.2.2 I-8000 series modules• DigitalOut_8KDescription:This function is used to set the digital output value of digital output module for I-8000series modules.Syntax:[ C ]WORD DigitalOut_8K(DWORD dwBuf[], float fBuf[],char szSend[],char szReceive[])Parameter:dwBuf: WORD 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 mseconddwBuf[5] : [Input] 16-bit digital output datadwBuf[6] : [Input] 0 no save to szSend &szReceive1 Save to szSend &szReceivedwBuf[7] : [Input] Slot number; the I/O module installed in I-8000 main unit.fBuf : Not used.szSend : [Input] Command string to be sent to I-8000 series modules.szReceive : [Output] Result string receiving from I-8000 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;DWORD m_address=1;DWORD m_timeout=100;LinPAC-8x4x SDK:102

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

Saved successfully!

Ooh no, something went wrong!