. .

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #16
    m_c's Avatar
    Lives in East Lothian, United Kingdom. Last Activity: 17 Hours Ago Forum Superstar, has done so much to help others, they deserve a medal. Has a total post count of 2,957. Received thanks 366 times, giving thanks to others 8 times.
    Looking at that, that's an example for something with an incremental toolholder (something similar to your Triac, but you only get a single pulse per tool position), however what it does show, is that you can directly manipulate the tool position number, simply by setting CurrentTurretPosition_W.

    Now you have a couple choices on how to implement the turret rotation.
    You can either create a function that only moves one position at a time, and updates the counter each time, such as this basic flow-

    while not at required position,
    rotate turret one position
    end while
    rotate turret backwards to lock.

    Function rotate turret one position
    Rotate A-axis NN degrees
    Increment turret position by one
    end function


    Or if you do it in a single function

    calculate required turret movement
    Rotate A-axis required movement
    Reverse A-axis to lock
    Update tool position

    However, looking at that code snippet, it does look like it will handle the tool position rollover automatically.
    I'd try creating a basic M6 macro that simply increments it by maybe 3 or 5 position in one swift move, and see if the tool position rolls over to where you'd expect. It may be limited to only incrementing by one (I'd hope not, but a quick bit code to test is easier, than having to re-write a whole macro if it is limited).


    If you're really stuck, post up the links to the PLC manual and I'll have a bit read later.
    From what I looked at a couple weeks ago, the PLC language does seem to be some kind of Basic/Ladder/Fanuc love child.
    Avoiding the rubbish customer service from AluminiumWarehouse since July '13.

  2. The Following User Says Thank You to m_c For This Useful Post:


Thread Information

Users Browsing this Thread

There are currently 2 users browsing this thread. (0 members and 2 guests)

Similar Threads

  1. Centroid Acorn DIY CNC controller
    By NB70 in forum Control Hardware & Systems
    Replies: 3
    Last Post: 15-11-2017, 02:14 PM
  2. Centroid Acorn CNC Controller
    By wallyblackburn in forum Gantry/Router Machines & Building
    Replies: 22
    Last Post: 29-10-2017, 12:28 PM
  3. Controller Cabinet
    By cropwell in forum Workshop & Equipment
    Replies: 2
    Last Post: 19-12-2015, 02:23 PM
  4. FOR SALE: Controller Box for sale
    By lateAtNight in forum Items For Sale
    Replies: 12
    Last Post: 04-03-2012, 10:17 AM
  5. Controller Box
    By M250cnc in forum Motor Drivers & Controllers
    Replies: 1
    Last Post: 21-11-2010, 01:34 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •