I don't know about inside the nc program, but you can change z work coord. on coord page.
We are cutting electrodes in a milltronics VM-20 and were wondering if there is a way to change a parameter for the Z height in the NC file? What we want to do is put the height of the electrode in this offset so it will lift all tools to the top of the electrode. Also, at the end of the NC file set this value back to zero. Any suggestions out there?
Thanks,
Matt
I don't know about inside the nc program, but you can change z work coord. on coord page.
G52 Z# (to shift Z up/down)
Thanks Tim,
I will give this a try, at first glance it looks like ( in the controll ) it will work. I will try it once our machine it back up and running, bad motor bearing, but at first glance in a quick hand written program it looks like it works to me. Here is a small piece of code to see what I am trying to do.
% ( VM-20 ELECTRODE NC FILE )
( SET TRODE HEIGHT )
( CHANGE 6.0000 TO WHAT THE TRODE HEIGHT IS)
G52 Z 6.0000
O0000
(PROGRAM NAME - TEST)
(DATE=DD-MM-YY - 05-10-09 TIME=HH:MM - 23:15)
(MCX FILE - NEWFILE)
(NC FILE - C:\DOCUMENTS AND SETTINGS\MATT\DESKTOP\TEST.NC)
G32
G20
G0 G17 G40 G80 G90
( 1/2 BULL R.030 TOOL - 4 DIA. OFF. - 4 LEN. - 4 DIA. - .5 )
T4 M6
PB208=0
PB81=2
G0 G90 G54 X1.5473 Y-.39 S8500 M3
G43 H4 Z.5 M37
Z.1
G1 Z0. F15.
Y.11 F250.
G3 X1.0473 Y.61 I-.5 J0.
G1 X-1.4646
G3 X-1.9646 Y.11 I0. J-.5
G1 Y-.39
Z.1 F500.
G0 Z.5
M5
M9
PB81=0
G32
G40
G53 Y0
G52 Z 0.0000 ( NOW SET G52 Z BACK TO ZERO )
M30
%%
Thank again and I will re-post when I get a chance to test it.
Matt
Last edited by matt_773; 10-06-2009 at 12:12 AM.