4 Little Step-U
Software commands
Communication with the Little Step-U is by a TTL level serial interface at 2400bps. All
commands must begin with a "{" character and end with a "}" Characters outside of the braces
(including carriage return and line feeds) are ignored. Responses are enclosed by "[" and "]"
characters.
A - SET SPEED
Syntax {Axxxxx} Default value 100 steps/sec
Sets the maximum speed in steps per second for any commands that follow. The
numeric value can be any number from 1 to 5000.
B - SET RAMP TIME
Syntax {Bxxx} Default value 0 seconds
The Little Step-U has a built in function to accelerate and decelerate the stepper motor
to/from the speed specified by the command above. This command sets the amount of
time in tenths of a second that the motor will accelerate to that speed. Valid numbers
are 0 to 200 being 0.0 to 20.0 seconds in 0.1 second increments.
Any move function that utilises the ramping facility will accelerate and decelerate at the
rate defined by this command. The distance moved includes the steps used to ramp up
and ramp down so a move of 1000 steps will move exactly that amount. If the number of
steps requested is less than the number required to ramp to full speed and ramp down
again, the Little Step-U will accelerate at the same rate until it is half way to its
destination and then ramp down again to stop at the commanded position.
See the discussion on ramping after the command descriptions.
C - SET STEP MODE
Syntax {Cx} Default value 0 (Full step drive)
Stepper motors can be driven by powering the windings sequentially using three different
techniques. The method used is specified by this command with x being 0, 1 or 2.
{C0} Full step
For every step, two windings are energised.
{C1} Wave
Each step has only one winding energised.
Step Coil A Coil B Coil C Coil D
1 ON ON
Off Off
2
Off
ON ON
Off
3
Off Off
ON ON
4 ON
Off Off
ON
Step Coil A Coil B Coil C Coil D
1 ON
Off Off Off
2
Off
ON
Off Off
3
Off Off
ON
Off
4
Off Off Off
ON
TLA Microsystems Ltd http://www.tla.co.nz 5
{C2} Half step
Each alternate step has one or two windings energised giving the motor twice
the number of steps per revolution.
When the mode is changed to or from Half step, the position, mark and speed values are
adjusted accordingly so that the motor will turn at the same rotational speed and the
mechanical positions remain unchanged.
Example: A 200 step/rev motor is being used. The current position is 3600, speed is set
at 200 steps per second and there is a mark at 1200. When the mode is changed from
full-step to half step, the speed value will be 400 (giving the same number of revolutions of
the motor per second). The current position register and the mark register will contain
the values 7200 and 2400 respectively.
D - GO TO ABSOLUTE POSITION
Syntax {Dxxxxxxxx}
At anytime after powerup, the Little Step-U keeps track of its current position in steps.
This command instructs the Little Step-U to calculate the direction and number of steps
required to move to another position and then it performs the move. At the end of the
move, the position will be the number specified in this command. The value can be any
number from -10000000 to +10000000, including 0. The number may be preceded by a
"+" or "-" as required, but must not include a comma or decimal point.
Example: If the current position is 2500, a command of {D-1000} will cause the motor to
run counter-clockwise for 1500 steps, stopping at position 1000.
E - GO TO RELATIVE POSITION
Syntax {Exxxxxx}
This command is similar to the "D" command in respect to the numeric parameter, but
commands the motor to move to a position relative to its current position. Positive
numbers are clockwise and negative numbers are counter-clockwise.
Example: If the current position is 2500, a command of {E1000} will cause the motor to
run 1000 steps clockwise to end at position 3500.
F - GO TO ABSOLUTE POSITION WITH INPUTS 1 & 2 AS STOPS
Syntax {Fxxxxxx}
This command is the same as the "D" command except that the two input pins are
monitored. If either of them is pulled low during the move, the motor will be decelerated
to a stop at the rate defined in the RAMP command (B). The position register will reflect
the current position when the motor has stopped. These inputs are level sensitive so if a
“F” command is used when one of the inputs is low, the motor will stop immediately.
Note: Allowing the motor to continue to running past a stop indicator is done for two
reasons; This method allows the motor to provide maximum braking torque during
deceleration and the position register integrity is maintained.
Step Coil A Coil B Coil C Coil D
1 ON
Off Off Off
2 ON ON
Off Off
3
Off
ON
Off Off
4
Off
ON ON
Off
5
Off Off
ON
Off
6
Off Off
ON ON
7
Off Off Off
ON
8 ON
Off Off
ON
6 Little Step-U
Example: If the current position is 2500 and a limit switch attached to I/P2 is at position
5000, the command {F8000} will result in the motor stopping at position 5087 (depending
on the SPEED and RAMP settings).
G - GO TO RELATIVE POSITION WITH INPUTS 1 & 2 AS STOPS
Syntax {Gxxxxxx}
This command is the same as the "E" command except that the two input pins are
monitored as in the command above.
Example: If the current position is 2500 and a limit switch attached to I/P1 is at the home
position (0), the command {G-5000} will result in the motor stopping at position -87
(depending on the SPEED and RAMP settings).
H - GO CLOCKWISE UNTIL INPUT 2
Syntax {H}
This command is used to find a limit stop connected to I/P2 and has no numeric
parameter. The motor will accelerate at the rate determined by the RAMP setting, up to
the SPEED setting and not stop (ramp down) until I/P2 is pulled low.
Example: The motor is at position 28 and a limit switch is at position 1000. The SPEED
has been set to a slow value and RAMP set to 0. After an {H} command the position is
1000.
J - GO COUNTER-CLOCKWISE UNTIL INPUT 1 AND ZERO POSITION
Syntax {J}
The J command is similar to the H command above except that the direction is reversed
and I/P1 is used to halt the movement. When the movement is stopped, the position
register is cleared to 0 to mark this position as "Home".
Example: The motor is at an unknown position and a {J} command is used at a slow
speed and 0 RAMP rate. At the end of the movement (dictated by I/P1) the position
register is 0.
K - GO CLOCKWISE UNTIL INPUT 2 AND MARK POSITION
Syntax {K}
The motor runs continuously in a clockwise direction until stopped by I/P2 being pulled
low. When this occurs, the position is recorded in the MARK register.
Example: The motor has been moved to the home position using the {J} command.
Issuing a {K} command will run the motor and when it has stopped, the position of the
other limit switch has been recorded.
M - GO TO THE MARK POSITION
Syntax {M}
This command instructs the Little Step-U to move to the absolute position held in the
"Mark" register. The contents of this register is set to 0 when the device is powered on
and can be set using the "K" or "R" commands. As with the "D" (Go to absolute
position) command, the controller will determine the direction and will use the Ramp and
Speed settings to move to that position.
Example: The Little Step-U is being used in a component placement machine and the
position to pick up the next component is known to always be 123456. After each
placement, a {M} command will place the pickup head over the next component to be
placed.

27938

Mfr. #:
Manufacturer:
Parallax
Description:
Daughter Cards & OEM Boards LITTLE-STEP CTRL
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet