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.

Open_Com(COM3, 9600, Data8Bit, NonParity, OneStopBit);wBuf[0] = m_port;wBuf[1] = m_address;wBuf[2] = 0x7022;wBuf[3] = m_checksum;wBuf[4] = m_timeout;wBuf[5] = 1; // channel 1wBuf[6] = 1;wBuf[7] = 0x250AnalogOutHex (wBuf, fBuf, szSend, szReceive);Close_Com(COM3);Remark:• AnalogOutFsrDescription:This function is used to obtain analog value of analog output modules through % ofspan data format. This function only can be used after analog output modules is set as“FSR” output mode.Syntax:[ C ]WORD AnalogOutFsr(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 msecondLinPAC-8x4x SDK:177

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

Saved successfully!

Ooh no, something went wrong!