Instructions for Adept Utility Programs 


You are here: Adept Utility Program Descriptions > SPEC > Edit Motor Amp Specs

SPEC, Edit Motor Amp Specs

File Name Program Name File Type Description

SPEC.V2

a.spec

B

Robot specification utility

The Motor Amplifier Specifications menu options described below allow you to set values for the amplifier including the motor sign and the DAC limits (which protect the motor and system hardware by limiting the output commands).

For an overview of how these parameters impact Amplifier control in the Adept SmartMotion system, see Amplifier Control.

When you select a menu option, the following information is provided on the screen:

Menu Options, Motor Amplifier

Change motor number

Use this option to select a different motor for tuning. The currently selected motor is indicated in the menu page title.

Motor sign

The servo control loop will generate a torque command proportional to the position error. If that torque command has the wrong sign, it sends the motor in the wrong direction, increasing the position error, which increases the torque, which increases the position error, and pretty soon you have a runaway motor. The motor sign allows you to make sure the torque command acts in the proper direction to correct errors, not make them worse! You simply have to make sure that a positive torque command causes motion in the positive direction; if not, reverse the motor sign. A non-zero value for the motor sign tells the control system to invert the torque commands before sending them to the DAC.

The motor sign can be tested with the Perform hardware diagnostics selection. Follow the instructions in Test and Troubleshooting to perform the test.

WARNING: If, after finding the correct value for the motor sign, you need to redefine which direction of motion is considered positive, be sure to change the encoder, motor, and commutation signs together. Changing only one sign can lead to a runaway motor. Exercise great caution when setting this parameter.

Commutation sign

The commutation sign parameter sets the sign of the commutation data output by the servo. This parameter is coupled to the encoder sign parameter. If the encoder sign is changed, the commutation sign must be changed, as well. Note that the commutation sign and encoder sign values may not necessarily match.

CAUTION: If the commutation sign and encoder sign are not set correctly, the motor may either run away or run very roughly.

The commutation sign is used to indicate whether or not the algorithm needs to increment the commutation position in the same direction as it increments the motor position. For example, if the commutation sign is -1, then the negative of the motor velocity is used in order to properly increment the commutation position.

Maximum DAC output

It is possible to limit the output of the analog DAC command using this parameter. This is useful as a safety feature to limit the maximum torque or velocity (depending on the type of drive). Setting this parameter defines both the positive and negative limit of the DAC. The maximum DAC output is 10 VDC, which corresponds to a command of 32767. If this parameter is set to zero, various errors (such as *Motor stalled*) will be generated if any motion or calibration commands are executed. By initially setting this parameter smaller than its eventual value, the DAC output limit can be used to limit any potential damage to hardware during the specification procedures. An initial value of 10% of full-scale is recommended, until you have completed servo tuning as described later in this chapter.

Maximum DAC output in Manual mode

This value specifies the maximum output the servo can send to the DAC during Manual Control mode. It should not exceed the maximum DAC output value.

*Duty-cycle exceeded* DAC Limit

The duty-cycle limit is one of the safety features the V+ system provides to prevent overexerting your motor or drive system. During operation, the root mean square (RMS) DAC output value is fed into an averaging filter. If the filtered RMS value ever exceeds the value of this parameter, a *Duty-cycle exceeded* error is generated and high power is disabled. Typically, this value is about 2/3 of the maximum DAC output, and the check can be disabled by setting the value to be zero, or greater than the maximum DAC output.

*Duty-cycle exceeded* filter parameter

This value specifies the low-pass filter through which the root mean square (RMS) DAC value is fed before comparing it to the above limit. By filtering the DAC output, momentarily-high torque commands will not cause an error. The more filtering, the longer it will take for an error to be declared. In order to help you set this value, use the following rule of thumb: assuming the DAC output is at a constant value, the "rise time" of the DAC filter to 63% of the DAC output value is 2n milliseconds, where n is the filter parameter. A value less than 5 will give a "hair-trigger" response, causing the *Duty-cycle exceeded* error very soon after the "*Duty-cycle exceeded* DAC limit" is exceeded. A value of 9 (approximately 1/2 second rise time) is recommended as a starting point.

