Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

Will Electronic Gearing Work with an Axis that is Performing Contour Moves?

Primary Software: Driver Software>>NI-Motion/FlexMotion
Primary Software Version: 4.5
Primary Software Fixed Version: N/A
Secondary Software: N/A
Hardware: Motion Control>>Controllers>>PCI-7343, Motion Control>>Controllers>>PXI-7350, Motion Control>>Controllers>>PCI-7354, Motion Control>>Controllers>>PXI-7358, Motion Control>>Controllers>>PXI-7354, Motion Control>>Controllers>>PCI-7358, Motion Control>>Controllers>>PCI-7340, Motion Control>>Controllers>>PCI-7390, Motion Control>>Controllers>>PXI-7340, Motion Control>>Controllers>>PXI-7356, Motion Control>>Controllers>>PCI-7344, Motion Control>>Controllers>>PCI-7342, Motion Control>>Controllers>>PXI-7352, Motion Control>>Controllers>>PCI-7346, Motion Control>>Controllers>>PCI-7352, Motion Control>>Controllers>>PXI-7346, Motion Control>>Controllers>>PCI-7356

Problem: I plan to electronically gear two motion axes together, and perform contour moves with the master axis.  Will this work?

Solution: Yes, this is possible with the 7340 and 7350 series NI-Motion controller cards since electronic gearing and contouring are supported.  To setup a simple example to do this using axis 1 as master and axis 2 as slave in LabVIEW, perform the following steps:

  1. Open Measurement and Automation Explorer (MAX)
  2. Browse to My System » Devices and Interfaces » NI Motion Devices » <your 7340 or 7350 series controller> » <your settings file> » Axis 2 » Gearing Settings
  3. Set Gear Master to Axis - 1
  4. Set Gearing Enabled to Enabled
  5. Set the Gear Ratio for Slave Axis to a ratio other than 0 (default is 0/1)
  6. Click Save and Initialize to send the parameters to your controller
  7. Make sure Axis 1 is configured to operate normally
  8. Test your electronic gearing setup by performing a simple move with Axis 1 in the Interactive » 1-D Interactive window.  Axis 2 should move when Axis 1 is moving if everything is working properly.
  9. Close MAX and open LabVIEW
  10. Open the Example Finder found in Help » Find Examples
  11. Open the One-Axis Contour Move.vi example found under Hardware Input and Output » Motion Control » Contour Move
  12. Open the block diagram of the example, and insert an Initialize Controller.flx VI in front of the Set Operation Mode.flx VI.  This will import all of the settings that were made in MAX into your program.  Setup the code as shown:
  13. Set the Board ID input to the board ID of the card that you are using, and select Axis 1 for the Axis input on the front panel.
  14. Run the program.  Both motors should follow one period of a sine wave.



Related Links: Configuring a Motion Control System

Gearing Settings for Motion Controllers


Attachments:





Report Date: 08/08/2007
Last Updated: 08/16/2007
Document ID: 4C798MBE

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit