timing pully code problem help
12 Jan 2012 11:51 #16646
by guyver001
timing pully code problem help was created by guyver001
Hi guys i have a program that generates timing pully code for 4th axis i last used it with mach3 worked fine
that was along time ago just got my 4th axis up and running again
generated the code for a new pulley just for a trial
but i get an error in emc unknown code ???
anyone take a look
( 5mm T Pulley with 16 Grooves )
( Pitch Dia. 25.46 )
( Outside Dia. 24.63 )
( Depth of cut 1.2 )
G17 G90 G54 G49 G40 G80 G50
G21
M6 T1 (Tool Change)
M3 S4500 (Start Spindle)
M8 (Turn Coolant On)
G0 G64 A0.0 Z5
G43 H1
G0 G54 X0 Y0.0
Z0.00
M98 P0001 Q16
A0.00
G0 Z5
M5(Stop Spindle)
M9(All Coolant Off)
M30(Rewind)
O0001
G1 Z-0.1 F100
X-10 F100
G0 Z 5
X0
G1 Z-0.2 F100
X-10 F100
G0 Z 5
X0
G1 Z-0.3 F100
X-10 F100
G0 Z 5
X0
G1 Z-0.4 F100
X-10 F100
G0 Z 5
X0
G1 Z-0.5 F100
X-10 F100
G0 Z 5
X0
G1 Z-0.6 F100
X-10 F100
G0 Z 5
X0
G1 Z-0.7 F100
X-10 F100
G0 Z 5
X0
G1 Z-0.8 F100
X-10 F100
G0 Z 5
X0
G1 Z-0.9 F100
X-10 F100
G0 Z 5
X0
G1 Z-1 F100
X-10 F100
G0 Z 5
X0
G1 Z-1.1 F100
X-10 F100
G0 Z 5
X0
G1 Z-1.2 F100
X-10 F100
G0 Z 5
X0
G91 A22.5
G90
M99
cheers guys
that was along time ago just got my 4th axis up and running again
generated the code for a new pulley just for a trial
but i get an error in emc unknown code ???
anyone take a look
( 5mm T Pulley with 16 Grooves )
( Pitch Dia. 25.46 )
( Outside Dia. 24.63 )
( Depth of cut 1.2 )
G17 G90 G54 G49 G40 G80 G50
G21
M6 T1 (Tool Change)
M3 S4500 (Start Spindle)
M8 (Turn Coolant On)
G0 G64 A0.0 Z5
G43 H1
G0 G54 X0 Y0.0
Z0.00
M98 P0001 Q16
A0.00
G0 Z5
M5(Stop Spindle)
M9(All Coolant Off)
M30(Rewind)
O0001
G1 Z-0.1 F100
X-10 F100
G0 Z 5
X0
G1 Z-0.2 F100
X-10 F100
G0 Z 5
X0
G1 Z-0.3 F100
X-10 F100
G0 Z 5
X0
G1 Z-0.4 F100
X-10 F100
G0 Z 5
X0
G1 Z-0.5 F100
X-10 F100
G0 Z 5
X0
G1 Z-0.6 F100
X-10 F100
G0 Z 5
X0
G1 Z-0.7 F100
X-10 F100
G0 Z 5
X0
G1 Z-0.8 F100
X-10 F100
G0 Z 5
X0
G1 Z-0.9 F100
X-10 F100
G0 Z 5
X0
G1 Z-1 F100
X-10 F100
G0 Z 5
X0
G1 Z-1.1 F100
X-10 F100
G0 Z 5
X0
G1 Z-1.2 F100
X-10 F100
G0 Z 5
X0
G91 A22.5
G90
M99
cheers guys
Please Log in or Create an account to join the conversation.
12 Jan 2012 12:43 #16650
by Rick G
Replied by Rick G on topic Re:timing pully code problem help
M98 P0001 Q16
I believe EMC and mach may use m98 differently.
www.linuxcnc.org/index.php/english/compo...ew&catid=20&id=13054
Rick G
I believe EMC and mach may use m98 differently.
www.linuxcnc.org/index.php/english/compo...ew&catid=20&id=13054
Rick G
Please Log in or Create an account to join the conversation.
12 Jan 2012 13:01 #16653
by BigJohnT
Replied by BigJohnT on topic Re:timing pully code problem help
You will need to change your post processor to output g code for EMC and not Mack.
The first error is EMC does not have a G50... the error does point you to the line where the error is. Also the line that starts with O0001 might be your next error or the M98 might be the next... to make a long reply short no code will port directly between different controls if they go beyond G0 or G1 and some controls even treat them differently.
John
The first error is EMC does not have a G50... the error does point you to the line where the error is. Also the line that starts with O0001 might be your next error or the M98 might be the next... to make a long reply short no code will port directly between different controls if they go beyond G0 or G1 and some controls even treat them differently.
John
Please Log in or Create an account to join the conversation.
12 Jan 2012 13:42 #16657
by guyver001
Replied by guyver001 on topic Re:timing pully code problem help
no option to change the post processor in this utillity
www.cad2gcode.com/pulley/
i got this ages ago when i was using mach
dont know emc that well
i will have to look in to how emc does a subroutine if at all
www.cad2gcode.com/pulley/
i got this ages ago when i was using mach
dont know emc that well
i will have to look in to how emc does a subroutine if at all
Please Log in or Create an account to join the conversation.
12 Jan 2012 14:10 #16659
by BigJohnT
Replied by BigJohnT on topic Re:timing pully code problem help
Does it have a Fanuc post processor? IIRC that is close enough to EMC to work with basic code.
Subroutines are defined ahead of the call and may use names or numbers like so:
This is the 2.5 Subroutines docs for the upcoming version due to be released real soon.
John
Subroutines are defined ahead of the call and may use names or numbers like so:
G20 G4 etc (preamble)
o<mysub> sub
... lines of code
o<mysub> endsub
o100 sub
... some code
o100 endsub
o<mysub> call
o100 call
M2 (end of program)
This is the 2.5 Subroutines docs for the upcoming version due to be released real soon.
John
Please Log in or Create an account to join the conversation.
12 Jan 2012 14:19 #16661
by BigJohnT
Replied by BigJohnT on topic Re:timing pully code problem help
I think with some cut and paste of the code you can make it work with EMC... It's a shame that some people only target a small portion of the CNC market by limiting themselves to one control system.
John
John
Please Log in or Create an account to join the conversation.
12 Jan 2012 14:39 #16662
by guyver001
Replied by guyver001 on topic Re:timing pully code problem help
it is a shame lol nice little program
the repeat function looks handy hummm
the repeat function looks handy hummm
Please Log in or Create an account to join the conversation.
12 Jan 2012 14:52 #16663
by BigJohnT
Replied by BigJohnT on topic Re:timing pully code problem help
BTW, have you seen the
Simple G Code Generators
on the wiki? I'd bet one of them could be modified to do the timing gear stuff as it is only math formulas.
John
John
Please Log in or Create an account to join the conversation.
12 Jan 2012 15:46 #16666
by guyver001
Replied by guyver001 on topic Re:timing pully code problem help
found a easy way to do it with M92 and the repeat command
Please Log in or Create an account to join the conversation.
12 Jan 2012 18:34 #16670
by BigJohnT
Replied by BigJohnT on topic Re:timing pully code problem help
There you go then... I love it when a plan comes together.
John
John
Please Log in or Create an account to join the conversation.
Time to create page: 0.200 seconds