Announcement

Collapse
No announcement yet.

D0-06 dd1 with stepper drive/motor controled by plc

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • billglenn
    started a topic D0-06 dd1 with stepper drive/motor controled by plc

    D0-06 dd1 with stepper drive/motor controled by plc

    Im new to plc. Although i have good knowledge with cnc machines and their programming Im having trouble setting up a plc to run a standalone stepper with two limits and to switches for left right movement.

    Basically I want to be able to push or turn a switch and as long as i hold it it will move right until I hit a limit. Then I want to be able to push another switch and it will move left until I hit a limit as long as the switch is activated.

    I know I have to be in mode 30 for this. But I have read and read and cant figure out how to get into mode 30, as well as program the plc to preform the function above.

    Any help will be greatly appreciated.

    Thanks!

  • billglenn
    replied
    Ok i've got motion and limits working the way i want. How can I get a slight acceleration when switch is pressed instead of a full speed start, and a slight decel when limit is hit while still controlling velocity. If i try the other program examples I loose alsmost all control of velocity only get a slight limited control. Here is program so far

    http://s1313.photobucket.com/user/bi...tml?sort=3&o=0
    http://s1313.photobucket.com/user/bi...tml?sort=3&o=1

    Leave a comment:


  • plcnut
    replied
    Just add a contact inline with your Push button:

    STR RunRightPB STRNOT RightLimitSwitch ... remaining logic...

    Leave a comment:


  • billglenn
    replied
    Ok now i need to setup the two limits far right and left. I would like to manual take it to limit one and it stops motion, then when i press the other switch moving it to limit two it overides limit one and allows motion in the other direction and vise verse on limit two.

    Leave a comment:


  • plcnut
    replied
    It's not stupidity, it's a matter of learning how these thinks work.

    Try adding a couple of rungs like this:

    X1 (rising edge)--------------------ANDD K8FFFFFFF V3631

    X1 (falling edge)-------------------ANDD K0FFFFFFF V3631

    When X1 is turned on, then this will add an eight to the beginning of V3631, and when X1 is turned off it will place a zero at the beginning of V3631.

    Leave a comment:


  • billglenn
    replied
    I got it. but im using y3 output to sink 5 volts to turn on direction to the stepper. Its a working work around.

    Leave a comment:


  • billglenn
    replied
    Maybe I shouldn't have went this route because im really confused. I read the material. And notice the k0 and k8000000 values as well as the memory values. But all I can do is get the stepper to go in one direction. Basically I need two switches wired to the plc at one time where i can push the right switch and the motor will turn right, left switch and the motor will turn left. I can program a single direction into the plc for a single switch, but i can't figure out how to program the two switches in so i can switch directions when i need and want to. I just can't seem to know how to make both directions work together in one program.

    I thank you for your help and apologize for my stupidity.

    Leave a comment:


  • plcnut
    replied
    From page 55 of the appendix in the manual:
    "It does
    this by LDD K80000200 into V3631. The 8 in the left-most position of the value loaded(8xxxxxxx) will cause Y1 to turn on. This is how the PLC reverses direction"
    Play with it and see what it will do (make sure you get rid of the OUT Y1 that you had in the program you posted earlier).

    Leave a comment:


  • billglenn
    replied
    I can get the sample program to work. What changes do I need to make in order to have the PLC drive the stepper in both directions by using push button switches?

    Thanks again.

    Leave a comment:


  • plcnut
    replied
    You need to first try loading the program exactly as it is listed in the manual, and then make sure you do a program to run mode transition each time that you make a change before you test it. Once you get it working like that, then you can start making changes.

    I don't have time right now to go over the manual closer, but try the example and post back with what happens.

    Leave a comment:


  • billglenn
    replied
    http://s1313.photobucket.com/user/bi...tml?sort=3&o=0

    http://s1313.photobucket.com/user/bi...tml?sort=3&o=1


    Thanks for looking at it.

    Leave a comment:


  • billglenn
    replied
    Originally posted by plcnut View Post
    Please post screenshots of your program and I will try to help.

    Leave a comment:


  • plcnut
    replied
    Please post screenshots of your program and I will try to help.

    Leave a comment:


  • billglenn
    replied
    yea. My problem is although I have y1 turned on in the programing

    x1---------------------y1 out

    y1 stays on period no matter if Im switched on or off through input x1

    I can make some changes to the programming but then the input doesnt turn it on..

    I believe i maybe missing something in the ld k value which i believe i should be using K3?

    But even then it only allows one direction of travel and the x1 isn't operating the y1. So maybe I also need a value in the LDD KD?

    I can get both directions to work when I program a single step test. But when I try to program a manual movement only one direction.

    Thanks for your help.
    Last edited by billglenn; 06-07-2013, 11:18 AM.

    Leave a comment:


  • plcnut
    replied
    You don't pulse Y1, you just turn it on for one direction, and off for the other.

    Leave a comment:

Working...
X