Advanced Search

Search Results (Searched for: )

  • rockcnc
  • rockcnc
13 Sep 2024 12:23
Replied by rockcnc on topic Python - yield INTERP_EXECUTE_FINISH

Python - yield INTERP_EXECUTE_FINISH

Category: General LinuxCNC Questions

can you please give me an example of your G-code
just like you i need to wait for some entrance
  • zz912
  • zz912's Avatar
13 Sep 2024 12:07
Replied by zz912 on topic Python - yield INTERP_EXECUTE_FINISH

Python - yield INTERP_EXECUTE_FINISH

Category: General LinuxCNC Questions

I made my remap in G-code.
Python doesnt like me.
  • rockcnc
  • rockcnc
13 Sep 2024 11:59
Replied by rockcnc on topic Python - yield INTERP_EXECUTE_FINISH

Python - yield INTERP_EXECUTE_FINISH

Category: General LinuxCNC Questions

hey zz912
did you solve this problem?
i have the same problem and stuck in it for a while ):
  • Aciera
  • Aciera's Avatar
13 Sep 2024 11:55
Replied by Aciera on topic toolchange problem

toolchange problem

Category: Advanced Configuration

For
self.Execute("G53 G0 Z85.0") #z to start position
to actually execute before the remap code is done you would have to have a quebuster like this right after it
yield INTERP_EXECUTE_FINISH

However due to internal limitations we cannot call 'self.execute()' again after having used ' yield INTERP_EXECUTE_FINISH' so your current approach won't work.

My usual workaround is to call the python remap code through an ngc wrapper and split the python code into multiple functions. With this approach you have much more freedom in inserting queuebuster commands in the python remap and in the ngc wrapper (eg M66 E0 L0).

So in your example:
I would remove 'self.Execute("G53 G0 Z85.0") #z to start position' and instead of directly calling 'M6_Remap_BiesseRover346' I would call an ngc routine like this:
G53 G0 Z85
M66 E0 L0
<call the python remap here> 
  • bertoldo
  • bertoldo
13 Sep 2024 11:39

Notes from installation of ethercat on Raspberry Pi 4

Category: EtherCAT

Hello!

I'm trying too and I'm going to compile it into a single file to make it easier to understand. As soon as I can, I'll make a single folder with a single description and a video from scratch!
  • bertoldo
  • bertoldo
13 Sep 2024 11:38
Replied by bertoldo on topic Scara tutorial

Scara tutorial

Category: General LinuxCNC Questions

tks!

good job!!!
  • Aciera
  • Aciera's Avatar
13 Sep 2024 11:03

Some issues of using "Home All"(home all joints) when using Multi-ring Absolute

Category: Advanced Configuration

It's been a very long time since I have used absolute encoder homing but maybe try setting 'HOME_OFFSET' in the 'JOINT_n' section for A and C in your ini file.
  • stenly
  • stenly
13 Sep 2024 10:26 - 13 Sep 2024 10:46

EtherCAT Communication Issues, Lost Frames, Interruptions in Program Execution

Category: EtherCAT

I'm still having trouble booting to RTAI. I did try to follow the steps from the official docs, but running the linuxcnc-install.sh script would cause source conflicts on a LinuxCNC ISO, leaving me unable to use apt. On a vanilla Debian 12 ISO, it would still install linuxcnc-uspace and all, but then on trying to run sudo apt install linuxcnc it would cause conflicts again, even when I try to purge linuxcnc-uspace and linuxcnc-doc*.

I tried it following the instructions from the pinned RTAI thread , install a fresh vanilla Debian 12 ISO, download the 4 .deb files and install them with dpkg, yet the linuxcnc package would fail to build with dpkg. Either way, it still leaves me with the same error about the root filesystem on attempting to boot. I even tried to go with BIOS boot instead of UEFI.

Am I still doing something wrong? Should I open a new thread in the Installing LinuxCNC forum section regarding this?

Edit: in the rescue shell I am dropped in, uname -r does confirm I am running the RTAI kernel. So the issue is not the kernel installation allegedly, but it somehow not finding the correct root filesystem? I double and triple checked the UUID, it is indeed the correct one.
  • bkt
  • bkt's Avatar
13 Sep 2024 10:08
Replied by bkt on topic Ethercath 1.6 workable or not?

Ethercath 1.6 workable or not?

Category: EtherCAT

read inside .... well done and work for sure .... but is not mine problem now. Discover my LMDE6 install have some bug regards gcc version .... think I write somethings about in few hour .... so I made a new and conventional installation of Lcnc 2.9.0 with ethercat .... I have again problem with r8169 .... but become discover gcc problem become from 6.6 kernel, I go directly on 6.10 kernel .... just now installing see module not "generic" is skipped and not installed from linuxcnc-ethercat repo ..... so ask you if there is a method to install it whitout reinstall ethercat from git etherlab .....

If need to install again ethercat from etherlab git .... ask to you if is needed remove linuxcnc-ethercat .... aor need to reinstall it after installation process of etherlab 1.6.
    
  • shaying526
  • shaying526
13 Sep 2024 09:27

Some issues of using "Home All"(home all joints) when using Multi-ring Absolute

