Advanced Search

Search Results (Searched for: )

  • HansU
  • HansU's Avatar
21 Mar 2025 10:04 - 21 Mar 2025 10:05
Replied by HansU on topic Keyboard Shortcuts in Gmoccapy

Keyboard Shortcuts in Gmoccapy

Category: Gmoccapy

Weird that it works with a small modification in a minimal running example but not in gmoccapy:

import gi
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk, Gdk

class ToggleButtonApp(Gtk.Window):
    def __init__(self):
        super().__init__(title="Toggle Button Example")
        self.set_default_size(200, 100)
        self.tbtn_turtle_jog = Gtk.ToggleButton(label="Button is OFF")
        self.tbtn_turtle_jog.connect("toggled", self.on_chk_turtle_jog_toggled)
        self.add(self.tbtn_turtle_jog)
        self.connect("key-press-event", self.on_key_press)

    def on_chk_turtle_jog_toggled(self, button):
        if button.get_active():
            button.set_label("Button is ON")
        else:
            button.set_label("Button is OFF")

    def on_key_press(self, widget, event):
        keyname = Gdk.keyval_name(event.keyval)
        if keyname == "r" or keyname == "R":
            self.tbtn_turtle_jog.set_active(not self.tbtn_turtle_jog.get_active())
            return True  # Stop further processing of the event

win = ToggleButtonApp()
win.connect("destroy", Gtk.main_quit)
win.show_all()
Gtk.main()


Maybe you have some time to play around and figure it out if it is important for you.
  • jazial
  • jazial
21 Mar 2025 09:57
movable Z limit was created by jazial

movable Z limit

Category: Advanced Configuration

Hello,

I'm working on a mill which make Z+ move to free the tool in spindle.

I need to go to Z++ to disengage locking, but i have to keep under Z25 when machining.

I set up a mux2 component with 2 Z limit values
I normal operation Z limit is 25 and while toolchange Z limit is 180

If i run m6 txx, it works fine, but if I load a program, the plot complain about Z limit, because M6 subroutine mention off limit Z move
If I launch program, linuxcnc complains about Z limit too, but program runs nicely as my limit is moved when it have to

Anyone have an idea to fix this ?

I've tried to add a conditional state before the Z move, but linuxcnc still see the move while plotting

Thanks
  • HansU
  • HansU's Avatar
21 Mar 2025 09:57
Replied by HansU on topic Keyboard Shortcuts in Gmoccapy

Keyboard Shortcuts in Gmoccapy

Category: Gmoccapy

Hi, there,

i am trying to make a keyboard shortcut to toggle between TURTLE and RABBIT jog mode. I think that the code should have look something like this: 

        if keyname == "r":
            "some toggle event goes here"
            return True

It is shown on in the def on_key_event section in the code attached from line 3052. Can you help me which event should I use to toggle jog modes? 

 


Toggling does not really work without further changes, because it toggles the button twice then.
Adding two buttons is the simplest solution if that works for you.
        if (keyname == "R" or keyname == "r"):
            self.widgets.tbtn_turtle_jog.set_active(False)
        if (keyname == "T" or keyname == "t"):
            self.widgets.tbtn_turtle_jog.set_active(True)
  • jazial
  • jazial
21 Mar 2025 09:43
Replied by jazial on topic halui.spindle.0.override.direct-value

halui.spindle.0.override.direct-value

Category: Advanced Configuration

To Aciera

It's not very well documented, but you have to set the counts value when you use direct value
It takes me some time to figure it out as I made my tests with spindle speed override and it's not working ;-)
  • Hakan
  • Hakan
21 Mar 2025 07:08
Replied by Hakan on topic General Questions about using ethercat

General Questions about using ethercat

Category: EtherCAT

From this here
Note: Using POSIX realtime
Found file(LIB): /usr/share/linuxcnc/hallib/basic_sim.tcl
setup_kins: cmd=loadrt trivkins coordinates=xz
Found file(REL): ./ethercat.hal
trivkins: already exists
./ethercat.hal:11: waitpid failed
It looks like you are including basic_sim.tcl. You got to remove that inclusion.
It's in the .ini file, comment out that line, the line looks something like HALFILE=LIB:basic_sim.tcl
  • RotarySMP
  • RotarySMP's Avatar
