Measurement-computing CB-NAP-7000P Manual do Utilizador Página 23

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 36
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 22
19
5.11 I7000_DigitalOut
z Description:
Set the digital output value of CB-7000 series digital I/O module.
z Syntax:
I7000_DigitalOut(WORD w7000[], float f7000[], char szSendTo7000[], char szReceiveFrom7000[])
z Input Parameter:
w7000: WORD Input/Output argument table
f7000: float Input/Output argument table
szSendTo7000: command string send to CB-7000
szReceiveFrom7000: result string read from CB-7000
z Return Value:
NoError: OK
others: Error code, refer to I7000.H
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, 0x7050/7060/7067/7042/7043/7044
w7000[3] : 0=checksum disable, 1=checksum enable
w7000[4] : TimeOut constant, normal=100
w7000[5] : 16-bit digital output data
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
void
w7000[0]=cPort; // port
w7000[1]=wAddr; // Address
w7000[2]=0x7053; // ID
w7000[3]=0; // CheckSum disable
w7000[4]=wTimeOut; // TimeOut constant
w7000[5]=wDoVal; // digital output value
w7000[6]=1; // string debug
wRet=I7000_DigitalOut(w7000, f7000, szSend, szReceive);
Vista de página 22
1 2 ... 18 19 20 21 22 23 24 25 26 27 28 ... 35 36

Comentários a estes Manuais

Sem comentários