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.

WORD m_timeout=100;WORD m_checksum=0;Open_Com(COM3, 9600, Data8Bit, NonParity, OneStopBit);wBuf[0] = m_port;wBuf[1] = m_address;wBuf[2] = 0x7012;wBuf[3] = m_checksum;wBuf[4] = m_timeout;wBuf[5] = 0;wBuf[6] = 1;AnalogInHex (wBuf, fBuf, szSend, szReceive);AI = wBuf[7];// Hex formatClose_Com(COM3);Remark:• AnalogInFsrDescription:This function is used to obtain the analog input value in “FSR” format form I-7000series modules. The “FSR” means “Percent” format.Syntax:[ C ]WORD AnalogInFsr (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, 0x7005/11/12/13/14/15/16/17/18/19/33wBuf[3] : [Input] 0= Checksum disable; 1= Checksum enablewBuf[4] : [Input] Timeout setting , normal=100 msecondLinPAC-8x4x SDK:144

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

Saved successfully!

Ooh no, something went wrong!