Loading no g code file on startup

More
12 Sep 2016 19:32 #80372 by OT-CNC
Loading no g code file on startup was created by OT-CNC
Is there a way to have no g code loaded on the axis screen on startup? I'd rather have a blank screen then a bunch of code that is ready to execute. I'd also like a way to clear the g code file like after running it.

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

More
12 Sep 2016 19:59 #80373 by tommylight
Replied by tommylight on topic Loading no g code file on startup
[DISPLAY]
DISPLAY = axis
EDITOR = gedit
POSITION_OFFSET = RELATIVE
POSITION_FEEDBACK = ACTUAL
MAX_FEED_OVERRIDE = 1.2
INTRO_GRAPHIC = linuxcnc.gif
INTRO_TIME = 5
PROGRAM_PREFIX = /home/cnc/linuxcnc/nc_files
INCREMENTS = 5mm 1mm .5mm .1mm .05mm .01mm .005mm
#Plasma Control Panel
PYVCP = vcp.xml
#Plasma Control Panel
#PYVCP = ptest.xml
OPEN_FILE ="" <<<<Add this line.
The following user(s) said Thank You: slese, Tchefter

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

More
12 Sep 2016 20:01 #80374 by tommylight
Replied by tommylight on topic Loading no g code file on startup
Add that line to ini file.
The following user(s) said Thank You: OT-CNC

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

More
13 Sep 2016 00:30 #80375 by OT-CNC
Replied by OT-CNC on topic Loading no g code file on startup
tommylight

Hey thanks that works!
How about a way to close the file? It's really annoying that under file there is no option to close it!

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

More
13 Sep 2016 08:24 - 13 Sep 2016 08:27 #80382 by Rick G
Replied by Rick G on topic Loading no g code file on startup
You can also set
OPEN_FILE =
To the file you wish to use when starting linuxcnc perhaps a file with just a preamble to set the normal environment for your machine.

OPEN_FILE = /full/path/to/file.ngc - The file to show in the preview plot when AXIS starts. Use a blank string "" and no file will be loaded at start up.


For example blank.ngc...
%
g17 (xy plane)
g20 (inches)
g40 (cancel cutter radius compensation)
g49 (cancel tool lengthoffset)
g90 (absolute distance mode)
g94 (units/min feedrate)
g54 (Coordinate system 1 default)
%

You could also select and run blank.ngc when you start and then select it from your recent file list to replace the last file run with a blank screen and your default settings.

Rick G
Last edit: 13 Sep 2016 08:27 by Rick G.
The following user(s) said Thank You: OT-CNC

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

More
13 Sep 2016 11:18 #80386 by tommylight
Replied by tommylight on topic Loading no g code file on startup

tommylight

Hey thanks that works!
How about a way to close the file? It's really annoying that under file there is no option to close it!


Just a stab in the dark, but i think you used mach3, right?
In windoze when you have a file open in mach3, you can not edit and save that file without closing it first in mach3.
In linux you can edit and save anything even when the file you are editing is opened by a program and in use. Therefore there is no need to close the file, at least i never needed it.
When done just open the next file.
Or use the Rick G's advice, as that is a nice solution especially if you use offsets and inch/mm files. That would cancel all offsets and set it to inch (or MM).

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

More
13 Sep 2016 12:30 #80389 by OT-CNC
Replied by OT-CNC on topic Loading no g code file on startup
Rick,

I'll generate a blank ngc file with the necessary lathe related initial g codes. I assume this becomes also the active g code string listed on the mdi screen ?

tommylight

Good guess :laugh: yes I'm used to closing the file on Mach but mainly out of habit not for editing so much.

I have my cycle start button wired up on my linux lathe and was pushing buttons while testing things and realized there was a program active when the machine rapided to it's start position. :ohmy: I'd rather load code when I'm ready to run a part.

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

More
13 Sep 2016 12:36 #80391 by Todd Zuercher
Replied by Todd Zuercher on topic Loading no g code file on startup
Guess I come from a Fanuc backround where if the machine is in auto mode a program is always loaded and will start if you press the button (so you don't press start unless you want it to start.)

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

More
13 Sep 2016 13:59 #80396 by OT-CNC
Replied by OT-CNC on topic Loading no g code file on startup
That's fine, I do expect it to execute when pushing cycle start. I just want the option of closing a loaded file. Why not have that?

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

More
13 Sep 2016 15:01 #80401 by Todd Zuercher
Replied by Todd Zuercher on topic Loading no g code file on startup
Probably because the developers didn't see the need. What real purpose would it serve, other than adding an unnecessary step when changing files.
The following user(s) said Thank You: tommylight

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

Time to create page: 0.067 seconds
Powered by Kunena Forum