tbayrg (Customer) asked a question.

How to program a stepper motor with P2-622 CPU and P2_15TD2 output module?

I would like some help or resources on how to set up and program a simple stepper motor to have it spin 180 deg one way then 180 back to its starting position in about <1 sec (just needs to be quick). What are the limitations of this output module and hardware as far as positional and speed accuracy?

 

Thank you


  • PouchesInc (Customer)

    You cant really program a stepper with a P2-15TD2 module, that is a general IO module not a high speed one. You are limited by both scan time and on/off transition time. Realistically you shouldnt try to get more than 100-150 on/off cycles per second with that module. Which only be about a half rotation of a stepper with no microstepping at all.

     

    You should get an HSO module or a PS-AMC# controller.

    Selected as Best
  • Todd Dice (Customer)

    If it were me, I'd use the P2-HSO high-speed output module for your application instead of the P2-15TD2.

  • PouchesInc (Customer)

    You cant really program a stepper with a P2-15TD2 module, that is a general IO module not a high speed one. You are limited by both scan time and on/off transition time. Realistically you shouldnt try to get more than 100-150 on/off cycles per second with that module. Which only be about a half rotation of a stepper with no microstepping at all.

     

    You should get an HSO module or a PS-AMC# controller.

    Selected as Best
  • tbayrg (Customer)

    Thank you for the responses!

    I am working with an existing set up and I am still learning about PLC's so its good to know now that it isn't possible for the desired outcome.

    • PouchesInc (Customer)

      Even though you do not actually have the hardware, save an alternate version of your project and in the hardware config add in an HSO module. Then you can play around with configuring it and seeing how the settings are and scaling. Then in your ladder program drag and drop a Simple Move instruction, then you can see the settings on it and how it would work.

       

      That would give you an idea of it all before you actually buy any new hardware. You can also look at some of the other move instructions available. I believe you can also use the simulator to simulate running the program with an HSO module and program in some tag bits you can edit on/off in the data view that would trigger a move starting. Then you can see things "moving" when you edit the tag on and are monitoring the position and velocity tags for your HSO stepper channel.

      Expand Post
      • tbayrg (Customer)

        Thank you, that's some great advice

  • z28z34man (Customer)

    What stepper driver are you using? The stepper driver may have the ability to program in a relative moves with a single input but it would need to be a fairly advanced stepper driver.

      • z28z34man (Customer)

        That stepper driver appears to only have step and direction inputs so it will require a high speed output or a motion controller.

      • tbayrg (Customer)

        That's too bad, thank you for looking into it though!