From: Bao Kha Nguyen on 10 Mar 2010 06:43 Hello! I am using Quatech QSC-200/300 Card to send and receive data from EuroTherm 808 Temperature Controller. Strings are as follows: Computer send: (EOT) (Group ID) (Unit ID) (C1) (C2) (ENQ) Controller reply: (STX) (C1) (C2) (D1) (D2) (D3) (D4) (D5) (ETX) where (Group ID) and (Unit ID): 00-99 (C1) (C2) is parameter specified by mnemonic, ex: P V,S V... (D1..D5): value of the requested parameter How can I format the above strings in ASCII Encode, Decode and FIFO Read HDRS blocks? I have tried to use the following formats but I only received 0: + ASCII Encode block: EOT %d%d P V ENQ (2 inputs are controller address, P V is a parameter specified by mnemonic) + FIFO Read HDRS block: Header: 'P V', Terminating String:[03] (ETX) + ASCII Decode: P V %f ETX (%f is for the value received from the controller) Could you please help me to correct the above string format to communicate with the device. I look forward to your advice. Thank you so much in advance... Kind regards, Kha
From: Gordon Weast on 10 Mar 2010 14:01 Responding via email with a model attached. Gordon Weast xPC Target Bao Kha Nguyen wrote: > Hello! > > I am using Quatech QSC-200/300 Card to send and receive data from > EuroTherm 808 Temperature Controller. Strings are as follows: > > Computer send: (EOT) (Group ID) (Unit ID) (C1) (C2) (ENQ) Controller > reply: (STX) (C1) (C2) (D1) (D2) (D3) (D4) (D5) (ETX) where (Group ID) > and (Unit ID): 00-99 > (C1) (C2) is parameter specified by mnemonic, ex: P V,S V... (D1..D5): > value of the requested parameter > > How can I format the above strings in ASCII Encode, Decode and FIFO Read > HDRS blocks? > I have tried to use the following formats but I only received 0: > > + ASCII Encode block: EOT %d%d P V ENQ (2 inputs are controller address, > P V is a parameter specified by mnemonic) > + FIFO Read HDRS block: Header: 'P V', Terminating String:[03] (ETX) > + ASCII Decode: P V %f ETX (%f is for the value received from the > controller) > > Could you please help me to correct the above string format to > communicate with the device. > I look forward to your advice. Thank you so much in advance... > > Kind regards, > Kha > > > >
From: Bao Kha Nguyen on 11 Mar 2010 06:04 Thank you so much, Gordon. Your answers are very helpful. I have also replied your email. Best regards, Bao Kha Nguyen Gordon Weast <gweast(a)mathworks.com> wrote in message <hn8q9k$671$1(a)fred.mathworks.com>... > Responding via email with a model attached. > > Gordon Weast > xPC Target > > Bao Kha Nguyen wrote: > > Hello! > > > > I am using Quatech QSC-200/300 Card to send and receive data from > > EuroTherm 808 Temperature Controller. Strings are as follows: > > > > Computer send: (EOT) (Group ID) (Unit ID) (C1) (C2) (ENQ) Controller > > reply: (STX) (C1) (C2) (D1) (D2) (D3) (D4) (D5) (ETX) where (Group ID) > > and (Unit ID): 00-99 > > (C1) (C2) is parameter specified by mnemonic, ex: P V,S V... (D1..D5): > > value of the requested parameter > > > > How can I format the above strings in ASCII Encode, Decode and FIFO Read > > HDRS blocks? > > I have tried to use the following formats but I only received 0: > > > > + ASCII Encode block: EOT %d%d P V ENQ (2 inputs are controller address, > > P V is a parameter specified by mnemonic) > > + FIFO Read HDRS block: Header: 'P V', Terminating String:[03] (ETX) > > + ASCII Decode: P V %f ETX (%f is for the value received from the > > controller) > > > > Could you please help me to correct the above string format to > > communicate with the device. > > I look forward to your advice. Thank you so much in advance... > > > > Kind regards, > > Kha > > > > > > > >
|
Pages: 1 Prev: GUI and waitbar on top of other windows Next: how to run a .nc file in matlab |