Category: Advanced Configuration

Thank you Aciera!

It works! now the xyz axis is correct in RTCP

But it doesn't seem to know that my A C axis value(a=-87.85 c=-85.18) are the absolute zero positions of the rotation axis

When I am at a-87.85 c-85.18, it does not consider me to be at the origin, but rather to have turned to a-87.85 c-85.18

I have looked at 'xyzac-trt.txt'. It seems that it does not have this parameter, the absolute zero setting of the A C axis, such as setting x/y/z-rot-point

What should I do next? Thank you for your reply
  • Plasmanfm
  • Plasmanfm
13 Sep 2024 09:04
Replied by Plasmanfm on topic Qtplasmac SIM Estop Label

Qtplasmac SIM Estop Label

Category: Plasmac

Ok..
what do change in the hal and where is the hal in the sim


King regarde
Juergen
  • Aciera
  • Aciera's Avatar
13 Sep 2024 08:10

Some issues of using "Home All"(home all joints) when using Multi-ring Absolute

Category: Advanced Configuration

The kinematics provides inputs to set the coordinates of your table rotary assembly.
This is from 'xyzac-trt.txt':

Hal Input pins:
xyzac-trt-kins.x-rot-point
xyzac-trt-kins.y-rot-point
xyzac-trt-kins.z-rot-point

X, Y and Z rot-point pins represent the
offsets of the center of rotation of the C axis
relative to the machine absolute zero



Add this to the [HAL] section of your ini file and enter your offset values as described above:
# not currently supported by xyzac-trt-gui:
HALCMD = setp xyzac-trt-kins.x-rot-point  <your-value-here>
HALCMD = setp xyzac-trt-kins.y-rot-point  <your-value-here>
HALCMD = setp xyzac-trt-kins.z-rot-point  <your-value-here>
  • Aciera
  • Aciera's Avatar
13 Sep 2024 07:57
Replied by Aciera on topic User Prompt Custom M Code

User Prompt Custom M Code

Category: G&M Codes

Seems to work for me after updating the remap.py:
#!/usr/bin/python3
import sys
from interpreter import *
import tkinter as Tkinter

list = []

# Add an entry
def m10(self, **words):
    global list
    if not self.task: return INTERP_OK
    list.append(self.blocks[self.remap_level].comment)
    return INTERP_OK

def done(self, dialog, entries):
    for entry in entries:
        val = entry[1].get()
        if val.isdigit:
            self.params[entry[0]] = float(val)
    dialog.update()
    dialog.destroy()

# Show the entries
def m11(self, **words):
    if not self.task: return INTERP_OK
    dir(self)
    global list
    entries = []
    row = 1
    if not hasattr(sys, 'argv'):
        sys.argv  = ['']
    dialog = Tkinter.Tk()
    dialog.title(self.blocks[self.remap_level].comment)
    for item in list:
        ret = item.split(";")
        prompt = ret[0]
        if len(ret) == 1:
            param = "_" + prompt.replace(" ", "")
        else:
            param = "_" + ret[1].replace(" ", "")
        Tkinter.Label(dialog, text=prompt).grid(row=row)
        entry = Tkinter.Entry(dialog)
        entry.grid(column=1, row=row)
        try:
            entry.insert(0, self.params[param])
        except:
            pass
        entries.append((param, entry))
        row += 1
    Tkinter.Button(dialog, text='OK', command=lambda: done(self, dialog, entries)).grid(row=row, column=0, pady=4)
    Tkinter.mainloop()
    return INTERP_OK

def m12(self, **words):
    global list
    list = []
    return INTERP_OK

in 2.9 I get the popup window and after typing the values and clicking ok:

 

 
  • shaying526
  • shaying526
13 Sep 2024 06:52

Some issues of using "Home All"(home all joints) when using Multi-ring Absolute

Category: Advanced Configuration

Thank you andypugh!

I conducted tests on the machine

I added this line to the ini file
HOME_ABSOLUTE_ENCODER=2
press "home all"
Set the value of the absolute encoder at mechanical zero position to the G54 coordinate system
g10 l2 p0 x-208.621 y-133.6 z-300.0 a-87.85 c-85.18
Use G54 coordinate system

Non RTCP is correct and achieved my goal, but RTCP seems to be incorrect. It seems to use the zero value of the absolute encoder as the kinematic coordinate origin. Below are screenshots of these two situations



Now, I have some new issues

Is this a conventional method for using absolute encoders?
Before this, I thought we still needed to set the zero position of machine.
Now, I use the zero position of the absolute encoder as the zero position of the machine, even though this may be an unattainable position, it is not the coordinate origin of kinematics
 
  • Aciera
  • Aciera's Avatar
13 Sep 2024 06:50
Replied by Aciera on topic Scara tutorial

Scara tutorial

Category: General LinuxCNC Questions

I don't know anything about ethercat so I'm afraid I cannot assist you with that. You may want to post you question in the 'EtherCat' section of the forum.
forum.linuxcnc.org/ethercat
Displaying 22216 - 22230 out of 24147 results.
Time to create page: 0.413 seconds
Powered by Kunena Forum