This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LAUNCHXL-F28069M accepting STEP/ DIR Signals for CNC axis position control

Hello,

widely available CNC-Software like Mach3 is providing STEP/DIR signals to drive stepper-based axis controllers. However there are also closed loop solutions out there accepting STEP/DIR signals as position reference.

Is there a reference solution/implementation available which I can use based on the obove mentioned platform ?

Regards

Horst

  • Horst,

    There isn't an example lab that implements STEP/DIR inputs for position reference.  This should be very simple to implement.  

    Start with lab 13a.  Add in code that will convert STEP/DIR inputs read over GPIO into a position reference signal that can be provided to the SpinTAC controller.  Modify the interface to the SpinTAC controller so that instead of the fixed reference, it uses your new reference.  

    The biggest thing to be careful about when doing this is that SpinTAC uses a windowed position system.  What that means is that once the position signal reaches 10 mechanical revolutions, it rollsover to a value of -10.  This is done so that as the motor rotates in a single direction it won't have issues with integer overflow.  I've attached a document that give you a visual example of this.

    7433.SpinTAC_Position_Move_Rollover.pdf

  • Thank you Adam for you fast reply,

    at least this gives me a viable direction where to start.

    Kind regards
    Horst