Advanced Search

Search Results (Searched for: )

  • PCW
  • PCW's Avatar
08 Nov 2024 21:09
Replied by PCW on topic hm2/hm2_7i92.0: Error finishing read!

hm2/hm2_7i92.0: Error finishing read!

Category: Driver Boards

That looks much better.

You can monitor the maximum times in when LinuxCNC is running with:

halcmd show param *.tmax

(these times will be in ns on non-x86 platforms like your Orange-Pi)
  • angelnu
  • angelnu
08 Nov 2024 20:37
Replied by angelnu on topic hm2/hm2_7i92.0: Error finishing read!

hm2/hm2_7i92.0: Error finishing read!

Category: Driver Boards

Thanks PCW for your reply, I remembered that I had compiled the Orange Pi 5 core and checked the network interrupts and they were different from the ones I had isolated before, so I changed the network IRQs to the isolated cores and now I get better results. I have done several tests and it has not failed again.

angel@orangepi5:~$ sudo chrt 99 ping -i .001 -q 10.10.10.10 -c 50000
PING 10.10.10.10 (10.10.10.10) 56(84) bytes of data.

--- 10.10.10.10 ping statistics ---
50000 packets transmitted, 50000 received, 0% packet loss, time 50002ms
rtt min/avg/max/mdev = 0.148/0.156/0.345/0.001 ms
angel@orangepi5:~$ sudo chrt 99 ping -i .001 -q 10.10.10.10 -c 50000
PING 10.10.10.10 (10.10.10.10) 56(84) bytes of data.

--- 10.10.10.10 ping statistics ---
50000 packets transmitted, 50000 received, 0% packet loss, time 50001ms
rtt min/avg/max/mdev = 0.155/0.156/0.186/0.000 ms
angel@orangepi5:~$ sudo chrt 99 ping -i .001 -q 10.10.10.10 -c 50000
PING 10.10.10.10 (10.10.10.10) 56(84) bytes of data.

--- 10.10.10.10 ping statistics ---
50000 packets transmitted, 50000 received, 0% packet loss, time 50001ms
rtt min/avg/max/mdev = 0.155/0.156/0.186/0.000 ms
  • Grotius
  • Grotius's Avatar
08 Nov 2024 20:07
Replied by Grotius on topic Trajectory Planner using Ruckig Lib

Trajectory Planner using Ruckig Lib

Category: General LinuxCNC Questions

@Arciera,

Thanks for the links !

As @rene-dev mentioned to me it is currently not possible to run tests in parallel, mainly because there can only be one linuxcnc instance running at a time.
It seems not so easy for me to create hal instances in a short time period. Segment fault.... Huh.
Then i looked more in detail to the rtapi code.

I came to the conclusion that linux cnc hal at runtime is clamped to a single cpu core.
If user installs a preempt rt kernel, we can use posix.

This posix is then is used by rtapi to run's a pthread very fast and quite time stable.

So what looks like a insmod command in rtapi, is not a insmod command at all. Insmod in this case is not a kernel insertion command.
Insmod in rtapi is loading a .so lib.

Rtapi can be seen as a library function loader. And does a little more.

For run(); read rtapi_app_main();

So if you have a lib called test.so. This lib has a function run();
Then the Rtapi opens the "test.so" lib and finds the function "run".
The lib stay's open and rtapi creates a pointer to the function run();.
This pointer is used later on to execute the run(); function.

The rtapi then finally has a list of loaded .so libs  with their names and their run(); functions (or pointers * to the run(); functions).
This final function list is then executed in order.
All the .so libs, have the same function name to execute.

This is basicly what rtapi does.

The hal environement is coded in c. But can eventually be coded in c++. Because rtapi is also written in c++. And there is no
real .ko hocus pocus.

Transforming hal into a multi instance hal environment is quite a lot of work i have seen so far. It also comes with some
difficulties to solve.

In the end of this post :
Will take some time to create a rtapi look alike example.

Creating a test app that load's .so libs with a certain function. Then run the function list.

