![BK Precision DAS30 User Manual Download Page 78](http://html1.mh-extra.com/html/bk-precision/das30/das30_user-manual_2759801078.webp)
78
Programming
16.1 Message Format
Note:
In all the following examples, the space character is pictured as a blank space.
Exchanges from a controller to the recorder are made as messages made of a chain of ASCII characters (and possibly of
binary bytes) with a message termination at the end.
16.2 Response Format
Messages are terminated by a termination character. Messages may include multiple commands. If the message includes
several message units, they are separated with a semicolon ";" and possibly preceded and/or followed by one or several
"filling" characters in ASCII code (0 to 32, in decimal format except 10 and 13).
Termination Character
LF
The message termination may be preceded with one or several "filling" characters under ASCII code (0 to 32, in decimal
format except 10 and 13).
Example of messages made with 3 message units:
MESSAGE 1; MESSAGE 2 ; MESSAGE 3 { TERM}
CHANNEL 1; TYPE:VOLTAGE DC;:CALDEC ? { TERM}
16.3 Message Syntax
A message (ex. :REAR:SETUP 1) is made of several fields:
16.3.1 Header
For the command messages (ex.
:REAR:SETUP
1) or query messages (ex.
:REAR
?), it is made of a chain of characters
(simple header) or several chains separated by ":" (compound header). A chain includes from 1 to 12 alphanumeric
characters or "_" (code ASCII 95 in decimal format). The recommended chain length is 4 characters.
A header chain always starts with an alphabetic character. It may be preceded by a colon ":" (compound header) or end
by a question mark "?" (query message).
Note:
Query messages must be followed by the termination.
16.3.2 Header separator
One or several ASCII characters (0 to 32, decimal except 10 and 13).
16.3.3 One or several pieces of data
(ex. :SPEED
1
,
MM_S
), alphanumeric, digital or compound of various characters or binary bytes.
www.
GlobalTestSupply
.com
Find Quality Products Online at: