Axis Stops Working when using Configure Axis Resources
Hardware: Motion Control
Problem: I am able to control all of my Axes in MAX without any problems. However, when I try to setup motion feedback in LabVIEW using Configure Axis Resources, I cannot get my Axes to move. What am I doing wrong?
Solution: There are two common mistakes responsible for no axis movement when attempting to use Configure Axis Resources.
- Mistake 1:
The Primary Output parameter is not set to the proper DAC channel when using Configure Axis Resources. By default, Primary Output is set to DAC Channel 1. For instance, if you are trying to setup axis 2 and you do not explicitly wire the Primary Output parameter to DAC Channel 2. In this case, axis 2 uses DAC Channel 1 to output its voltage. Be sure to always explicitly set the Primary Output parameter when using Configure Axis Resources.
- Mistake 2:
Error -70111 is generated when you run the VI. You cannot configure an axis to use resources (DACs, ADCs, and encoders) that are in use by another axis, otherwise Error -70111 will be generated. Be sure to disable any axes you are not using before running Configure Axis Resources. To disable one or all axes, use Enable Axis. Do not forget to re-enable your axes after calling Configure Axis Resources.
Note: End all of your NI-Motion programs with a Motion Error Handler. If you are not using a Motion Error Handler, errors could occur in your motion system with no way to handle them.
Related Links: Developer Zone Tutorial: Axis Configuration for Motion ControllersDeveloper Zone Tutorial: Initializing Motion ControllersKnowledgeBase 467HIIY3: Configuring Axis Resources for a Motion Dual-Loop Feedback System
Attachments:
Report Date: 12/07/2006
Last Updated: 03/09/2009
Document ID: 446I3OAJ