But then with examples how to choose the cpu's.
How to set priority flags to .so libs wich are time critical.
How to create parallel or detached processing using posix.
 
  • ihavenofish
  • ihavenofish
08 Nov 2024 19:53
Replied by ihavenofish on topic Brother TC-225 / TC-229 adventure!

Brother TC-225 / TC-229 adventure!

Category: CNC Machines

Why not hook it up correctly/ the pinouts are in this thread. You cant expect anything to work if you have it only half connected.
  • Philip Lydin
  • Philip Lydin
08 Nov 2024 19:44
Replied by Philip Lydin on topic Brother TC-225 / TC-229 adventure!

Brother TC-225 / TC-229 adventure!

Category: CNC Machines

i tried with a battery and and variable psu but it makes alot of noise and shuts off because of overheating after maybe a minute of running, i guess the drive is overheating since i dont got the tempreature sensor connected. Any help or thoughts would be much appriciated. is it possible to send videos or maybe audio files?
  • Micro2000
  • Micro2000
08 Nov 2024 19:01
Replied by Micro2000 on topic LinuxCNC Error

LinuxCNC Error

Category: General LinuxCNC Questions

I may have to replace my cpu, I think it is causing issues with my bios firmware
  • Aciera
  • Aciera's Avatar
08 Nov 2024 18:26
Replied by Aciera on topic Hiden spindle control buttons in AXIS

Hiden spindle control buttons in AXIS

Category: AXIS

Looking at 'pin_has_writer':
PyObject *pin_has_writer(PyObject *self, PyObject *args) {
    char *name;
    if(!PyArg_ParseTuple(args, "s", &name)) return NULL;
    if(!hal_shmem_base) {
	PyErr_Format(PyExc_RuntimeError,
		"Cannot call before creating component");
	return NULL;
    }

    hal_pin_t *pin = halpr_find_pin_by_name(name);
    if(!pin) {
	PyErr_Format(PyExc_NameError, "Pin `%s' does not exist", name);
	return NULL;
    }

    if(pin->signal) {
	hal_sig_t *signal = (hal_sig_t*)SHMPTR(pin->signal);
	return PyBool_FromLong(signal->writers > 0);
    }
    Py_INCREF(Py_False);
    return Py_False;
}

I would expect that this would give the signal 'spindle-on' the writer 'spindle.0.on':
net spindle-on <= spindle.0.on 

But I'm really just guessing here.
  • Aciera
  • Aciera's Avatar
08 Nov 2024 18:18
Replied by Aciera on topic Hiden spindle control buttons in AXIS

Hiden spindle control buttons in AXIS

Category: AXIS

looking at, what I believe to be, the relevant code in '/home/dave/linuxcnc-dev/src/emc/usr_intf/axis/scripts/axis.py'
def forget(widget, *pins):
    if "AXIS_NO_AUTOCONFIGURE" in os.environ: return
    if hal_present == 1:
        for p in pins:
            if hal.pin_has_writer(p): return
    m = widget.winfo_manager()
    if m in ("grid", "pack"):
        widget.tk.call(m, "forget", widget._w)

forget(widgets.brake, "spindle.0.brake")
forget(widgets.spindle_cw, "spindle.0.forward", "spindle.0.on",
       "spindle.0.speed-out", "spindle.0.speed-out-abs", "spindle.0.speed-out-rps", "spindle.0.speed-out-rps-abs")
forget(widgets.spindle_ccw, "spindle.0.reverse",
       "spindle.0.speed-out", "spindle.0.speed-out-abs", "spindle.0.speed-out-rps", "spindle.0.speed-out-rps-abs")
forget(widgets.spindle_stop, "spindle.0.forward", "spindle.0.reverse", "spindle.0.on",
       "spindle.0.speed-out", "spindle.0.speed-out-abs", "spindle.0.speed-out-rps", "spindle.0.speed-out-rps-abs")

forget(widgets.spindle_plus,
       "spindle.0.speed-out", "spindle.0.speed-out-abs", "spindle.0.speed-out-rps", "spindle.0.speed-out-rps-abs")
