Spin an axis

Learn how to spin an axis with the RapidSetup tool.

Safety First

Kindly implement essential safety measures to safeguard both yourself and those around you. Feel free to reach out to us for tailored guidance on enhancing the security of your system.

Precondition

  1. Your EtherCAT network must be OPERATIONAL. Follow the Start the network guide.

  2. RapidSetup tool is running.

1️⃣ Configure Axis Settings

1. Set up a free spinning motor

  1. Verify that the motor can safely be spun (we recommend an uncoupled axis to start).

  2. In the tree view, navigate to any Axis item that is available.

  3. Calculate the “Counts per Unit” for Revolutions and enter it under the Motion tab. (See Examples under Counts per Unit Topic page)

  1. Next, navigate to the Limits and Actions Tab.

  2. Set the POSITION ERROR Action to ABORT and set the Trigger Value to 1.0. The Position error trigger value is scaled by the counts per unit you just entered. Assuming the User Units entered correlate to 1 motor revolution, this will allow for 1 motor revolution of the following error.

  1. (Optional) Set the POSITIVE & NEGATIVE HARDWARE actions to NONE since there is no mechanical end-of-travel limit.

  2. (Optional) Connect to the drive using the manufacturer’s drive interface GUI and tune the position loop. Many manufacturers offer a quick auto-tuning feature. Some drives even have default tuning gains selected and you can skip this step for now.

2. Set up a coupled motor (Only if it applies to you)

  1. Connect both the Positive and Negative limit switches (EOT – end of travel sensors) to the drive according to the drive manual. This will minimize the risk of damaging your equipment. The EOT sensors should be placed far enough inside the physical end-stops of the axis so that the axis has enough distance to decelerate from full speed before crashing into the end-stops.

  2. Verify that the limit switches are working and getting read correctly through the network. You can see the state of the limit switches under the Dedicated I/O tab in RapidSetup shown below. Make sure you can trigger them by hand and watch the state change when the sensor is activated.

  1. Navigate to the Limits and Actions tab. If your limit sensors are normally low and active high (like the picture above), then the trigger state high checkbox must be checked. Change the action to ABORT for both positive and negative hardware limit sensors.

  1. Click the CLEAR FAULTS button and all the Faults should go away and the axis should go to an IDLE state.

  1. Trigger the EOT sensors by hand. This should cause an ABORT. If it doesn’t, check the sensor wiring. Also under the Limits and Actions tab, verify the trigger state high checkbox is set correctly and that the actions are set to ABORT for both Positive and Negative Hardware limits.

  2. If you can move the axis by hand to the middle of its range of motion.

  3. Calculate the “Counts per Unit” for your preferred linear units and enter it under the “Motion and Tuning” tab. See Examples on the Calculate Counts per Unit Topic page.

  4. Navigate back to the Limits and Actions Tab. Set the Position Error Action to ABORT and set the Trigger Value to something reasonable for your machine. The Position Error Trigger value is scaled by the counts per unit you just entered.

Example

The stroke length of a Ballscrew is 5 ft. After moving the slide to the center, I have about 2.5 feet in the positive direction and 2.5 feet in the negative direction. I’d set the position error to 1 inch so the axis will abort before it can run away.

  1. Failing to do these critical steps could be a safety risk or could result in damage to your equipment.

  2. Connect to the drive using the manufacturer’s drive interface GUI and tune the position loop. Many manufacturers offer a quick auto-tuning feature. Some drives even have default tuning gains selected and you can skip this step for now.

2️⃣ Spin the Axis

  1. In the Motion tab, set your motion parameters for a move that makes sense for your system. See example parameters below:

FieldValue

Velocity

10 rev/s

Acceleration

100 rev/s2

Deceleration

100 rev/s2

Position 1

0 revolutions

Position 2

10 revolutions

  1. Select which type of motion you’d like to command by selecting either Absolute, Relative, Velocity under the motion profile section:

  1. Click the CLEAR FAULTS button, then click the ENABLE button.

  1. Assuming the motor is tuned by the drive and your Axis has been enabled, you can start commanding motion. Use these three arrows to move the motor back and forth.

Gif Example

Last updated