Advanced Search

Search Results (Searched for: )

  • cmorley
  • cmorley
01 Feb 2025 19:45

QTDragon HD spindle incrementally increase/decrease speed

Category: Qtvcp

No clicking the screen button with a mouse.
  • cmorley
  • cmorley
01 Feb 2025 19:36 - 01 Feb 2025 19:37
Replied by cmorley on topic qtdragon additonal buttons

qtdragon additonal buttons

Category: Qtvcp

perhaps for now adding this to the stylesheets will suffice:
QMenu::item {
   padding: 2px 25px 2px 20px;
   font: 24pt "Lato Heavy";
}
  • zz912
  • zz912's Avatar
01 Feb 2025 19:19
Replied by zz912 on topic LCNC 2.10 - Ask for AUTOMATIC_G43

LCNC 2.10 - Ask for AUTOMATIC_G43

Category: Gmoccapy

Hello,

I am trying modify PNCconf:

Here github.com/LinuxCNC/linuxcnc/blob/1c72d4...nf/build_INI.py#L176 I added:
        if self.d.frontend == _PD._GMOCCAPY:
            print("SUBROUTINE_PATH = ./macros", file=file)
            print("REMAP=M6  modalgroup=6 prolog=change_prolog ngc=change_g43 epilog=change_epilog", file=file)
            print("REMAP=M61  modalgroup=6 prolog=settool_prolog ngc=settool_g43 epilog=settool_epilog", file=file)
            print(file=file)
            print("# the Python plugins serves interpreter and task", file=file)
            print("[PYTHON]", file=file)
            print("PATH_PREPEND = ./python", file=file)
            print("TOPLEVEL = ./python/toplevel.py", file=file)
            print("LOG_LEVEL = 0", file=file)

It works.

Then I added folders macros and python to /linuxcnc-master/src/emc/usr_intf/pncconf

I want copy it to new configuration, so I added here github.com/LinuxCNC/linuxcnc/blob/1c72d4...conf/pncconf.py#L389 :
            if self.d.frontend == _PD._GMOCCAPY:
                dirbase = "%s/macros" % base
                dirpython = "%s/python" % base

                if not os.path.exists(dirbase):
                    shutil.copytree('/home/zdenek/linuxcnc/linuxcnc-master/src/emc/usr_intf/pncconf/macros', dirbase)
                
                if not os.path.exists(dirpython):
                    shutil.copytree('/home/zdenek/linuxcnc/linuxcnc-master/src/emc/usr_intf/pncconf/python', dirpython)   

It works, but I dont want absolute path: /home/zdenek/linuxcnc/linuxcnc-master/src/emc/usr_intf/pncconf/

Can I ask for help?

Is good idea has the files in src folder?
  • cakeslob
  • cakeslob
01 Feb 2025 19:00
Replied by cakeslob on topic Homing an axis moves away from home switch!

Homing an axis moves away from home switch!

Category: StepConf Wizard

It works now!


Is there some sort of step-by-step beginner's guide or something?

There should be.

It would make life so much easier for beginners.


linuxcnc.org/docs/stable/html/user/user-...chine-configurations
linuxcnc.org/docs/stable/html/config/ini-homing.html
  • cmorley
  • cmorley
01 Feb 2025 18:54
Replied by cmorley on topic qtdragon additonal buttons

qtdragon additonal buttons

Category: Qtvcp

Yes, the G5x button works when long pressed, thanks.

Well, I thought you could call up a calculator-like window, something like that:

 


 

Ahh OK I get it - interesting.
  • cmorley
  • cmorley
01 Feb 2025 18:48
Replied by cmorley on topic qtdragon additonal buttons

qtdragon additonal buttons

Category: Qtvcp

This gets most of what you want I think...
  • spumco
  • spumco
01 Feb 2025 18:47
Replied by spumco on topic caxis.comp - How to freewheel axis/spindle?

caxis.comp - How to freewheel axis/spindle?

Category: HAL

@PCW-
I thought about using orient.comp with it's own PID to do just what you suggested (get it close before re-linking the main PID), but caxis.comp interferes with orient (I think).

Cooking up a 3rd get-it-close PID is a fantastic idea.  I'll have a go at it.

@Aciera-
Writing a python comp for me was more than I'd expected (or deserve), but I suspect it'd take longer to explain things and bring me up to speed than to just whip something up.

I'll try to digest what the comp is doing and test it out.

Thank you both very much.
 
  • Mr. Mass
  • Mr. Mass's Avatar
01 Feb 2025 18:29
Replied by Mr. Mass on topic qtdragon additonal buttons

qtdragon additonal buttons

Category: Qtvcp

Yes, the G5x button works when long pressed, thanks.

Well, I thought you could call up a calculator-like window, something like that:

 
  • Aciera
  • Aciera's Avatar
01 Feb 2025 18:23 - 01 Feb 2025 18:28
Replied by Aciera on topic caxis.comp - How to freewheel axis/spindle?

caxis.comp - How to freewheel axis/spindle?

Category: HAL

As for the component (Bit of a rushed job as I'm short on time right now):
Save this as 'unhome_comp.py' in a folder named 'python' in your machine config and mark as 'executable':
#!/usr/bin/env python3
import hal
import linuxcnc

h = hal.component("unhome-comp")
h.newpin("unhome-rotary", hal.HAL_BIT, hal.HAL_IN)
h.ready()
c = linuxcnc.command()
joint = 0
homed = 1
try:
    while 1:
        if homed == 1 and h['unhome-rotary'] == 1:
            c.teleop_enable(0)
            c.wait_complete()
            c.unhome(joint)
            homed = 0
        if homed == 0 and h['unhome-rotary'] == 0:
            homed = 1

except KeyboardInterrupt:
    raise SystemExit

add this line to the [HAL] section of your ini file:
HALCMD = loadusr ./python/unhome_comp.py

Start your config and open the 'Show HAL configuration' tool and 'watch' the 'unhome-comp.unhome-rotary' pin, setting it to TRUE should unhome the joint number set in the python script in the line 'joint = 0'.

 
  • beauxnez
  • beauxnez
01 Feb 2025 17:46

ESP32/S2/S3 LinuxCNC Controller (6 axis hardware step gen), USB plug-and-play

Category: Computers and Hardware

I succeeded, I am at the part "sudo halcompile --install esp32udp.comp" what should I do?
  it's not very clear for a novice

 
  • PCW
  • PCW's Avatar
01 Feb 2025 17:46

caxis.comp - How to freewheel axis/spindle?

Category: HAL

You might use a different PID (with different tuning) during the "recovery" period
so the correction is gentle, that and a 'near' component to determine when to go
back into full servo mode.

So

hand mode: drive disabled, LinuxCNC motor position feedback looped
back from motor position command (via mux)

recover mode: drive enabled,  LinuxCNC motor position feedback looped
back from motor position command (via mux) Special PID used with bounded
error and no FF so correction velocity is limited

exit from recover mode when encoder feedback is "near" position command
  • my1987toyota
  • my1987toyota's Avatar
01 Feb 2025 17:32
Replied by my1987toyota on topic good day to all (in some gtp languages)

good day to all (in some gtp languages)

Category: Off Topic and Test Posts

Hello from Florida. What is this snow you speak of? LOL
  • gardenweazel
  • gardenweazel's Avatar
01 Feb 2025 17:13

QTDragon HD spindle incrementally increase/decrease speed

Category: Qtvcp

It doesn't work for me by using the mouse. Were you using the keyboard?
Displaying 19696 - 19708 out of 19708 results.
Time to create page: 0.506 seconds
Powered by Kunena Forum