Quote Originally Posted by JAZZCNC View Post
The PLC source file is created when controller is started so will only show after it's successfully created. When you start controller watch first screen saying initialising MPU and if you get error then source file won't be created.

If get MPU error the go to wizzard and reset by writing settings to controller.
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