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.

• AnalogOutReadBackHexDescription:This function is used to obtain read back the analog value of analog output modules inHex format for I-7000 series modules. There are two types of read back functions, asdescribed in the following :1. Last value is read back by $AA6 command2. Analog output of current path is read back by $AA8 commandSyntax:[ C ]WORD AnalogOutReadBackHex(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, 0x7021/21P/22wBuf[3] : [Input] 0= Checksum disable; 1= Checksum enablewBuf[4] : [Input] Timeout setting , normal=100 msecondwBuf[5] : : [Input] 0 : command $AA6 read back: 1 : command $AA8 read backwBuf[6] : [Input] 0 no save to szSend &szReceive1 Save to szSend &szReceivewBuf[7] : [Input] The analog output channel No.No used for single analog output modulewBuf[9] : ::: [Output] Analog output value in Hexadecimal data format.fBuf : Not used.szSend : [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 FailureLinPAC-8x4x SDK:179

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

Saved successfully!

Ooh no, something went wrong!