G54 restored at M02?

More
10 Nov 2016 07:15 #82637 by terkaa
G54 restored at M02? was created by terkaa
Hi,

We are using different coordinate systems for different fixtures. This way it is faster to switch between fixtures. Now I have seen that If we use G55 or G56 coordinates(selected at g-code file). Everything is fine until program ends. After program end Linuxcnc changes back to G54. This is not what we want. We would like to have remain coordinate system selected until it is changed by user or G-code. Is this behaviour written in code? Or can it be modified with INI?


Tero

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

More
10 Nov 2016 07:40 - 10 Nov 2016 07:43 #82638 by eFalegname
Replied by eFalegname on topic G54 restored at M02?
Hi, did you see this post about the use of M02 vs % to wrap the Gcode:
% vs M02
I personally use % to wrap my Gcode avoiding the reset of my current coordinate system.
file requirements docs.
However you must have a very complete preamble to avoid dangerous movements.
Last edit: 10 Nov 2016 07:43 by eFalegname.

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

More
14 Nov 2016 13:53 #82775 by terkaa
Replied by terkaa on topic G54 restored at M02?
Ok,

So this:

%
N001....
N002...
%

Is ok?

Tero

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

More
15 Nov 2016 07:02 #82825 by Rick G
Replied by Rick G on topic G54 restored at M02?
Yes, that is what I always use.
You do need to check everything that M02 was doing and program any you need before the % that ends your program.

Both of these commands have the following effects:

Change from Auto mode to MDI mode.

Origin offsets are set to the default (like G54).

Selected plane is set to XY plane (like G17).

Distance mode is set to absolute mode (like G90).

Feed rate mode is set to units per minute (like G94).

Feed and speed overrides are set to ON (like M48).

Cutter compensation is turned off (like G40).

The spindle is stopped (like M5).

The current motion mode is set to feed (like G1).

Coolant is turned off (like M9).


So if your original program did not use say a M5 to turn the spindle off at the end of the program you would add that to the end of the program. Same for any other command M2 preforms. Also be sure to use a proper preamble at the start of each program to set your machine up.
%
 M3
...
....
 M5
%

Rick G

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

Time to create page: 0.094 seconds
Powered by Kunena Forum