Originally Posted by
Alexsandr
Hello, dear professionals.
How to add to the block the post responsible for changing the tool parameters:
$------------------------ TOOL CHANGES --------------------------------------
$70 Cancel current tool. Use [T] for current tool number if required.
N[N] M09 ''M09 = Coolant Off
$75 Code for CLOCKWISE spindle rotation - entered into variable ROT (or RT)
M03
$76 Code for COUNTER-CLOCKWISE spindle rotation - entered into variable ROT
M04
$80 Select new tool. Use [T] for new tool number, [S] for spindle speed.
N[N] T[T][OFS] [ROT] 'Select tool and offset
N[N] S[S] H[OFS] M06 'Next tool is [NT], Next XY is [NX], [NY]
$LET FIRST_RAPID = 1
$---------------------
so that the program executes this code
when changing tools
N540 Z80
N550 M5
N560 Y0
N570 M0
so that the program executes this code when changing the tool. Machine without autotool changer. It is necessary for the program to stop and the spindle to go up and go to the given coordinate for a manual tool change.
I have to insert this piece of code manually each time in a notebook when a new tool is being used.
And also switch to the coordinate system specified by the operator
G54
:0000
N10 (PROGRAM PRODUCED - 05 SEP 17)
N20 G90 G71
N30 G40 G80
It is not necessary.
Thank you
P.S
G54 I replaced myself.