Download DCON_DLL - kolbinger electronic
Transcript
AnalogInFsr Description: Obtain the analog input value in “FSR” format from I-7000 series modules. The “FSR” means “Percent” format. Syntax: AnalogInFsr (WORD wBuf [], float fBuf [], char szSend [], char szReceive []) Input Parameter: wBuf: fBuf: szSend: szReceive: WORD Input/Output argument table Float Input/Output argument table Command string to be sent to I-7000 series modules Result string receiving from I-7000 series modules. Return Value: NoError: Others: OK Error code wBuf: WORD Input/Output Table wBuf[0] : wBuf[1] : wBuf[2] : wBuf[3] : wBuf[4] : wBuf[5] : wBuf[6] : COM port number, 1 to 255 Module address, from 0x00 to 0xFF Module ID, 0x7011/7012/7013/7014/7017/7018/7033 0=checksum disable, 1=checksum enable Time out setting, normal=100, unit=ms. Channel number for 7017/7018/7033 0 Æ no save to szSend & szReceive 1 Æ save to szSend & szReceive fBuf: Float Input/Output Table fBuf[0]: The analog input value. Note : Users have to use DCON utility to set up the analog input configuration of the module in FSR format. DCON DLL user’s Manual, 2003 June, Ver. 3.5, 7MS-018-35------ 34 -