Advanced Search

Search Results (Searched for: )

  • gardenweazel
  • gardenweazel's Avatar
08 Jul 2024 21:29
Axis not found was created by gardenweazel

Axis not found

Category: Qtvcp

Something seems off in the code for this widget. I've highlighted the two lines below and looked at the code briefly.

My setup is XYYZW. The code is placing "8:4" into the dict.

I believe that line 73 may be where the error is occurring:  
self._jointNum = INFO.GET_JOINT_NUM_FROM_AXIS_INDEX.get(self.joint_number)

<QTvcp QTVCP QT_MAKEPINS><VERBOSE>  HAL-ified widget: dro_axis_4 (logger py:38)
<QTvcp QTVCP WIDGETS WIDGET_BASECLASS><VERBOSE>  HAL_init: ObjectName:'dro_axis_4'
    SELF:<qtvcp widgets dro_widget DROLabel object at 0x7fe5f22b7490>
    HAL NAME:dro_axis_4
    PREFS:<qtvcp lib preferences Access object at 0x7fe6289fab90>
    INSTANMCE:<qtvcp qt_makegui VCPWindow object at 0x7fe62abc0790> (logger py:38)
<QTvcp QTVCP WIDGETS DRO_WIDGET><DEBUG>  axis number 4 not found in available-axis to joint conversion dict {0: 0, 1: 2, 2: 3, 8: 4} of widget: dro_axis_4 (dro_widget py:75)
<QTvcp QTVCP QT_MAKEPINS><VERBOSE>  HAL-ified widget: dro_axis_3 (logger py:38)
<QTvcp QTVCP WIDGETS WIDGET_BASECLASS><VERBOSE>  HAL_init: ObjectName:'dro_axis_3'
    SELF:<qtvcp widgets dro_widget DROLabel object at 0x7fe5f22b7520>
    HAL NAME:dro_axis_3
    PREFS:<qtvcp lib preferences Access object at 0x7fe6289fab90>
    INSTANMCE:<qtvcp qt_makegui VCPWindow object at 0x7fe62abc0790> (logger py:38)
<QTvcp QTVCP WIDGETS DRO_WIDGET><DEBUG>  axis number 3 not found in available-axis to joint conversion dict {0: 0, 1: 2, 2: 3, 8: 4} of widget: dro_axis_3 (dro_widget py:75)
<QTvcp QTVCP QT_MAKEPINS><VERBOSE>  HAL-ified widget: offsettoolbutton_2 (logger py:38)
<QTvcp QTVCP WIDGETS WIDGET_BASECLASS><VERBOSE>  HAL_init: ObjectName:'offsettoolbutton_2'
    SELF:<qtvcp widgets offset_tool_button OffsetToolButton object at 0x7fe5f22b79a0>
    HAL NAME:offsettoolbutton_2
    PREFS:<qtvcp lib preferences Access object at 0x7fe6289fab90>
    INSTANMCE:<qtvcp qt_makegui VCPWindow object at 0x7fe62abc0790> (logger py:38)


I believe that the axis numbers are coming from the INI file which seems correct to me:

Here's what I have set:
<DISPLAY> 
GEOMETRY = xyzw 
<KINS> JOINTS = 5 
KINEMATICS = trivkins coordinates=XYYZW kinstype=BOTH 
<TRAJ> COORDINATES = X Y Y Z W 
<AXIS_X> 
<JOINT_0> 

<AXIS_Y> 
<JOINT_1> 
<JOINT_2> 

<AXIS_Z> 
<JOINT_3> 

<AXIS_W> 
<JOINT_4>  
  • PCW
  • PCW's Avatar
08 Jul 2024 21:19

BLDC component with 8i20 - how to get to work?

Category: Driver Boards

Can you
1. use you original (qi) setup
2. decouple the motor from the linear axis
3. set the following error limits to huge numbers
4. See if the d term causes a multi-turn runaway

 
  • redeye_joe
  • redeye_joe's Avatar
08 Jul 2024 21:04
Replied by redeye_joe on topic use a older snapon plasma50 for DIY CNC

use a older snapon plasma50 for DIY CNC

Category: Plasmac

will the THCAD10 also work? I think I have a guy that has one I can buy for cheap, I ended up ordering a plamsa cutter that has a 1:1 voltage ratio, so can I use the THCAD10 with an external high voltage resistor?
  • HerrNamenlos123
  • HerrNamenlos123's Avatar
08 Jul 2024 20:50
Replied by HerrNamenlos123 on topic How to diagnose crashing LinuxCNC

How to diagnose crashing LinuxCNC

Category: Installing LinuxCNC

Alright, I found the solution already.

Firstly:
I was able to get debug information out of LinuxCNC by having xinit instead loading a script, that calls LinuxCNC and redirects its output to a file.