*Motor stalled* Timeout

To further protect the system from damage, motor-stall detection is incorporated at the servo control level. When full torque is commanded for the specified amount of time, the robot is assumed to be stalled, high power is disabled, and a *Motor stalled* error is generated.

WARNING: Set this parameter to as low a value as possible to assist in detecting encoder fault during operation.

*Soft envelope error* Limit

The envelope error, also known as the following error, is defined as the difference between the commanded and actual position during a motion. This error value gives an indication of how well the mechanism is following the commanded motions. The Adept SmartMotion software monitors the envelope error during execution of motions and compares these values against this parameter. If the specified limit is exceeded, a *Soft envelope error* message is generated, and the motion comes to a controlled stop. However, High Power stays on. This parameter can also assist in detecting encoder fault during operation.

*Hard envelope error* Limit

The Hard envelope error differs from the Soft envelope error in that if the specified limit is exceeded, High Power is turned off immediately. It should be set to a value greater than the Soft envelope error value.

WARNING: Set this parameter to as low a value as possible to assist in detecting encoder fault during operation.

*Manual mode envelope error* Limit

The SPEC program allows you to specify a manual mode envelope error limit. This option allows you to configure a smaller envelope error (that is, how far the motor is allowed to lag behind the commanded position) for motions made with the manual control pendant. A small value for this parameter results in faster shutdown of a jammed robot. This parameter is related to the Soft envelope error and Hard envelope error as follows:

Man Env Err < Soft Env Err < Hard Env Err

Specifies the servo position error limit for manual mode. The value is specified in encoder counts. When this limit is exceeded, a *Soft envelope error* message is displayed, the motion comes to a controlled stop, but the arm power remains ON.

Velocity envelope error limit (cts/ms)

Specifies the servo velocity error limit in Current mode, which is only active during calibration. In this mode, there is a potential danger that the robot will run away. When the limit is exceeded, a *Hard envelope error* message is displayed and High Power is disabled immediately.

Machine input polarity

You can control whether various signals are active-high or active-low using the machine input polarity value. This provides more flexibility in your choice of sensors.

Four bits are used to determine the polarity of the Home Switch, the Positive and Negative Overtravel Switch and the Drive Fault Signals:

*Active high indicates that current flows into the input when active.

The "Machine input polarity" menu option provides a table for the Machine Configuration Word. Enter the value that corresponds to the desired sensor settings.

Machine Configuration Word

Value-->

0

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

Home L H L H L H L H L H L H L H L H
Pos. Over. L L L L H H H H L L L L H H H H
Neg. Over. L L H H L L H H L L H H L L H H
Drive Fault L L L L L L L L H H H H H H H H

Axis error time delay configuration

The axis error time delay configuration specifies a time period in which axis errors are not monitored after the amplifier power is enabled. This acts as a filter for noise errors caused by powering up the amplifier. The following selections are available:

Value

Description

0 No time delay
1 0.125 sec
2 0.250 sec
3 0.500 sec
4 0.750 sec
5 1.000 sec
6 1.500 sec
7 3.000 sec

*Skew error* limit (cts) (available only if split-axis configuration is selected)

This parameter defines the maximum skew error (difference between the position errors of the split axes of a gantry allowed before a *Skew Error* is sent to V+. It is in units of encoder counts.

Default motion speed (ct/msec) (available only if split-axis configuration is selected)

This value specifies the default speed of a motor during servo-controlled trajectories. Most trajectories are V+ controlled. Currently, only axes of a split-axis mechanism are servo-controlled. A value of 4 counts/millisecond is typical.

Perform hardware diagnostics

Displays the Perform hardware diagnostics menu to test the new parameters specified using the Amplifier Specifications menu.

Related Utilities

CONFIG_C

DC_SETUP


Submit comments to: techpubs@adept.com
Last modified on: 4/1/2010
Copyright © 2006 - 2009. Adept Technology, Inc.