beautypg.com

Measurement Computing CB-NAP-7000P User Manual

Page 17

background image

13

z W7000: WORD Input/Output Table

w7000[0] : RS-232 port number, 1/2/3/4
w7000[1] : module address, from 0x00 to 0xFF

w7000[2] : module ID, 0x7011/7012/7013/7014/7017/7018

w7000[3] : 0=checksum disable, 1=checksum enable
w7000[4] : TimeOut constant, normal=100
w7000[5] : channel number for CB-7017/7018
w7000[6] : 0

:no save to szSendTo7000&szReceiveFrom7000

1

:szSendTo7000=command string send to CB-7000

:szReceiveFrom

7000=result string receive from CB-7000

z F7000:

Float Input/Output Table

f7000[0] : analog input value return


w7000[0]=cPort; // port
w7000[1]=wAddr; // Address
w7000[2]=0x7012; // ID
w7000[3]=0; // CheckSum disable
w7000[4]=wTimeOut; // TimeOut constant, normal=100
w7000[6]=1; // string debug
wRet=I7000_AnalogIn(w7000, f7000, szSend, szReceive);