Fixture offsets not working!

More
25 Nov 2013 07:02 #41151 by RhysC
Hi guys,

I have been using EMC2 for a while for 3D printing purposes, and recently had a need to upscale a specific model, so I need to reposition the 0 on each axis to a new position a few times in each run. I don't want to do this manually (just moving the code) because i have set parameters up to allow the piece to be modified very quickly. I thought I could do this with g54 through to g59.3 commands.

-> I changed the .var file parameters.
-> I input the commands like for example;

O4 if [#30 lt #50]
G54 G0X0Y0
O4 endif


Whenever i try to run (or even load), when it gets to the line with G54 command on it, it says there is an unknown command.

Any thoughts?

Thanks for any help that I can get on this. I have to run ALOT of these so it would be a great help!

Cheers,

Rhys

Please Log in or Create an account to join the conversation.

More
25 Nov 2013 16:35 - 25 Nov 2013 16:41 #41155 by Rick G
Replied by Rick G on topic Fixture offsets not working!
Take a look here...
linuxcnc.org/docs/html/gcode/o-code.html

A sub starts with o___sub
and ends with o___endsub

o100 sub
(notice that the if-endif block uses a different number)
o110 if [#2 GT 5]
(some code here)
o110 endif
(some more code here)
o100 endsub

-> I changed the .var file parameters.

Not sure what you mean there but to reposition the machine take a look at G10 and G92
www.linuxcnc.org/docs/html/gcode/gcode.html#sec:G92
www.linuxcnc.org/docs/html/gcode/gcode.html#sec:G10-L2_
www.linuxcnc.org/docs/html/gcode/gcode.html#sec:G10-L20

Rick G
Last edit: 25 Nov 2013 16:41 by Rick G.

Please Log in or Create an account to join the conversation.

More
25 Nov 2013 23:31 #41159 by cradek
Replied by cradek on topic Fixture offsets not working!
Rick is right that you should never edit the var file directly. Use G10 to set your G54, G55, ... origins.

"Unknown command" is not an error message the interpreter prints. What is the exact full error message?

Please Log in or Create an account to join the conversation.

Time to create page: 0.123 seconds
Powered by Kunena Forum