Example Code

Superimposed Moves on Slave Axes Using SoftMotion

Code and Documents

Attachment

Overview

Applies an offset using a Straight-Line Move Express VI to a slave axis that is tied to a master axis through camming. 

Description

This program begins by assigning one axis a slave and the other a master in a camming relationship.  It then enters a loop that includes straight line moves which will be superimposed onto the camming moves, creating an offset.  A table is included that gives the slave axis values on which to begin the next section of its camming move.

Steps to Implement or Execute Code

  1. Run Superimposed Test.vi
  2. Press the button to make the master move.
  3. After pressing the button to make the master move an amount given in the table, the slave will repeat its camming pattern.

Requirements

LabVIEW with SoftMotion Module installed.

Additional Images or Video


Camming Output Example1.JPG

An example of the slave axis (in blue) performing its predetermined pattern each time the master (in red) moves.  Notice that the pattern remains the same despite the master moving to different locations.


Julian R.
Applications Engineer
National Instruments

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors