Download DCON_DLL - kolbinger electronic

Transcript
„ AnalogInFsr_8K
Description:
Obtain the analog input value in “FSR” format from I-8000 series modules. The
“FSR” means “Percent” format.
Syntax:
AnalogInFsr_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, 0x8017/0x8018
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]:
The analog input value.
DCON DLL user’s Manual, 2003 June, Ver. 3.5, 7MS-018-35------ 41 -