21 Mar 2025 05:54
Replied by RotarySMP on topic Blown 7i84

Blown 7i84

Category: Driver Boards

I created confusion there. The 784 is not powered by the 200 rail (which is switched on and off with Machine start / Estop), it is wired to the 204 rail, which is on constantly when the machine main switch is on.
  • gm001
  • gm001
21 Mar 2025 05:21
Hardware advice was created by gm001

Hardware advice

Category: Computers and Hardware

Hi everyone,
I'm hoping that someone can help me get my head wrapped around this, and point me in the right direction.  I've spent over a dozen hours reading through threads on this forum and elsewhere - yet, I can't figure out how to proceed.

My machine is a Bridgeport Series I CNC (Boss 6) mill - and it's sitting in my shop in original condition.  I'm new to CNC (having only dabbled with my Ender 3 3D printer).  However, a close friend of mine who's helping me has a couple of HAAS mills and is a guru with Autodesk Fusion.

I've investigated numerous options for updating this machine.  The more I study this, the more confused I've become!  The simplest answer for a person like me seems to be to install an Acorn board.  I'd rather not.  I don't want to get vendor-locked (more than I have to).  The thought of a company going under and leaving me in the position of having to gut the machine and start over is not appealing.  I don't want to pay a subscription.  I like the openness and configurability of LinuxCNC, and I'm a big fan and daily user of Linux (Red Hat Academy instructor).

My goals:
* Get the old Bridgeport back to making chips again.
* Have the ability to both use this machine as a CNC, and as a glorified manual machine (using LinuxCNC as a DRO).
* Not spend thousands of Dollars on this project (if possible!).

My thoughts:
* Mount a 12" touchsceen monitor in the original control panel housing for interacting with LinuxCNC.
* Hang a pendant on the side of the original control panel housing.
* Pick up a Huanyang VFD for the spindle drive (these seem to be well-supported and well regarded?).
* Replace the ancient original Bridgeport steppers with modern closed-loop NEMA 34's (1100-1200 oz in).

My questions:
* What should I run LinuxCNC on?  I've got a spare RPi 4 sitting in my drawer.  I've got a couple of Supermicro Intel Atom-based ITX server motherboards lying around.  What's the most intelligent way to go?
* It seems that a parallel port interface is the "old-school" way of doing things.  Now, it seems that most prefer an Ethernet interface.  Is there a disadvantage of going one way or another?
* Since I have to replace the steppers anyway, is it foolish to go with a "traditional" setup rather than Ethercat?  It seems like Ethercat will be considerably more expensive (like twice the price or more) - but is it worth the price?
* Everyone seems to agree that Mesa boards are the "gold standard."  How do Pico Systems' boards compare?  Jon Elson lives like 20 miles from my house.  Does anyone have experience with his customer service?  Is it foolish to consider anything other than a Mesa?
* If I go with a Mesa setup, which direction should I go?  If I use the RPi, I could go with the 7C80 or 7C81 - I could also run an Ethernet setup.  If I use the server motherboard, I could go with a parallel port setup or an Ethernet setup.  Is there an advantage of going one way or another, here?
* If I go with a given Mesa board, what else will I need to buy?  It seems that some of the Mesa cards (like the 7C80 and the 7I95T) will hook directly to the stepper drives, while others require a separate daughter card (BoB)?
* What hardware (if any) would I need in order to use the encoders on the steppers as a DRO?  Will any of my hardware selection above affect my ability to have this feature?
* Will a cheap Amazon/Aliexpress stepper motor/drive/power supply set work, or will I need to buy the stepper drives separately?  If I need a particular stepper drive, should I go with a Gecko or something else?
* If I run a touchscreen and a pendant, is there any reason why I will need a keyboard hooked up to this machine (once it is configured)?

Sorry for all of the (possibly stupid) questions.  The DIY CNC and especially the LinuxCNC ecosystem is far more vast than I imagined.  I really did attempt to "do my homework" before asking.  There just seems to be a lot of somewhat conflicting information (possibly, due to changing technologies and best practices over the years?).

Thanks for any advice that you can provide to me!
Displaying 18046 - 18052 out of 18052 results.
Time to create page: 0.417 seconds
Powered by Kunena Forum