Advanced Search

Search Results (Searched for: )

  • tommylight
  • tommylight's Avatar
21 May 2025 15:23
Replied by tommylight on topic [SOLVED] MesaCT problems with 7i96 pwm spindle

[SOLVED] MesaCT problems with 7i96 pwm spindle

Category: Configuration Tools

Manual, this section:
P05 group Input terminals
  • Routerworks
  • Routerworks
21 May 2025 15:16
Replied by Routerworks on topic Calling next subroutine messes up offsets

Calling next subroutine messes up offsets

Category: General LinuxCNC Questions

I believe I should be able to assemble this code myself with subroutines. Don't want to make something rocket science that isn't.

Example:

Parameters G90, G17 etc.
Variables
Offsets

Subroutines
o100 Sub
code
0100 endsub

o101 Sub
code
o100 endsub

o102 sub
code
o102 endsub

G0 X0 Y0 F70 (Go somewhere you can change the tool, first op work zero)
M6 (change the tool, move to top of part)
G54 Z height (set the height to top of part)

G54
o100 Call
G55
o100 Call
G56
o100 Call
G56
o100 Call
G57
o100 Call

G54
G0 Z1.0 (get too up out of the way)
G0 X0 Y0 (go back to first tool change position, work zero)

o101 Call
G55
o101 Call
G56
o101 Call

and on and on

At the end the tool should stop at the last program Z height.

Please offer any comments. Going to try this without the drivers turned on.
  • MennilTossFlykune
  • MennilTossFlykune
21 May 2025 14:57
Replied by MennilTossFlykune on topic Manual Toolchange + Abs Z Probe (QtDragon)

Manual Toolchange + Abs Z Probe (QtDragon)

Category: Qtvcp

Reading Work Coordinates When Loading a New NGC File  

When loading a new `.ngc` file in LinuxCNC, is it possible to read the work coordinates at that stage? Since the G-code has not been executed yet, the work coordinates might not be applied.  

Would it be possible to create a custom button, similar to "WCS Sync," that reads the `.ngc` file and sends commands like `G55` to MDI?  

Has anyone implemented something similar, or does LinuxCNC provide a built-in way to achieve this? Any insights or suggestions would be greatly appreciated.

Thanks!
 

You can add this under StatCanon in qt5_graphics.py:
    def set_g5x_offset(self, index, x, y, z, a, b, c, u=None, v=None, w=None):
        interpret.Translated.set_g5x_offset(self, index, x, y, z, a, b, c, u, v, w)        
        g5x = {
            1: 54,
            2: 55,
            3: 56,
            4: 57,
            5: 58,
            6: 59,
            7: 59.1,
            8: 59.2,
            9: 59.3
        }
        print(f"G{g5x[index]} on line {self.lineno}")
  • kjlty
  • kjlty
21 May 2025 14:53 - 21 May 2025 14:53

Ethercat installation from repositories - how to step by step

Category: EtherCAT

How to install the latest linuxcnc-ethercat on Debian 10 (lcnc2.94)?
Displaying 15901 - 15904 out of 15904 results.
Time to create page: 3.710 seconds
Powered by Kunena Forum