TLA Microsystems Ltd http://www.tla.co.nz 7
N - GO TO THE HOME POSITION
Syntax {N}
Sending an "N" command will cause the Little Step-U to move the motor to the 0, or
home position. The position register defaults to 0 when the device is powered on and can
be set to 0 by the "J" or "Q" commands.
Example: A Little Step-U is being used to position a print head in a dot matrix printer. At
each Carriage Return in the data being printed, an {N} command is issued to return the
head to the left margin, ready for the next line.
P - SET OFF STATE POWER
Syntax {Px}
When the motor is not being moved, the coils can be left energised for maximum holding
torque or turned off to reduce power consumption and motor heating. This command sets
the state as off {P0} or on {P1} and will remain that way until changed with another "P"
command. Power on default is off.
Example: A motor is being used in a high vibration environment and retaining position is
more important than power consumption. The {P1} command ensures maximum holding
torque.
Q - SET HOME POSITION
Syntax {Q}
This command unconditionally sets the position register to 0. All position information and
absolute moves become relative to this new home position.
Example: A drilling sequence needs to be repeated several times over a panel. The total
size of the program can be reduced by moving the offset amount, resetting the home
position with the {Q} command and repeating the same sequence.
R - SET MARK
Syntax {R}
This command instructs the Little Step-U to remember the current position. It is used in
conjunction with the {M} command which will return the motor to this same position
regardless of any intervening moves.
Example: A stepper motor is being used in a piece of hastily constructed test equipment
to rub an abrasive over a surface. The distance is found by trial and error and a mark is
set with the {R} command. The experiment can then be run using the {Q} (Go to home)
and {R} (Go to mark) commands in a loop.
S - SWITCH TO REMOTE MODE
Syntax {S}
The Little Step-U can be operated as simple translator/drive for use in systems with
enhanced motion control capability or for the purposes of experimentation. This mode of
operation is entered by sending the {S} command. Input pin 1 will then act as the STEP
input and Input pin 2 will act as a DIRection input.
On each high to low transition (falling edge) of the STEP input, the motor will move one
step in the direction indicated by the DIR input. A high on the DIR input will cause the
motor to step clockwise and a low, counter-clockwise. This input must be stable when
STEP is taken low and for tDIR afterwards. When in REMOTE mode, the mode settings
that were set with the {C} command (wave, full, half step) remain in force and the position
8 Little Step-U
register is updated with each step. The {S} command will turn the motor windings on,
regardless of the value set by the {P} command.
Example: During the commissioning phase of a machine, the operator wishes to move to
a target position one step at a time using a pushbutton. The {S} command is sent and
the microcontroller is used to debounce each button press and apply a single pulse.
When the desired destination is reached, the position is read using the {U} command.
T - RETURN FROM REMOTE MODE
Syntax {T}
When the Little Step-U is operating in the REMOTE mode, sending a {T} will return to the
standard operating mode. The position register contents are valid and the motor windings
will be powered on or off according to the value previously set by the {P} command.
Example: Once the setup phase described above has been completed, a {T} command
readies the controller for full speed operation.
U - SHOW CURRENT STATUS
Syntax {U}
Returns [aaaa,bbbb,ccc]
The {U} command instructs the Little Step-U to send the current values of the Position,
Speed and Ramp registers back to the controller. The data consists of enclosing square
brackets ("[" and "]") containing the three (decimal) values separated by commas.
Example: A stepper is being used to move a print head mechanism. In order to
determine the paper width the user has selected, the motor is moved to one stop and
zeroed and then moved slowly to the other stop with RAMP set to 0. When the motor
stops (BUSY goes low), the position is retrieved with the {U} command. The controller
can then use this value to scale the print head movement commands and ensure that an
image will fit on the page.
V - SHOW STATE OF INPUT PINS
Syntax {V}
Returns [a,b]
The {V} command returns the current state of the two input pins in the form of "0" for a
low input and "1" for a high.
Example: An {G-1000} command is issued which instructs the Little Step-U to move
1000 steps counter-clockwise from the current position and to stop if it encounters a low
input on either IP1 or IP2. Checking that the complete move was made successfully is
made easier by only having to check two single digits with the {V} command, than
subtracting the current position from the earlier position and checking the result.
Multi-parameter commands
Movement related commands have the option of including speed, ramp time and/or step mode
values in the form of {X,speed,ramp,mode} where X is the command listed below and speed,
ramp and mode are valid values as described for the A, B and C commands above. Each
parameter is separated by a comma and may either be a value or no value (without spaces) if
that parameter is to remain unchanged. Any setting changed by using a command in this form
will remain at the new value for any subsequent commands unless explicitly changed.
D GO TO ABSOLUTE POSITION
E GO TO RELATIVE POSITION
TLA Microsystems Ltd http://www.tla.co.nz 9
F GO TO ABSOLUTE POSITION WITH INPUTS 1 & 2 AS STOPS
G GO TO RELATIVE POSITION WITH INPUTS 1 & 2 AS STOPS
H GO CLOCKWISE UNTIL INPUT 2
J GO COUNTER-CLOCKWISE UNTIL INPUT 1 AND ZERO POSITION
K GO CLOCKWISE UNTIL INPUT 2 AND MARK POSITION
M GO TO THE MARK POSITION
N GO TO THE HOME POSITION
Examples:
{D-2000,200,5} Go to absolute position -2000 with a maximum speed of 200 steps per
second, accelerating to that speed over a period of 0.5 seconds and use the currently set drive
mode.
{N,,,0} Go to the HOME position using the current speed and ramp settings but
change the drive mode to full step.
Ramping or Trapezoidal speed profile.
The ability to accelerate a stepper motor over a period of time, greatly improves the useful range
of operations the motor can perform. Not only does this allow the motor to reach higher speeds,
but also reduces wear on mechanical components. While acceleration is defined as a change
in speed over a period of time (steps/sec/sec), it is easier to think of the motor accelerating to a
desired speed over a defined time period, so the B command is used in this manner.
The graph below illustrates a typical move where the final speed, ramp time and destination
position have been specified. Both the position (in steps) and the speed (in steps per second)
show how the motor moves slowly at the beginning, at the maximum rate for the majority of the
move and then transitions smoothly into the deceleration phase, before coming to a stop at the
desired position. Because of the shape of the curve, the speed plot is known as a trapezoidal
speed profile.
When the distance to be moved is less than that required to ramp up to full speed and then
ramp down again, the acceleration rate is kept the same and half way through the move, the
Little Step-U will begin the deceleration. An example is illustrated below. The speed and ramp
values are unchanged for two discrete move operations. The first is long (far) enough for the
motor to reach the specified operating speed but because Move 2 is shorter, the motor
transitions directly from accelerating in speed to the deceleration profile.
Speed (steps/sec)
Position
(steps)
Time
Ramp Time Ramp Time
Destination
Position
Final Speed

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