Threaded View
-
18-02-2018 #11
Thanks, suspected that as Im not on the Lathe PC.
Making some headway but struggling a bit as this is new to me.
Current macro, clearly not finished yet.
Num_Tools IS 8
CW_Move_Per_Tool IS 360/Num_Tools
CCW_Move IS 10
CW_Feed IS 1500
CCW_Feed IS 1000
TOOLCHANGEMSG IS Tool Changing Taking Place
;start tool change
;If Requested_Tool > Current_Tool Then moves = Requested_Tool -Current_Tool
;If Requested_Tool < Current_Tool Then moves = Num_Tools - Current_Tool +Requested_Tool
If Requested_Tool > SV_TOOL_NUMBER Then moves = Requested_Tool -Current_Tool
If Requested_Tool < SV_TOOL_NUMBER Then moves = Num_Tools - Current_Tool +Requested_Tool
total_move = (moves * CW_Move_Per_Tool)+(CCW_Move/2)
Code "G91 G94" 'incremental & Feed per minute
Code "G0 A" & total_move '& "F" & CW_Feed
Code "G0 A" & "-" & CCW_Move '& "F" & CCW_Feed
;SetCurrentTool Requested_Tool
;SetUserDRO HoldingDRO, Requested_Tool
Code "G90" ' back to absolute movement
Code "F" & Current_Feed
Thread Information
Users Browsing this Thread
There are currently 2 users browsing this thread. (0 members and 2 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