
USA57 Revision
1.2
28
Command:
G
End Loop Block
Type:
Program Control Command
Syntax: G
n
Range:
n = 0 to 30000
Description:
This command signifies the end of a loop and defines the number of loops to be
performed. Loops can be nested up to four levels. A value of “0” (zero) causes
an infinite loop. (A “T” command will terminate an infinite loop) If no value is
given, the Accuriss will use “0” (zero) as the assumed number.
Example:
/1gP1000M1000D1000M500
G
10R<CR>
“/”
Is the start character. Lets Accuriss know that a command string will follow.
“1”
Is the device address, (this is preset at the factory).
“g”
Informs Accuriss a loop is beginning
“P1000” Move 1000 steps in positive direction
“M1000” Wait
1000
milliseconds
“D1000” Move 1000 steps in negative direction
“M1000” Wait
1000
milliseconds
“G10”
Repeat all commands between the “G10” command and the “g” command
loop 10 times
“R”
Instructs Accuriss to run the command(s) that are in the communication buffer.
“<CR>” Tells Accuriss that the command string is complete and causes the command to
be executed since an R is included in the command string.