justJon85 (Customer) asked a question.

Using Leadshine DM322E Stepper Motor Driver With Sourcing Output PLC

Can I use a Leadshine DM322E stepper motor driver with a Siemens S7-1211c PLC?

 

I believe this PLC has a 24 volt sourcing output.

 

The specifications for the stepper drive say that it can use either sinking or sourcing inputs, but the only wiring I found looked to me like it was for sinking inputs.

 

I called tech support. They told me to hook the OPTO to 0V and then run PUL and DIR through a resistor to the PLC output.

 

I tried that with no luck either. Do I need a different stepper drive or to use optocouplers to change the logic type?


  • Adisharr (Customer)

    Hey Jon,

     

    Looking at the diagram it looks like it just accepts NPN outputs. They really went cheap with this drive and instead should have provided independent plus and minus terminals for all. If that diagram is right, it will not work with a 24V input at PUL, DIR, or ENA.

     

    Just to test the drive, wire VCC to 24V and the ENA to 0V. (Don't forget resistor). You can then just momentarily ground the PUL (with resistor again) and see if you get any movement).

     

    If that works, you can try grounding (0V) the VCC input and applying 24V to the ENA and PUL circuits and see if it will work that way. Worst case you damage the drive by at $25 I would try it.

     

    Even the $8 Chinese drive I have here has more features unfortunately.

     

    Edit: I just noticed you mentioned Optocouplers - yes you can use them, that would work.

    Expand Post
    Selected as Best
  • Adisharr (Customer)

    Hey Jon,

     

    Looking at the diagram it looks like it just accepts NPN outputs. They really went cheap with this drive and instead should have provided independent plus and minus terminals for all. If that diagram is right, it will not work with a 24V input at PUL, DIR, or ENA.

     

    Just to test the drive, wire VCC to 24V and the ENA to 0V. (Don't forget resistor). You can then just momentarily ground the PUL (with resistor again) and see if you get any movement).

     

    If that works, you can try grounding (0V) the VCC input and applying 24V to the ENA and PUL circuits and see if it will work that way. Worst case you damage the drive by at $25 I would try it.

     

    Even the $8 Chinese drive I have here has more features unfortunately.

     

    Edit: I just noticed you mentioned Optocouplers - yes you can use them, that would work.

    Expand Post
    Selected as Best
  • Adisharr (Customer)

    Check out the terminals on the DM542E for an example of what it should have.

    • justJon85 (Customer)

      Would a STP-DRV-4830 be the proper solution?

      • Tinker (Customer)

        In my opinion it would be, I've used a number of STP-DRV drives (though not that particular model) and they have worked fine., However the STP-DRV series are significantly more expensive than the DM series and I think a DM542E could work, but if you can afford the probably better STP-DRV-4830 I would use it.

      • Adisharr (Customer)

        I'm with Tinker, you could prob use either as long as your motor current falls into the range the drive supports.

  • Tinker (Customer)

    If your motor is less than 1 amp it looks like you will need to modify the signals, either opto isolators or just a few NPN transistors and resistors.

    However, if your motor is 1A or more I'd likely recommend switching to a DM542E drive which would be more directly compatible (possibly still needing current limiting resistors)

  • PouchesInc (Customer)

    I dont see anything in the specification paper about wiring sourcing signal, but you are right the web page does say it will take sinking or sourcing. So, might as well wire the drive up and see if it works. If the drive goes up in smoke then Automation Direct should not advertise it that the drive accepts sourcing.

     

     

    Wire 0v to OPTO

    take your 24v output from the seimens, run it through a 2kohm resistor to the ENA

    take your 24v output from the seimens, run it through a 2kohm resistor to the DIR. This will be turned on and off for direction of movement.

    take your 24v pulse output from the seimens, run it through a 2kohm resistor to the PUL. This pulse frequency is the speed the motor will move.

     

    On your PLC, set your high speed output to whatever frequency you are wanting the motor to move at, or configure your move profile or whatever, and then send the pulses to the drive. If the drive did not go up in smoke when you powered it on then it should start moving if your have the enable signal on as well.

    Expand Post