Download FR-2017 Analog Input Module User Manual
Transcript
3.1.3. i8172_ReadAI_Ch Retrieve the analog data converted to a float value from the specified channel. Syntax short i8172_ReadAI_Ch(int slot,int port, int group, short bitMode,short typeCode, short chIndex, float* aiFloat); Parameters slot: 0 ~ 7 port: 0 or 1 group: 8 ~ 15 bitMode: 12: 12-bit resolution 16: 16-bit resolution typeCode: The measurement range chIndex: The channel number *aiFloat: The receiving analog data Return Values If the function succeeds, the return value is the unit of time ms of the specified channel.