Secondly:
It turned out LinuxCNC cannot run as root, however xinit must run as root, which means the script needed to use "sudo -u cnc linuxcnc" to run it as a normal user even though xinit runs it as root.

And thirdly:
There was also an issue where it did not load forever and apparently it was waiting for user input in the console, which was not visible.
In the end it turned out it's a lot easier to run "sudo xinit" in one terminal, to run the xorg server, and in another terminal run linuxcnc manually, thereby not having an issue with root and you can also do user input.

I cannot attach a Screenshot here but it works now and I have LinuxCNC running fullscreen on a Raspberry PI, without a desktop environment.
  • viesturs.lacis
  • viesturs.lacis
08 Jul 2024 20:41 - 08 Jul 2024 20:41
Replied by viesturs.lacis on topic BLDC component with 8i20 - how to get to work?

BLDC component with 8i20 - how to get to work?

Category: Driver Boards

I tried "q" mode.
I am pretty sure that there is something missing in the procedure that I was doing.
I commented out 2 lines that link bldc index-enable pin and sets encoder-offset value.
Started LinuxCNC, let the init process finish, observe bldc.0.offset-measured value, write it down, close LinuxCNC and repeat 2 more times.
Values that I got: 39984, 24798, 49060. Since that is 1000 PPR encoder that would give 4000 counts per shaft turn (1000 counts per electric turn), then those differences of ten thousand counts do not make sense to me.
And what does this offset-measured mean exactly? Distance in encoder counts between what 2 locations? One should be electrical zero of rotor, but what is the other if index is ignored in "q" mode?
Or should I place the motor on index manually and then start LinuxCNC and let it do the init process?
  • Grotius
  • Grotius's Avatar
08 Jul 2024 20:36
Replied by Grotius on topic Trajectory Planner using Ruckig Lib

Trajectory Planner using Ruckig Lib

Category: General LinuxCNC Questions

as two straight segments will always form a planar corner.
Yes this makes it easyer to create a plane from 3 input points and perform fillet operations on that plane.

Edit:
As long as they are not colinear.
  • Grotius
  • Grotius's Avatar
08 Jul 2024 20:35
Replied by Grotius on topic Trajectory Planner using Ruckig Lib

Trajectory Planner using Ruckig Lib

Category: General LinuxCNC Questions

github.com/krcwrhvgyxzqelljes/hal-core

So it seems that 2D fillets are still the norm in tool path segment blending, which gives me the impression that even modern controllers can't blend non-planar segment corners including anything that involves a helix (which is often used for tool entry moves).
I really have no idea. We now can do 95% of blending using clothoids for normal gcode.
For helix and non-planar stuff like tooldir blending, we can use b-spline blending. I think this is logical as long
as the Italian mathmeticians have not provided us the 3d clothoid algo. hihi.


as two straight segments will always form a planar corner.
Yes this makes it easyer to create a plane from 3 input points and perform fillet operations on that plane.

Also it seems kind of silly to have to segment an entire helix when it is really just the beginning and the end that need fillets.
Yes i agree. Just let it be an arc with a z value.

Note, the tool orientation vector and the current TA knot already define a plane:
Yes.

This crossed my mind as well but will only work for small changes in orientation angles. If we have a simple move like this:
G1 X0 A0
G1 x100 A180

To blend this spiral move, we use the b-spline at the X0 and the previous attached curve's end.

Ok i think i have a lot to do tommorrow, i think without wasting a lot off time in investegating as now we know what to do.
  • RMJ fabrication
  • RMJ fabrication
08 Jul 2024 20:32

qtplasmac (Operation Error: hm2/hm2_7i76e.0:) in middle of cut

Category: Plasmac

sensors at the time of error:
 
Also this is how I have my pc mounted with plexiglass. Should I holesaw a vent for it through the plexiglass? 
  • Grotius
  • Grotius's Avatar
08 Jul 2024 20:18
Replied by Grotius on topic Trajectory Planner using Ruckig Lib

Trajectory Planner using Ruckig Lib

Category: General LinuxCNC Questions

Hi Arciera,

After investing more time into the 3d clothoids. I wasn't able to get it work like it would be. So now the
green line is a bspline 3-degree. This works ok.
Let we use this bspline for the toolpath fillets.

You see there is a differance in clothoids and or bspline. The clothoids are bigger curves.
 

So tomorrow i can integrate the b-spline into the trajectory planner, it needs interpolation function etc.
 
  • rodw
  • rodw's Avatar
08 Jul 2024 20:17
Replied by rodw on topic Override set_default_blending

Override set_default_blending

Category: Plasmac

Sorry, went past my bed time!

The only way I got it to work was to set incremental  mode with the M03
def custom_pre_parse(data):
    if data[:3] == 'M07':
        return(f'G91  M3 $0 \nF#<_hal[plasmac.cut-feed-rate]>\n')

