USA57 Revision
1.2
13
Executing Commands
In order to execute a command or a series of commands, the following syntax should be used:
[/][Device Address][Command][Value]…{[Command]{[Value]}[R][<CR>]
Where,
/ = the start character. Data following the “/” character will be loaded into the communication
buffer.
Device Address = the device address. (Factory Preset)
Command = the command to be executed.
Value = a valid value for the command to be executed (position value, speed, etc).
Note: Up to fourteen (14) Commands and Values can be in a single command string.
R = Execute the command(s) in the communication buffer already received .
<CR> = Carriage Line Feed (CR+LF) and indicates that the command string is
complete.
Example 1:
/1A1000R<CR>
“/” is the start of character. Lets Accuriss know that a command string is coming.
“1” is the device address. (This is preset at the factory)
“A” Instructs motor to move to an absolute position.
“1000” sets the absolute position to +1000 steps from the zero position.
“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(s) to
be executed since the R was included in the command string.
Example 2:
Command string 1: /1A2000A0<CR>
Command string 2: /1R<CR>
For command string 1:
“/” is the start of character. Lets Accuriss know that a command string is coming.
“1” is the device address. (This is preset at the factory)
The first “A” instructs motor to move to an absolute position.
“2000” sets the absolute position to +2000 steps relative to the zero position.
The second “A” instructs motor to move to an absolute position.
“0” sets the absolute position to the zero position.
“<CR>” tells Accuriss that the command string is complete. Nothing is executed at this time
because the R command was not included in the command string.
For command string 2:
“/” is the start of character. Lets Accuriss know that a command string is coming.
“1” is the device address. (This is preset at the factory)
“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 both of absolute
position the commands to be executed since an R command is included in the command
string.