Service manual

Section - IV Software BT3000 PLUS Rev.0, Soft Ver. 8 Page 7 of 15
There are also variables for direct uses, which allow for identification of
any character below ASCII 32 (space) to facilitate the writing of the
script (for example, one can use the variable #EOT to identify the
character $4), see "TABLE 2 - INTERNAL VARIABLES".
SCRIPT FUNCTIONS
String: Identifies a string of variable length ending with a particular character.
Syntax:
String <string>I<Terminator>
Where
<String> Transmit/receive string
<Terminator> End character
Note:
It is not possible to use the variables like parameter <Terminator>
Example:
String ‘Hello Word’|$0
String ‘My String|’@’
String #Variable1|0x10
Stringn: Identifies a string of fixed length
Syntax:
Stringn <String>|<Length>
Where
<String> Transmit/receive string
<Length> String length
Note:
If the length of the text strings is less than the data length then a series of spaces will be added on
the right to reach the data preset length. In case the text string is longer than the data length then the
string end will be cut off to match the data length.
If the length of the numerical values is less than the data length then a series of characters '0' will be
added to the left to reach the preset data dimension. In case the length of the numerical values string
is longer than the data length then the string will be truncated to match the data length.
It is not possible to use variables as parameter <Length>.
Example:
Stringn ‘Hello Word’|$40
Stringn #Variable1|0x10
Char: Identifies a single character (or single byte)
Syntax:
Char <Character>
Example:
Char ‘H’
Char $20
Char 0x10
Char #STX