Prototyping Your Door-Knob Hole Cutting Machine using NI Motion Assistant
Table of Contents
- Overview
- Step 1. Reference Move—Moves the XY stage into its starting position using the find home move type.
- Step 2. Reference Move—Moves the vertical axis into its initial position.
- Step 3. Straight Line Move—Moves the vertical axis down so that the saw is inserted into the pre-made slit in the door.
- Step 4. Arc Move—Moves the XY stage in a circle. This arc is configured for blending.
- Step 5. Arc Move—Moves the XY stage in another circle of half the radius of the previous arc.
- Step 6. Convert to LabVIEW or C code.
Overview
This application cuts circular holes in wooden doors to place door knobs. The doors with slits made in them are placed under the saw. The saw is lowered into the slit and then moved in a circular pattern to ensure that a perfectly round hole is cut. The saw is made to move in two circles to make sure that the cut is clean, as shown in the figure.

The system is comprised of the following:
· A saw mounted on an XY stage
· A vertical axis that moves the saw assembly up or down to insert the saw into the pre-made slit in the door
You can prototype the motion part of this application by creating a script in NI Motion Assistant using the following steps:
Step 1. Reference Move—Moves the XY stage into its starting position using the find home move type.
Insert a Reference Move step. 1. Click the Add Step button on the far left side of the application window.
2. Click the Reference Move button.
3. Click the Configure tab on the dialog box at the bottom of the new screen.
o Because this move operates the two axes of the XY stage, click the 2D button.
o Device: Choose the motion controller.
o Units: Select counts (steps).
o Coordinate: Select Vector Space 1.
o X Axis: Choose the default, Axis 1.
o Y Axis: Choose the default, Axis 2.
o Profile type: Select Trapezoidal.
o Velocity: Enter 20,000 counts (steps)/sec.
o Acceleration: Enter 100,000 counts (steps)/sec2.
o Deceleration: Enter 100,000 counts (steps)/sec2.
o Reference Type: Home
o Initial Direction: Forward
o Final Direction: Forward
o Edge to stop on: Forward
Step 2. Reference Move—Moves the vertical axis into its initial position.
Insert a Reference Move step.
1. Click the Add Step button on the far left side of the application window.
2. Click the Reference Move button.
3. Click the Configure tab on the dialog box at the bottom of the new screen.
o Because this move operates the two axes of the XY stage, click the 1D button.
o Device: Choose the motion controller.
o Units: Select counts (steps).
o Axis: Choose Axis 3 because it is the vertical axis.
4. Click the Move Constraints tab on the dialog box. Enter the following parameters:
o Profile type: Select Trapezoidal.
o Velocity: Enter 20,000 counts (steps)/sec.
o Acceleration: Enter 100,000 counts (steps)/sec2.
o Deceleration: Enter 100,000 counts (steps)/sec2.
o Reference Type: Home
o Initial Direction: Forward
o Final Direction: Forward
o Edge to stop on: Forward
Step 3. Straight Line Move—Moves the vertical axis down so that the saw is inserted into the pre-made slit in the door.
Insert a Straight-Line Move step. This step prototypes moving the vertical axis down so that the saw is inserted into the pre-made slit in the door.
1. Click the Add Step button on the far left side of the application window.
2. Click the Straight-Line Move button. NI Motion Assistant remembers the Configure and Move Constraints tab settings of the previous step, so it is necessary to cahnge the settings only ion the Position tab.
3. Click the Position tab, and set the following parameters:
o Operation Mode: Absolute Position.
o Position: The number counts (steps) to travel, which equates to distance, varies significantly for each motion system. For this example application, enter -10000.
Step 4. Arc Move—Moves the XY stage in a circle. This arc is configured for blending.
Insert an Arc Move step. This step prototypes the first circle.
1. Click the Add Step button on the far left side of the application window.
2. Click the Arc Move step on the far left side of the window.
3. Click the Configure tab and set X Axis to Axis 1 and Y Axis to Axis 2.
4. Click the Move Constraints tab, and set the Velocity parameter to 20000.
5. Click the Arc Parameters tab, and set the following parameters:
o Radius: 50000
o Start Angle: 0
o Travel Angle: 360
These parameters create a perfect circle. The radius was chosen arbitrarily, and will be different for each motion system.
6. To blend the move, right-click the Arc Move step in the list of steps you have added to the script and select Blend this Step.
Step 5. Arc Move—Moves the XY stage in another circle of half the radius of the previous arc.
Insert an Arc Move step. This step prototypes the second circle, which is one-half the size of the first.
1. Click the Add Step button on the far left side of the application window.
2. Click the Arc Move step on the far left side of the window.
3. Click the Move Constraints tab, and set the Velocity parameter to 10000. This change is made because the second arc will have to travel at half the speed of the first arc to maintain the correct angular velocity.
4. Click the Arc Parameters tab, and set the following parameters:
o Radius: 25000
o Start Angle: 0
o Travel Angle: 360
These parameters create a perfect circle half the size of the circle created in Step Four.
4. To blend the move, right-click the Arc Move step in the list of steps you have added to the script and select Blend this Step.
Because blending runs the end of the first move along with the beginning of the second move, it is possible that the effect on the move's trajectory may be unacceptable for the tolerances of the application. You can see the effect of blending by using the zoom feature of the 2D position view to look closely at the exchange between the first arc and the second.
Step 6. Convert to LabVIEW or C code.
You have finished creating the prototype motion script. To test the script, complete the following steps:
1. Initialize the motion controller in MAX.
2. Click the Run button at the top of the Motion Assistant screen to run the motion script.
Note To run this motion script as written, you must have a complete motion system connected to motors. If you are prototyping a motion script with only a motion controller and no external motion hardware, delete the Reference Move step, configure the motion controller for open-loop steppers, and then run the script.
To save the motion script, select File»Save, or press <Ctrl-S>. You can now convert your project to LabVIEW or C code by clicking on Tools»Generate Code.

Download FREE NI Motion Assistant Evaluation Software
Reader Comments | Submit a comment »
Legal
This tutorial (this "tutorial") was developed by National Instruments ("NI"). Although technical support of this tutorial may be made available by National Instruments, the content in this tutorial may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this content with each new revision of related products and drivers. THIS TUTORIAL IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).
