XT2640OperatingManual 13July2016 Page139of187
24.2.2 FIELDSWITHINACOMMAND
Commandfieldsareoneofthetypesdescribedbelow.Incertaincasesasinglefieldmaybeformedbymultiplesub‐fields,inwhich
caseeachsuccessivesub‐field(eachhavingoneofthefieldtypesdescribedbelow)isseparatedfromthepreviousbyapreceding
sub‐fieldseparatorcharacter.
24.2.2.1 KEYWORDCOMMANDFIELDSYNTAX
AKEYWORDfieldisacombinationofprintableASCIIcharacterswhichmatchthecorrespondingallowablekeywordsasdescribed
later.AKEYWORDfieldisnotcase‐sensitive(e.g.thelettersVandvareequivalent)andmaybeprecededand/orfollowedbyoneor
morewhitespacecharactersbutmaynotcontainanywhitespacecharacterswithinit.
ExamplesofvalidKEYWORDfieldsare–
*CLS
*cls
*Cls
ARANGE
Arange
CH1
Ch1
ch1
24.2.2.2 STRINGCOMMANDFIELDSYNTAX
ASTRINGfieldisanycombinationofanyprintableASCIIcharactersintherange‘space’through‘z’.ASTRINGfieldisliteral,
containingtheexactdefinitionoftherequiredstring;howevercertaincharactershavespecialmeaning–
! TheΩcharacter
\ Theøcharacter
$ Theµcharacter
^ TheΣcharacter
[ Theuparrowcharacter
` Thedownarrowcharacter
] The°character
‘ Thecentredotcharacter
NotethatSTRINGfieldsareonlyterminatedbyacommandterminatororseparatorcharacterandmaycontainwhatwouldnormally
beanyotherseparatorcharacter(ifprintable).
ExamplesofvalidSTRINGfieldsare–
Thisisastringfield
Volts:
24.2.2.3 NR1COMMANDFIELDSYNTAX
ANR1fieldisanycombinationofASCIInumeric(0through9)characterswhichformanintegervalue.ANR1commandfieldmust
notincludeapolaritycharacter.ANR1fieldmaybeprecededand/orfollowedbyoneormorewhitespacecharactersbutmaynot
containanywhitespacecharacterswithinit.
AllNR1fieldsmustbeintherange0to4294967295andwillcauseasyntaxerrorifoutsideofthisrangeandinmostcommandsthis
rangeisfurtherlimitedandwillcauseadatarangeerrorifthatrangeisexceeded.
ExamplesofvalidNR1fieldsare–
10
153465782
24.2.2.4 NR3COMMANDFIELDSYNTAX
ANR3fieldisanycombinationofASCIIcharacterswhichformafloatingpointvalue.ANR3fieldmaybeprecededand/orfollowed
byoneormorewhitespacecharactersbutmaynotcontainanywhitespacecharacterswithinit.
AllNR3fieldsaredecodedandusedwithintheXT2640withapproximately1in10
7
resolutionandmaybeintherange‐10
+99
to
10
+99
andmaycontainanumberofcharacterswhichisonlylimitedbythemaximumlengthofacommandset.
ExamplesofvalidNR3fieldsare–
10
10.0
+10.0
1e1
‐10.0
+1.2345678E+6
+1.2345678e+6
+1.2345678e‐6