adccommunitymod (AutomationDirect) asked a question.

How do you program a stepper with an encoder for feedback?

Created Date: October 24,2008

Created By: mikep

**** This post has been imported from our legacy forum. Information in this post may be outdated and links contained in the post may no longer work.****

I have a DL06 PLC,HO-CTRIO Counter Module,STP-DRV-4035 Stepper Driver,TRDSH 100BD Encoder, and a Stepper I already had. Done all of the wiring and all works well with the CTRIO Workbench Programs. I have been able to use some of examples to move the stepper motor and read the counts of the Encoder. My problem is trying to put both the stepper moving part of the program with the Encoder reading part of the program. Can anybody help me?


  • adccommunitymod (AutomationDirect)

    Created Date: October 25,2008

    Created by: allukes

    What are you trying to accomplish? What is your application and specs?

    With Stepper motors, what you normally are looking for is a stall condition. Once the torque required to accellerate, decellerate or move a load exceeds the available torque, they will loose position and pretty much just stop and not try to move again. What the encoder does for you is verify that move has reached its destination. Do the move, check the motion complete bit and then read the encoder. You will have to do a deadband tollerance calculation because the accuracy of the move will be no better than +/- 1 physical step of the motor. Most motors are 200 steps before any microstepping. Use the 1/200 for your accuracy.

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: October 25,2008

    Created by: Rich19551

    If you are doing what I think you are trying to do, start looking at home search and replace home switch with encoder count. This might give you the push in the right direction.

  • adccommunitymod (AutomationDirect)

    Created Date: October 24,2008

    Created by: mikep

    I have a DL06 PLC,HO-CTRIO Counter Module,STP-DRV-4035 Stepper Driver,TRDSH 100BD Encoder, and a Stepper I already had.

    Done all of the wiring and all works well with the CTRIO Workbench Programs.

    I have been able to use some of examples to move the stepper motor and read the counts of the Encoder.

    My problem is trying to put both the stepper moving part of the program with the Encoder reading part of the program.

    Can anybody help me?

    Expand Post