adccommunitymod (AutomationDirect) asked a question.

Controlling stepper with DL06.

Created Date: May 07,2014

Created By: BubbaGee

**** 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 've been trying just about every example I can find but I can't move my stepper motor. Hardware: DirectLogic 06 PLC Stepper Driver Stepper Power Supply Stepper Motor The test feature on the driver moves the stepper back and forth so I believe that is connected correctly. Am I missing some other piece of hardware? Do you need an H0-CTRIO2 to send the proper pulses to the driver? Bubba


  • adccommunitymod (AutomationDirect)

    Created Date: May 07,2014

    Created by: Tinker

    Am I missing some other piece of hardware? Do you need an H0-CTRIO2 to send the proper pulses to the driver?

    What model of DL06 do you have? I believe the transistor (DC) output models do have a high speed output that, while less capable than a CTRIO, could well do basic stepper driving.

    However, the relay and AC output models do not, and you would have to have a CTRIO to drive a stepper.

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: May 07,2014

    Created by: Do-more PE

    We need a lot more information.

    1) What model of DL06?

    2) How do you have it wired and what are your part numbers for the controller?

    3) What mode are you using?

    4) What is your ladder code?

  • adccommunitymod (AutomationDirect)

    Created Date: May 07,2014

    Created by: BubbaGee

    The models of hardware are:

    D0-06DD1-D

    STP-PWR-4805

    STP-DRV-6575

    As far as code goes I'm using the automatic trapezoid example from the manual. I 'very added a couple lines of code to toggle the Yankees output on and off. Y0 is wired to step+ and Y1 is wired to dir+.

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: May 07,2014

    Created by: Do-more PE

    Go to the File menu -> Export -> Program. Save the file off in a location you can get to, open the file and copy and paste the text into a forum post.

  • adccommunitymod (AutomationDirect)

    Created Date: May 07,2014

    Created by: BubbaGee

    PLC 06

    // Rung 1

    // Address 0

    #BEGIN COMMENT

    "Puts motor controller into Mode 30. "

    #END

    STR SP0

    LD K30

    OUT V7633

    LD K103

    OUT V7632

    LD K1006

    OUT V7634

    OUT V7635

    OUT V7636

    OUT V7637

    // Rung 2

    // Address 10

    #BEGIN COMMENT

    "Setup how the motor will operate. "

    #END

    STR SP0

    LD K4100

    OUT V3630

    LDD K25000

    OUTD V3631

    LD K4

    OUT V3633

    LD K20

    OUT V3634

    LD K40

    OUT V3635

    // Rung 3

    // Address 22

    STR SP0

    SET Y0

    // Rung 4

    // Address 24

    STR Y0

    OUT Y15

    // Rung 5

    // Address 26

    STR T0

    RST Y0

    // Rung 6

    // Address 28

    STRN Y0

    TMR T1 K2

    // Rung 7

    // Address 32

    STR T1

    SET Y0

    // Rung 8

    // Address 34

    STR Y0

    TMR T0 K2

    // Rung 9

    // Address 38

    STR Y1

    ANDN X0

    RST Y1

    // Rung 10

    // Address 41

    STRN Y1

    ANDN X1

    SET Y1

    // Rung 11

    // Address 44

    END

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: May 07,2014

    Created by: BubbaGee

    Sorry it took so long to get the code posted. Didn't have easy access to the system with the code on it.

    Bubba

  • adccommunitymod (AutomationDirect)

    Created Date: May 07,2014

    Created by: bcarlton

    Please show exactly how you have wired from the DL06 to the STP-DRV-6575

    Since you have a 'sinking ' output DL06 you will need to follow the upper of the two diagrams on page 2-7 of the Surestep manual.

    Connect the same plus voltage which you wired to the DL06 +V terminal (upper terminal block, far right terminal) to the step+ and dir+ terminals of the drive.

    Connect Y0 to step- and Y1 to dir-

    And you left out

    LDA O3630

    OUT V7630

    from the first rung. This establishes where the Profile table is located.

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: May 07,2014

    Created by: BubbaGee

    The example code I used said those two items were optional.

  • adccommunitymod (AutomationDirect)

    Created Date: May 07,2014

    Created by: bcarlton

    Then make sure that the value 3630 octal (or 798 hex, or 1944 decimal) is in location V7630 by whatever means.

  • adccommunitymod (AutomationDirect)

    Created Date: May 08,2014

    Created by: BubbaGee

    I 've tried the various items you suggested but still no luck. I'm new at using PLCs and this is the first one with a stepper motor. I probed the signals going from the PLC to the driver and I can see the trigger (Y0) toggling on and off.

    Any more tips would be appreciated.

    Bubba

10 of 15