Hybrid View
-
18-02-2018 #1
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.
-
The Following User Says Thank You to m_c For This Useful Post:
-
18-02-2018 #2
Thanks.
The ATC 'process' is mapped here and links to the PLC reference manual also there.
http://centroidcncforum.com/viewtopi...52327af32d86da
PLC Manual - http://www.centroidcnc.com/downloads...g%20Manual.pdf
Many thanks.
-
18-02-2018 #3
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.
-
18-02-2018 #4
-
18-02-2018 #5
-
18-02-2018 #6
No, no sensor. Here is a video of it running (on Mach 3).
https://www.youtube.com/watch?v=-cCDulVashA
-
18-02-2018 #7
Some more example stuff here.
http://centroidcncforum.com/viewtopi...ilit=atc#p5499
-
18-02-2018 #8
-
18-02-2018 #9
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.
-
18-02-2018 #10
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.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Centroid Acorn DIY CNC controller
By NB70 in forum Control Hardware & SystemsReplies: 3Last Post: 15-11-2017, 02:14 PM -
Centroid Acorn CNC Controller
By wallyblackburn in forum Gantry/Router Machines & BuildingReplies: 22Last Post: 29-10-2017, 12:28 PM -
Controller Cabinet
By cropwell in forum Workshop & EquipmentReplies: 2Last Post: 19-12-2015, 02:23 PM -
FOR SALE: Controller Box for sale
By lateAtNight in forum Items For SaleReplies: 12Last Post: 04-03-2012, 10:17 AM -
Controller Box
By M250cnc in forum Motor Drivers & ControllersReplies: 1Last Post: 21-11-2010, 01:34 AM
Bookmarks