Loading no g code file on startup
- OT-CNC
- Offline
- Platinum Member
- Posts: 623
- Thank you received: 75
Please Log in or Create an account to join the conversation.
- tommylight
- Offline
- Moderator
- Posts: 19409
- Thank you received: 6507
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.
Please Log in or Create an account to join the conversation.
- tommylight
- Offline
- Moderator
- Posts: 19409
- Thank you received: 6507
Please Log in or Create an account to join the conversation.
- OT-CNC
- Offline
- Platinum Member
- Posts: 623
- Thank you received: 75
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.
- Rick G
- Offline
- Junior Member
- Posts: 28
- Thank you received: 156
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
Please Log in or Create an account to join the conversation.
- tommylight
- Offline
- Moderator
- Posts: 19409
- Thank you received: 6507
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.
- OT-CNC
- Offline
- Platinum Member
- Posts: 623
- Thank you received: 75
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 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. I'd rather load code when I'm ready to run a part.
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
- Posts: 5009
- Thank you received: 1443
Please Log in or Create an account to join the conversation.
- OT-CNC
- Offline
- Platinum Member
- Posts: 623
- Thank you received: 75
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
- Posts: 5009
- Thank you received: 1443
Please Log in or Create an account to join the conversation.