- Need Help!- Tool change without running (Sub 55) code
-
Member
Tool change without running (Sub 55) code
I have a second hand 2004 Bridgeport style mill with an 8055.
When a tool change occurs, the program pauses for half a second then states the tool has changed and continues the program with the new tool offset. This is looking to crash at any moment. I am manually adding M0 to the programs every time I need a tool change.
This isn't my first CNC build/repair, but it is my first Fagor.
In the "MC OEM Subroutines MX" file (999999.pim) there are four subroutines present: 74 (homing subroutine), 55 (manual tool change), 999(OEM start) and 9999(OEM end).
I have found the (SUB 55) is not being executed. I can list the whole code that was there but it is not running. I simplified the subroutine to as simple as shown below and it won't execute subroutine 55. I have put the G0 X-17 line of code in the other subroutines and it does trigger.
%MC OEM SUBROUTINES,MX,
;----- HOME ------
(SUB 74)
G74 Z
G74 XY
(RET )
;---- MNANUAL TOOL CHANGE----
(SUB 55)
G0 X-17
(RET)
;---- OEM BEGINNING ----
(SUB 9998)
M8
(RET)
;
;---- OEM END ----
(SUB 9999)
M5
M30
(RET)
Below is the code that should be present for (SUB 55)
;----- MANUAL TOOL CHANGE --------
(SUB 55)
(P100=TOOL)
(P101=MS3)
(P102=MS4)
(P103 = NBTOOL)
(P2222 = MS8) ; Coolant status
(IF P103 EQ P100 RET) ; no tool change if same tool
(MSG"Z AXIS TOOL CHANGE POSITION")
M9 ; turn off coolant
M5 ;turn off spindle
G0 G53 ZP292 ;move to Z tool change height
G0 G53 XP290 :move to X tool change position
(MSG"PUT IN TOOL T?P103 - CYCLE START")
M0 ;Pause for tool change
(MSG"")
(IF P2222 EQ 0 GOTO N9) ;If coolant was off, keep it off
M8 ; Code to turn on coolant.
N9 (IF P102 EQ 1 GOTO N10)
(IF P101 EQ 0 RET)
M3
(RET)
N10 M4
(RET)
Similar Threads:
-
- Need Help!- Tool change without running (Sub 55) code
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules