![Ditel Kosmos series Instruction Manual Download Page 44](http://html.mh-extra.com/html/ditel/kosmos-series/kosmos-series_instruction-manual_2510335044.webp)
44
44
• MESSAGE FORMAT FROM INSTRUMENT
The format of a message as sent from the instrument in response to a command from the master device is the following:
1. In case of commands that ask for transmission of a value (data request type):
SOH D d
STX
X .................. X
ETX BCC
One byte S0H of start of message [ASCII 01].
Two address bytes.
One byte STX of start of text [ASCII 02].
N bytes corresponding to the requested value (including the sign and decimal point).
One byte ETX of end of text [ASCII 03].
One control byte BCC calculated with the method described in page 49.
2. In case of commands that do not imply the return of a value (command type or changing parameter)
:
D
d
ACK
or
D
d
NAK
The instrument sends a confirmation when it receives a message.
If the message has been correctly received and interpreted, the response will consist of two address bytes and one “ACK"
[ASCII 06]
If the received message has not been well interpreted or it has been detected as to have errors, the response will be two
address bytes and a "NAK" [ASCII 21].
• MESSAGE FORMAT FROM INSTRUMENT
The format of a message as sent from the instrument in response to a command from the master device is the following:
1. In case of commands that ask for transmission of a value (data request type):
SOH D d
STX
X .................. X
ETX BCC
One byte S0H of start of message [ASCII 01].
Two address bytes.
One byte STX of start of text [ASCII 02].
N bytes corresponding to the requested value (including the sign and decimal point).
One byte ETX of end of text [ASCII 03].
One control byte BCC calculated with the method described in page 49.
2. In case of commands that do not imply the return of a value (command type or changing parameter)
:
D
d
ACK
or
D
d
NAK
The instrument sends a confirmation when it receives a message.
If the message has been correctly received and interpreted, the response will consist of two address bytes and one “ACK"
[ASCII 06]
If the received message has not been well interpreted or it has been detected as to have errors, the response will be two
address bytes and a "NAK" [ASCII 21].