I have an idea... post your program(s) here so we might have a clue what you're doing and what you could do to make it work.
Hi All
So I'm stumped ! , I'm trying to engrave a dial in 1 degree marks for my tool cutter grinder on a Doosan 220 LY. I've made a sub program that engraves the dial lines up to 9 degrees and then I need the program to move the C axis 10 degrees to start again. But at the moment I'm just going over the same engraving. At the moment I think I'm missing something as I cant believe I've got to write loads of code to repeat the program. So how would you do it ?
Thanks Nev
Similar Threads:
I have an idea... post your program(s) here so we might have a clue what you're doing and what you could do to make it work.
So nothing new but here's an idea of the code with bits I've forgot left out
Main Program
O5000
M98 P275001
M30
Sub Program
O5001
G90 G21 G54
G10 X0 Z0
G10 X350 Z500 Z200.
P12 M3
C0
G0 X65 Z2
G1 Z-0.1 F0.3
X70
G0Z2.
X65
C1
G1 Z0.1
X70
G0 Z2
*
*
*
Until 9 degrees is reached
*
*
G0 Z10.0
M5
P11
G00 G28 U0.0 V0.0
G00 G28
M99
So I know there's bits of code left out ( I'm away from work so cant remember it all ) but the program works as in it cuts up to 9 degrees , but its getting the C axis to turn to the new start point . At the moment I'm wondering if something like
O5000
M98 P275001
C10
C20
C30
*
*
*
C80
M30
would work ? but I'm just stabbing in the dark at the moment.
So tease me with your idea
Thanks All : )
Ok thanks that makes sense , I mainly do low batch numbers so very ... very rarely use sub programing routines so it catches me out when it pops up.
The M98 p5001 line rung a bell , forgot about that and ill have a look into how the H value affects the program , ( its one I forgot to put in ) always seen it ...... never messed with it !.
Thanks MBS
Well I'm still missing something? .... if this is possible , I'm still not advancing on the C axis.
Main Program
O5000
M98 P035001
C10
M98 P5001
C20
M98 P5001
C30
M98 P5001
M30
Sub Program
G1900 D76 L10 K.5
G00 G40 G80 G99 G18 G21
G130 X350 Z500
G28 V0
G30 U0 W0
G10 P0 X0 Y0 Z0
G10 L2 P1 X0 Y0 Z200.
M01
N10
G28 V0
G30 U0 W0
T1010
M5 P11
G28 H0
G0 C0
G97 S6000 M3 P12
G00 G40 G54 Z2. M8
G17
X80
Y0
G1 X62 F0.5
Z-0.1 F0.03
X77
G0 Z2
G1 H01
G1 X62 F0.5
Z-0.1 F0.03
X77
G0 Z2
G1 H01
G1 X62 F0.5
Z-0.1 F0.03
X77
G0 Z20
M5 P11
M90
M34
G28 V0
G30
U0 W0 M9
M99
Back to being stumped !
: )
I've run the program with and without the C0 , it makes no difference but your right I question the referencing of the C axis . It really comes down to what's happening when the machine references the C axis . To me the C axis 0 is always zero and all the machine will do is add the 10 degrees at the start of every sub cycle but its not reading the Main Program C axis move or its being reset if you will by say the G28 H0 . I've got to do some more reading later !
: )