And a bit more gymnastics  because you can't always assume G90 is active
 
  • andypugh
  • andypugh's Avatar
08 Jul 2024 20:13

Data transfer LinuxCNC to / from custom board - Solved

Category: Advanced Configuration

Andy,
1) I guess that you connect the 7i73 RS-422 interface to a serial port of the Linux PC,


No, it plugs into the smart-serial expansion port on the 7i95 that you mentioned.

and then enable some sort of 7i73 driver in LinuxCNC that magically establishes the communication link between the two?


"SmartSerial" is pretty smart. If you plug boards in, then they communicate their capabilities and pin names to the main Mesa card and it all just works automatically to create HAL pins that you can then use in your config.
  • meister
  • meister
08 Jul 2024 20:05

LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)

Category: Computers and Hardware

and the icebreaker driver-board (or other FPGA's with fitting PMOD)
  • Cant do this anymore bye all
  • Cant do this anymore bye all's Avatar
08 Jul 2024 20:03
Replied by Cant do this anymore bye all on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)

LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)

Category: Computers and Hardware

You don’t waste anytime getting things done.
  • HerrNamenlos123
  • HerrNamenlos123's Avatar
08 Jul 2024 19:46 - 08 Jul 2024 19:51
How to diagnose crashing LinuxCNC was created by HerrNamenlos123

How to diagnose crashing LinuxCNC

Category: Installing LinuxCNC

I just followed linuxcnc.org/docs/stable/html/getting-st...th_preempt_rt_kernel and installed Raspbian bookworm Lite on a Raspberry 3B, and installed the Preempt-RT Kernel, and then installed LinuxCNC using the install script.

I have no desktop environment and want to run only the LinuxCNC application using the X11 server, without any other bloat.

Now, after installing xorg, i can successfully run LinuxCNC using
sudo xinit linuxcnc $* -- :0 vt$XDG_VTNR


Now, the terminal of the rpi turns into a black window, that renders LinuxCNC fullscreen, without a desktop environment. (Screenshot in Attachments)

However, when I select any config (e.g. sim->axis->axis) and click ok, the window closes and the normal EMC2 splash screen appears for a few seconds, like it should, and then it just closes without any message and the X11 server stops.

Following is the command line output:
> sudo xinit linuxcnc $* -- :0 vt$XDG_VTNR


X.Org X Server 1.21.1.7
X Protocol Version 11, Revision 0
Current Operating System: Linux cnc 6.6.31+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.31-1+rpt1 (2024-05-29) aarch64
Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_headphones=0 snd_bcm2835.enable_headphones=1 snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_hdmi=0  vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  console=ttyS0,115200 console=tty1 root=PARTUUID=6396eb0b-02 rootfstype=ext4 fsck.repair=yes rootwait cfg80211.ieee80211_regdom=GB
xorg-server 2:21.1.7-3+rpt2+deb12u7 (https://www.debian.org/support)
Current version of pixman: 0.42.2
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Mon Jul  8 21:42:58 2024
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
xinit: connection to X server lost

waiting for X server to shut down (II) Server terminated successfully (0). Closing log file.


And here is the same command with a script that just echos "hi":
sudo xinit ./test.sh $* -- :0 vt$XDG_VTNR


X.Org X Server 1.21.1.7
X Protocol Version 11, Revision 0
Current Operating System: Linux cnc 6.6.31+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.31-1+rpt1 (2024-05-29) aarch64
Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_headphones=0 snd_bcm2835.enable_headphones=1 snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_hdmi=0  vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  console=ttyS0,115200 console=tty1 root=PARTUUID=6396eb0b-02 rootfstype=ext4 fsck.repair=yes rootwait cfg80211.ieee80211_regdom=GB
xorg-server 2:21.1.7-3+rpt2+deb12u7 (www.debian.org/support)
Current version of pixman: 0.42.2
        Before reporting problems, check wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Mon Jul  8 21:44:26 2024
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
hi
xinit: connection to X server lost

waiting for X server to shut down (II) Server terminated successfully (0). Closing log file.
[/code]

So, as you can see, command line output is printed directly and LinuxCNC does not produce any.

How can I diagnose this issue? If LinuxCNC stops without any command line output, can I find a log file somewhere? Or can I enable some debug features?

Thank you for any answers!
  • ffffrf
  • ffffrf
08 Jul 2024 19:32 - 08 Jul 2024 19:35

Controlling mains 0-9v sherline lathe spindle mesa 7i96s

Category: Turning

But the 7i96s manual says that spindle + has to be between 5-20v and spindle- has to be between 5-20V - so how do you get a range of 0-9v from that? Unless the manual means that the difference has to be between 5 - 20v?

Or can you connect spindle+ to 9v and spindle- to negative 9 voltsand use 50% of the PWM range?
Displaying 25171 - 25185 out of 25526 results.
Time to create page: 0.766 seconds
Powered by Kunena Forum