USA57 Revision
1.2
75
Programming Examples
Example #1 (Move to an Absolute Position of 12345 steps)
/1A12345R<CR>
This breaks down to:
“/”
Is the start character. Lets Accuriss know that a command string will follow.
“1”
Is the device address, (this is preset at the factory).
“A12345” Causes the motor turn to an Absolute position 12345 steps
“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.
Note: HyperTerminal issues each character as you type it in. Therefore, it is not possible to cut
and paste in HyperTerminal. Backspace is allowed only up to the address character. If
backspace is used, all characters “backspaced” must be retyped in. If a typing error is made,
typically hit enter and type it all in again – what was typed in will be overwritten as long as the R
command at the end was not present.
Example #2 (Loop absolute moves with a wait in between)
/1gA1000M500A0M500G10R<CR>
This breaks down to:
“/”
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”
Indicates the start of a loop block
“A1000” Causes the motor move to the Absolute position of 1000 steps
“M500”
Causes the Accuriss to wait for 500 Milliseconds.
“A0”
Makes the motor turn to Absolute position 0.
“M500”
Is another wait command of 500 Milliseconds.
“G10”
Will make all commands between here and starting location of the small “g”
repeat 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.
To terminate the above loop while in progress type “/1T”.