I7000_networkanalogin – Measurement Computing CB-NAP-7000P User Manual
Page 25

21
5.13 I7000_NetworkAnalogIn
z Description:
Read the multi-module analog input value from CB-7000 RS-485 network.. The user can call I7000_AnalogIn to read
analog input value one by one or call this function once for easy programming.
z Syntax:
I7000_NetworkAnalogIn(WORD wPort, WORD wTotal, WORD wT, WORD wID[], WORD wConfig[], WORD
wChksum[], float f7000[])
z Input Parameter:
wPort: RS-232 port number, 1/2/3/4
wTotal: number of modules to read
wT: time out constant, normal=100
wID: wID[?]=module address of module_?, from 0x00 to 0xFF
wConfig: if wID[?]=0x7017 then wConfig[?]=08/09/0A/0B/0C/0D
if wID[?] !=0x7017 then wConfig[?] is ignored
wChksum: if wChksum[?]=1 :the checksum of module_? is enable
f7000[0]: analog value of module_0, channel_0
f7000[1]: analog value of module_0, channel_1
………………………………………………..
f7000[7]: analog value of module_0, channel_7
f7000[8]: analog value of module_1, channel_0
………………………………………………..
f7000[15]: analog value of module_1, channel_7
f7000[n*8]: analog value of module_n, channel_0
f7000[n*8+1]: analog value of module_n, channel_1
………………………………………………..
f7000[n*8+7]: analog value of module_n, channel_7
z Return Value:
NoError: OK
others: Error code, refer to I7000.H