G code from Pen drive

More
22 Aug 2022 12:25 #250198 by rajsekhar
G code from Pen drive was created by rajsekhar
Friends, I am running a linuxcnc router. Overall it working fine.

But I am not able to load gcode file from pendrive directly. I need to copy gcode file to Desktop and Linuxcnc loads from Desktop.

Can it be done fromĀ  pendrive directly??

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
22 Aug 2022 14:55 #250209 by tommylight
Replied by tommylight on topic G code from Pen drive
Raj,
You really need to give us more info when asking for help, not just bits and pieces, we do not have time to consistently try to get info out of you.
--
Yes it can be done from pen drive or any other drive, but since we do not know what distro and what desktop environment you are using, and what GUI for LinuxCNC, the only way to help is to list all the possible variants...

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

More
23 Aug 2022 17:10 #250271 by Todd Zuercher
Replied by Todd Zuercher on topic G code from Pen drive
Yes, you can load a file from any drive or even a network share. But there can be some tricks or hoops to jump through (especially with networked files.) But, yes we need more details to help you specifically because different distributions and user interfaces have their own quirks.

Here is one example how to open any G-code file from any file manager window in the Axis user interface. First have Linuxcnc started and running with the Axis UI. Then open and brows to the G-code file you want to open using the file manager of your choise (ie Thunar). Right click on the G-code file name. In the pop-up menu that appears choose "Open With Other Application...". In the window that pops up click on "Use a custom command". Enter (type) "axis-remote" in the text entry box. Then click open. This will then open that file in the Axis UI. The next time you right click on a g-code file "Open With axis-remote" should be the top option in the pop-up menu.

Unfortunately this simple method to open G-code files from a regular file manager doesn't work with other Linuxcnc GUIs.
The following user(s) said Thank You: arvidb

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

More
23 Aug 2022 17:28 #250273 by Todd Zuercher
Replied by Todd Zuercher on topic G code from Pen drive
All GUIs in Linuxcnc can open any G-code file saved in a "mounted" drive or directory on the computer, This includes mounted network shares. Unfortunately virtual mounts such as are typically used for network shares don't apply. You simply have to navigate through the computers directory tree to the file's location. For a USB pen drive you have to find the drive's mounting point. then navigate there. For USB drive on a typical Linuxcnc Debian install that might be /media/usb0/. The file chooser in the Linuxcnc UI will typically open up in the directory ~/linuxcnc/nc_files/. To navigate to the USB drive you'd need to move up five directories to get to the root directory then to the "media" directory, then to the usb0 directory, and then to what ever sub directory that holds your G-code file.

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

More
24 Aug 2022 06:41 #250303 by rajsekhar
Replied by rajsekhar on topic G code from Pen drive
Please refer the attached photo for version.

I had installed debian wheezy 7 with RTAI, then updated and using GMOCCAPY.
Attachments:

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

More
24 Aug 2022 06:51 #250304 by rajsekhar
Replied by rajsekhar on topic G code from Pen drive
Present situation:

pen drive can be accessed under "media" from desktop.

pen drive can be accessed from file open option under auto mode provided the pendrive has been already accessed from desktop after inserting to usb. But if it is not not accessed from dsktop first, it is invisible from auto mode file option.

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

More
24 Aug 2022 15:13 #250331 by Todd Zuercher
Replied by Todd Zuercher on topic G code from Pen drive
That is because until you access it from the desktop the drive has not yet been "mounted" and the file open dialog in most user interfaces can't access unmounted file systems. (This is true for all Linux programs not just Linuxcnc.) There may be a way to set your preferences to automatically mount USB drives upon insertion, but I'm not sure how. This is technically more of a general Debian or Linux question than a Linuxcnc one.

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

More
27 Aug 2022 16:41 #250585 by rajsekhar
Replied by rajsekhar on topic G code from Pen drive
Today I did "sudo apt-get install usbmount"

and problem solved.
The following user(s) said Thank You: tommylight

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

More
28 Aug 2022 00:08 #250598 by tatel
Replied by tatel on topic G code from Pen drive
With XFCE, under Apps menu->Configuration->removable media and devices, check the box for "mount removable media when inserting them"

Not sure if that is these are the correct strings used in english: here's a capture of the dialog box
Attachments:
The following user(s) said Thank You: tommylight

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

Time to create page: 0.130 seconds
Powered by Kunena Forum