Exit Safe-Start (Serial/USB input mode only)
Command Format: “GO<CR>”
Description: This command clears the Serial/USB safe-start violation and allows the motor to run. When Safe-Start protection is enabled, this command must be issued when the controller is first powered up, after any reset, and after any error stops the motor.
Motor Forward (Serial/USB input mode only)
Command Format: “F<
This command sets the motor target speed in the forward direction. The argument
Examples: The following commands all make the motor drive forward at half speed:
Motor Reverse (Serial/USB input mode only)
Command Format: “R<
Description: This command sets the motor target speed in the reverse direction. It behaves the same as the Motor Forward command above, except the motor turns in the opposite direction.
Motor Brake (Serial/USB input mode only)
Command Format: “B<
This command causes the motor to immediately brake by the specified amount (configured deceleration limits are ignored). The argument
Error. Examples: The following commands all make the motor brake as hard as possible:
Get Variable (any input mode)
Command Format: “D<
This command lets you read a variable from the Simple Motor Controller. See Section 6.4 for a list of all of available variables. The value of the requested variable is transmitted as an ASCII-encoded decimal number. If the argument
Example: The following commands both request the board temperature (variable ID 24, or 0x18):
We might receive “.286<CR><LF>” as a response. The leading ‘.’ is a status character that indicates the last command was understood and no errors are currently stopping the motors. The rest of the characters before the carriage return (<CR>) and new line (<LF>) characters are an ASCII representation of a decimal (base 10) number. This particular variable has units of 0.1 °C, which would mean that the board temperature is 28.6 °C.
Set Motor Limit(any input mode)
Command Format: “L<
Description: This command lets you change the temporary motor limit variables documented in Section 6.4. Limit IDs from 0 to 3 are affect both forward and reverse limits equally (they are “symmetric”). Limit IDs from 4 to 7 affect only forward limits and limit IDs from 8 to 11 affect only reverse limits. The following table provides the limit IDs for all of the temporary motor limit variables along with the allowed limit values:
Note: The Brake Duration units used by this command are 4 ms, which differs from 1 ms units used by the Brake Duration variables returned by the Get Variable command.
Note that the Hard Motor Limit settings place restrictions on the limit values you can set with this command (see Section 5.2 for more information on the hard motor limits). The hard limits configured through the Simple Motor Control Center are considered minimal safety requirements, and the temporary limits cannot be changed in a way that makes the controller “less safe” than this. This means that the Maximum Speed, Acceleration, and Deceleration temporary limits cannot be increased beyond their hard-limit counterparts and the Brake Duration limits cannot be decreased below their hard-limit counterparts. If you try to set a temporary limit in a way prohibited by the corresponding hard limit, the temporary limit value is set to the hard limit and the response code byte indicates that the value could not be set as requested.
If the arguments to this command are valid, the controller responds to this command with an ASCII digit:
Limit IDs above 11 and limit values outside of their allowed value ranges result in a Serial Format Error.
The limit values set with this command persist only until the controller is next reset or the “Apply settings” button is next clicked in the Simple Motor Control Center, at which point the temporary limit settings are all reinitialized to the hard limit settings.
Example: The following commands all set the reverse deceleration limit (limit ID 10, or 0x0A) to 500, or 0x1F4:
We might receive “.0<CR><LF>” as a response. The leading ‘.’ is a status character that indicates the last command was understood and no errors are currently stopping the motors. The following character, ‘0’, tells us the temporary limit was set as requested. If our Max Deceleration Reverse hard motor limit was below 500, this character would have been ‘2’, which would tell us that the temporary limit was not set as requested (rather, it was set equal to whatever the hard limit is).
Get Firmware Version (any input mode)
Command Format: “V<CR>”
Description: This command prints the Simple Motor Controller product number (in decimal) and firmware version number (the two major firmware version digits followed by the two minor firmware version digits). For example, the response to this command might be “.152 01.00<CR><LF>”, which indicates a product ID of 152, a major firmware version of 1, and a minor firmware version of 0.
Stop Motor (any input mode)
Command Format: “X<CR>”
Description: This command sets the motor target speed to zero and makes the controller succeptible to a safe-start violation error if Safe Start is enabled. Put another way, this command will stop the motor (configured deceleration limits will be respected) and not allow the motor to start again until the Safe-Start conditions required by the Input Mode are satisfied.