Advanced Search

Search Results (Searched for: )

  • 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)?
  • oddwick
  • oddwick's Avatar
21 May 2025 14:33

[SOLVED] MesaCT problems with 7i96 pwm spindle

Category: Configuration Tools

ok so heres a pic of the conns. i have verified everything all the way up to them is working. spindle start is on ssr.03, and all the wiring from the mesa to the vfd is tested. as best as i can tell P00.01 should switch between the keypad and remote switching. i can change the frequency from linuxcnc but thats about all. 

the manual is here: www.huanyangvfd.com/wp-content/uploads/2.../FC01-Series-VFD.pdf

 
  • Routerworks
  • Routerworks
21 May 2025 14:11
Replied by Routerworks on topic Calling next subroutine messes up offsets

Calling next subroutine messes up offsets

Category: General LinuxCNC Questions

No tool changer or offset.
I manually move the head to a zero position and insert the new tool. Then I use G54 offset to give it the program height, then run.

Went back and tried to regenerate this, it seems to not be very good at it.
I think I am either going to have to split the operations into separate programs or learn how to assemble this myself. I haven't given up on learning how to take the code, create subroutines and write the code for multiple locations.

Don't think I need the G92s. When I enter the Z location it moves the entire 4 location layout on the screen. Have no idea why.
Anyhow, more to do and learn.

Almost there, I think

thanks
Displaying 15901 - 15905 out of 15905 results.
Time to create page: 1.766 seconds
Powered by Kunena Forum