forget(widgets.spindle_minus,
       "spindle.0.speed-out", "spindle.0.speed-out-abs", "spindle.0.speed-out-rps", "spindle.0.speed-out-rps-abs")

forget(widgets.spindlef,  "spindle.0.forward", "spindle.0.reverse", "spindle.0.on", "spindle.0.brake",
       "spindle.0.speed-out", "spindle.0.speed-out-abs", "spindle.0.speed-out-rps", "spindle.0.speed-out-rps-abs")
forget(widgets.spindlel,  "spindle.0.forward", "spindle.0.reverse", "spindle.0.on", "spindle.0.brake",
       "spindle.0.speed-out", "spindle.0.speed-out-abs", "spindle.0.speed-out-rps", "spindle.0.speed-out-rps-abs")

forget(widgets.spinoverridef,
       "spindle.0.speed-out", "spindle.0.speed-out-abs", "spindle.0.speed-out-rps", "spindle.0.speed-out-rps-abs")

for hal.pin_has_writer():
	".pin_has_writer('pin_name'): Return a FALSE value if a pin has no writers and TRUE if it does"},

Not sure but since the code is checking OUT halpins for 'writers' it might not be enough to assign the pin to a signal but it may actually need to connected to another pin.
  • tommylight
  • tommylight's Avatar
08 Nov 2024 17:30
Replied by tommylight on topic LinuxCNC Error

LinuxCNC Error

Category: General LinuxCNC Questions

Segmentation fault, normally that would be hardware issues, but in this case can easily be RTAI kernel does not like something.
Can you download the old Wheezy ISO from here:
linuxcnc.org/iso/linuxcnc-2.7.14-wheezy.iso
Burn it to a USB, boot the PC from it, use the LinuxCNC config selector and run on of the included configs for parallel port, there are several so try more than one, report back it that works.
Thank you.
  • tommylight
  • tommylight's Avatar
08 Nov 2024 17:25
Replied by tommylight on topic Which LinuxCNC version for a MESA 7i96s in 2024?

Which LinuxCNC version for a MESA 7i96s in 2024?

Category: General LinuxCNC Questions

The latest is 2.9.3 and can be found in the downloads page.
  • tommylight
  • tommylight's Avatar
08 Nov 2024 17:24
Replied by tommylight on topic Hiden spindle control buttons in AXIS

Hiden spindle control buttons in AXIS

Category: AXIS

There are a lot of entries for the spindle in the hal and ini file.
Make another config with spidnle, copy the relevant stuff from spindle sections in both files.
  • tommylight
  • tommylight's Avatar
08 Nov 2024 17:22
Replied by tommylight on topic Use z probe and 3d probe in the same input?

Use z probe and 3d probe in the same input?

Category: QtPyVCP

Copy the existing config, edit the hal file so one config has the -not and the other does not.
Name the config folders according to what is in use, something like 3dprobe and zprobe.
You could also make desktop shortcuts for each, makes it easier to switch between them.
  • PCW
  • PCW's Avatar
08 Nov 2024 17:16

Which LinuxCNC version for a MESA 7i96s in 2024?

Category: General LinuxCNC Questions

I would probably use the latest as a lot of improvements have been made both
in LinuxCNC and the configuration utilities for Mesa cards.

The main issue with the latest ISO is not LinuxCNC specific but that newer
kernels have problems with the Realtek Ethernet driver so it needs to be replaced
with the DKMS version. This issue can be avoided if you have a PC with Intel
Ethernet hardware.
  • COFHAL
  • COFHAL
08 Nov 2024 16:34
Replied by COFHAL on topic Hiden spindle control buttons in AXIS

Hiden spindle control buttons in AXIS

Category: AXIS

I already tried that but it didn't work, even though that pin (spindle.0.on) is connected in my configuration in the .HAL file.
Displaying 18226 - 18240 out of 24297 results.
Time to create page: 0.373 seconds
Powered by Kunena Forum