Download DCON_DLL - kolbinger electronic
Transcript
6.1.2 I-8000 series modules AnalogIn_8K Description: Obtain the analog input value in float format from I-8000 series modules. Syntax: AnalogIn_8K(DWORD dwBuf[], float fBuf[], char szSend[], char szReceive[]) Input Parameter: dwBuf: fBuf: szSend: szReceive: DWORD Input/Output argument table Float Input/Output argument table Command string to be sent to I-8000 series modules Result string receiving from I-8000 series modules. Return Value: NoError: Others: OK Error code dwBuf: DWORD Input/Output Table dwBuf[0] : dwBuf[1]: dwBuf[2] : dwBuf[3] : dwBuf[4] : dwBuf[5] : dwBuf[6] : COM port number, 1 to 255 Module address, from 0x00 to 0xFF Module ID, 0x8017h/0x8018/0x8013/0x8033 0=checksum disable, 1=checksum enable Time out setting, normal=100, unit=ms. The channel number of analog input module for 8013/17/18 0 Æ no save to szSend & szReceive 1 Æ save to szSend & szReceive dwBuf[7] : Slot number; the I/O module installed in I-8000 main unit. fBuf: Float Input/Output Table fBuf[0] : Analog input value DCON DLL user’s Manual, 2003 June, Ver. 3.5, 7MS-018-35------ 39 -