I'm looking for a little help figuring out the easiest method to accomplish the following.

I have stepper motor connected to a ball screw driving a linear axis that is used for positioning and speed control. the whole system is being driven using a Do-More processor and an H2-CTRIO2 card. The linear axis is controlling the withdraw speed and depth of a liquid dipping process, that is why the speed and position is critical.

an example of what i need to accomplish would be the following.

Move from home position (0") to final position (10") using the following accel/decel

1. start at a speed of 2 in/s

2. Constant acceleration to reach 4 in/s at position 3"

3. Constant deceleration to reach 2 in/s at position 5"

4. Constant Acceleration to reach 4 in/s at position 7"

5. Constant Deceleration to reach 2 in/s at position 10"

6. stop at position 10"

My thought right now is to split the move up into multiple (100) velocities (a new velocity every 0.1") and use dynamic velocity to execute the movement.

this would require a series of math calculations based on speed and position inputs.

If anyone has any suggestions I would be grateful.

Thanks

I have stepper motor connected to a ball screw driving a linear axis that is used for positioning and speed control. the whole system is being driven using a Do-More processor and an H2-CTRIO2 card. The linear axis is controlling the withdraw speed and depth of a liquid dipping process, that is why the speed and position is critical.

an example of what i need to accomplish would be the following.

Move from home position (0") to final position (10") using the following accel/decel

1. start at a speed of 2 in/s

2. Constant acceleration to reach 4 in/s at position 3"

3. Constant deceleration to reach 2 in/s at position 5"

4. Constant Acceleration to reach 4 in/s at position 7"

5. Constant Deceleration to reach 2 in/s at position 10"

6. stop at position 10"

My thought right now is to split the move up into multiple (100) velocities (a new velocity every 0.1") and use dynamic velocity to execute the movement.

this would require a series of math calculations based on speed and position inputs.

If anyone has any suggestions I would be grateful.

Thanks

## Comment