EasyManua.ls Logo

Enerdis C.A 2150-E - Page 47

Enerdis C.A 2150-E
55 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
47
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 46.
2. In case of commands that do not imply the return of a value (command type or changing parameter):
D d ACK Ou 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].