. .
Page 1 of 2 12 LastLast

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Quote Originally Posted by m_c View Post
    However, looking at that code snippet, it does look like it will handle the tool position rollover automatically.
    Ok think we are looking at two different pieces of code here. I've just downloaded Chaz's file and you could be correct.!!
    Looks like ToolTurretPosBit1 uses the tool counter when in incremental mode and then toggles tool position each time this increments.

    However Still not sure thou because how does the tool position get incremented inside the PLC.?
    Last edited by JAZZCNC; 18-02-2018 at 09:18 PM.

  2. #2
    Chaz's Avatar
    Lives in Ickenham, West London, United Kingdom. Last Activity: 5 Days Ago Has a total post count of 1,654. Received thanks 115 times, giving thanks to others 71 times.
    Quote Originally Posted by JAZZCNC View Post
    Don't think so Not without watching at least one input and setting the ToolTurretPosBit1. Only then can it increment the CurrentTurretPosition_W variable which then gets stored in MEM1 which then signals to M101 /70001 in main cnctch.mac (M6 macro) that toolChange is Complete.

    Without using an input then the only way is to move it using set amount of degrees then reverse etc then increment tool position in the code.
    Yep, which is how the Mach 3 ATC macro works.

  3. #3
    Quote Originally Posted by Chaz View Post
    Yep, which is how the Mach 3 ATC macro works.
    So are you saying this Turret does have sensor.? I was under the impression it didn't and just rotated set amount then reversed little. Then updated tool table.

  4. #4
    Chaz's Avatar
    Lives in Ickenham, West London, United Kingdom. Last Activity: 5 Days Ago Has a total post count of 1,654. Received thanks 115 times, giving thanks to others 71 times.
    Quote Originally Posted by JAZZCNC View Post
    So are you saying this Turret does have sensor.? I was under the impression it didn't and just rotated set amount then reversed little. Then updated tool table.
    No, no sensor. Here is a video of it running (on Mach 3).

    https://www.youtube.com/watch?v=-cCDulVashA

  5. #5
    Chaz's Avatar
    Lives in Ickenham, West London, United Kingdom. Last Activity: 5 Days Ago Has a total post count of 1,654. Received thanks 115 times, giving thanks to others 71 times.

  6. #6
    Quote Originally Posted by Chaz View Post
    Ye thats one I've been looking at and is more like what would be needed to make work thru PLC. Notice there are commands for error checking and actually turning turret.

  7. #7
    Chaz's Avatar
    Lives in Ickenham, West London, United Kingdom. Last Activity: 5 Days Ago Has a total post count of 1,654. Received thanks 115 times, giving thanks to others 71 times.
    Copied:-

    TurretMotor is an output. It turns on if currentPosition_W != RequestedLocation_W.

    ;If current position != requested position, rotate turret
    IF DoingTurretIndex_M && RequestedLocation_W != CurrentTurretPosition_W THEN SET TurretMotor

    Not sure where or how this TurretMotor is defined. On my Triac, that was just an output for a relay, so that's easy. This is different as its actually the A Axis and not an 'outside' device.

  8. #8
    m_c's Avatar
    Lives in East Lothian, United Kingdom. Last Activity: 6 Hours Ago Forum Superstar, has done so much to help others, they deserve a medal. Has a total post count of 2,969. Received thanks 368 times, giving thanks to others 9 times.
    Quote Originally Posted by JAZZCNC View Post
    Ok think we are looking at two different pieces of code here. I've just downloaded Chaz's file and you could be correct.!!
    Looks like ToolTurretPosBit1 uses the tool counter when in incremental mode and then toggles tool position each time this increments.

    However Still not sure thou because how does the tool position get incremented inside the PLC.?
    I'm only going by the code snippet Chaz posted, but it looks to me like if you enable incremental mode, it expects you to link an input, along with a directional command, and the rest is then handled behind the scenes.
    However, I would still expect you to be able to directly change the tool position, to allow for tool changer homing routines, and recovery of changers that have no home sensor.
    Avoiding the rubbish customer service from AluminiumWarehouse since July '13.

  9. #9
    Quote Originally Posted by m_c View Post
    I'm only going by the code snippet Chaz posted, but it looks to me like if you enable incremental mode, it expects you to link an input, along with a directional command, and the rest is then handled behind the scenes.
    However, I would still expect you to be able to directly change the tool position, to allow for tool changer homing routines, and recovery of changers that have no home sensor.
    If notice there's nothing in there which actually moves the turret etc. Still needs code adding. Better example is to look at this link and download the file.
    http://centroidcncforum.com/viewtopi...lit=turret+atc

  10. #10
    Chaz's Avatar
    Lives in Ickenham, West London, United Kingdom. Last Activity: 5 Days Ago Has a total post count of 1,654. Received thanks 115 times, giving thanks to others 71 times.
    Quote Originally Posted by JAZZCNC View Post
    If notice there's nothing in there which actually moves the turret etc. Still needs code adding. Better example is to look at this link and download the file.
    http://centroidcncforum.com/viewtopi...lit=turret+atc
    Ye, that works due to this.

    TurretMotor IS OUT2 ;&*;

    I suspect that's a relay.

    I wonder if I can set Step as an output?

Page 1 of 2 12 LastLast

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
  •