beautypg.com

I7000_networkdigitalin – Measurement Computing CB-NAP-7000P User Manual

Page 26

background image

22

5.14 I7000_NetworkDigitalIn


z Description:

Read the multi-module digital input value from CB-7000 RS-485 network.. The user can call I7000_DigitalIn to read

analog input value one by one or call this function once for easy programming.
z Syntax:

I7000_NetworkDigitalIn(WORD wPort, WORD wTotal, WORD wT, WORD wID[], WORD wConfig[], WORD

wChksum[], WORD w7000[])

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: reserved.
wChksum: if wChksum[?]=1 :the checksum of module_? is enable

w7000[0]: 16-bit digital value of module_0
w7000[1]: 16-bit digital value of module_1
……………………………………………
w7000[n]: 16-bit digital value of module_n

z Return Value:

NoError: OK
others: Error code, refer to 7000W31.H.