Search Results (Searched for: )

  • rdtsc
03 Apr 2026 00:43
Hi, on my rpi5/7c80 with Debian Trixie, PyQt6 apps like to display weird QPalette messages like this:
Code:
... hm2/hm2_7c80.0:     IO Pin 049 (P1-17/DB25-09): IOPort hm2/hm2_7c80.0:     IO Pin 050 (P1-19/DB25-10): IOPort hm2/hm2_7c80.0:     IO Pin 051 (P1-21/DB25-11): Encoder #1, pin A (Input) hm2/hm2_7c80.0:     IO Pin 052 (P1-23/DB25-12): Encoder #1, pin B (Input) hm2/hm2_7c80.0:     IO Pin 053 (P1-25/DB25-13): Encoder #1, pin Index (Input) hm2/hm2_7c80.0: registered Found file(REL): ./vc-p2s.hal virtual const QPalette* Qt6CTPlatformTheme::palette(QPlatformTheme::Palette) const QPlatformTheme::SystemPalette virtual const QPalette* Qt6CTPlatformTheme::palette(QPlatformTheme::Palette) const QPlatformTheme::ToolButtonPalette virtual const QPalette* Qt6CTPlatformTheme::palette(QPlatformTheme::Palette) const QPlatformTheme::ButtonPalette virtual const QPalette* Qt6CTPlatformTheme::palette(QPlatformTheme::Palette) const QPlatformTheme::CheckBoxPalette virtual const QPalette* Qt6CTPlatformTheme::palette(QPlatformTheme::Palette) const QPlatformTheme::RadioButtonPalette virtual const QPalette* Qt6CTPlatformTheme::palette(QPlatformTheme::Palette) const QPlatformTheme::HeaderPalette virtual const QPalette* Qt6CTPlatformTheme::palette(QPlatformTheme::Palette) const QPlatformTheme::ItemViewPalette virtual const QPalette* Qt6CTPlatformTheme::palette(QPlatformTheme::Palette) const QPlatformTheme::MessageBoxLabelPelette virtual const QPalette* Qt6CTPlatformTheme::palette(QPlatformTheme::Palette) const QPlatformTheme::TabBarPalette virtual const QPalette* Qt6CTPlatformTheme::palette(QPlatformTheme::Palette) const QPlatformTheme::LabelPalette virtual const QPalette* Qt6CTPlatformTheme::palette(QPlatformTheme::Palette) const QPlatformTheme::GroupBoxPalette virtual const QPalette* Qt6CTPlatformTheme::palette(QPlatformTheme::Palette) const QPlatformTheme::MenuPalette virtual const QPalette* Qt6CTPlatformTheme::palette(QPlatformTheme::Palette) const QPlatformTheme::MenuBarPalette virtual const QPalette* Qt6CTPlatformTheme::palette(QPlatformTheme::Palette) const QPlatformTheme::TextEditPalette virtual const QPalette* Qt6CTPlatformTheme::palette(QPlatformTheme::Palette) const QPlatformTheme::TextEditPalette virtual const QPalette* Qt6CTPlatformTheme::palette(QPlatformTheme::Palette) const QPlatformTheme::TextLineEditPalette virtual const QPalette* Qt6CTPlatformTheme::palette(QPlatformTheme::Palette) const QPlatformTheme::ToolTipPalette virtual QVariant Qt6CTPlatformTheme::themeHint(QPlatformTheme::ThemeHint) const virtual const QPalette* Qt6CTPlatformTheme::palette(QPlatformTheme::Palette) const QPlatformTheme::SystemPalette Shutting down and cleaning up LinuxCNC... task: 948 cycles, min=0.000004, max=0.012919, avg=0.009934, 0 latency excursions (> 10x expected cycle time of 0.010000s) hm2: unloading Note: Using POSIX realtime mycnc@mycnc:~ $ 

This does not happen at all for PyQt5 apps - specifically only PyQt6.  While not a problem per se, I looked for a way to eliminate these messages.  From what little I could gather, it has to do with Qt6 platform theme.  Perhaps it is not installed correctly or is missing a component, as this doesn't happen for at least one other rpi5/Trixie user.  Anyways, a work-around was to add the following environment variable to the end of ~/.bashrc:
Code:
# okay weird one here... this squelches 17 QPalette messages from PyQt6 apps... export QT_QPA_PLATFORMTHEME='kde **.**'

You can then either restart or issue a  source ~/.bashrc  in the terminal to reload that.  Apparently this may make PyQt6 apps appear a little differently (more like the kde theme?)  I haven't noticed a difference but haven't looked too hard.  But more importantly, it removed all of those notices about QPalette.

There is likely some other, better method for actually fixing the issue, whatever that may be... but this does the trick for now. :)
  • tommylight
02 Apr 2026 23:58
Replied by tommylight on topic MotionMaster Upgrade

I'll run the raspi off a power bank in case it overloads the system. 
On a 10-20KW machine, that has absolutely no effect! Raspi uses about 5-10W at most, insignificant in the scale of things.
Although, i would never use a raspi to drive such machines, i use older Enterprise computers, plenty of those around and come with much more power and very good electronics inside that very, very rarely fails.
  • motionmasterupgrade
02 Apr 2026 23:37
Replied by motionmasterupgrade on topic MotionMaster Upgrade

Single-phase to the machine, and use 220vac step/dir drives and a 220 vac single-phase-in, 3-phase-out VFD for your spindle.

This is what I came up with. I can easily send 240V single phase on a 30amp circuit. That plus a 750kvA 32V boost guarded by a 30amp breaker on 10AWG should supply me with enough power for all the drives as they are right now. That's $200bucks for the transformer plus some scrap wire lying around. I want to get the movement of the machine sorted out while the swivel head takes its time to get here on a boat. I believe I'll need an analog mesa card for this setup. The swivel head will have Yaskawa brushless servos. For these, and the rotaries, I will just run them on step/dir drivers. They can be another 20amp 220V circuit. That leaves me with 30amp - 40amp 220 single phase to feed a spindle. Thats a 6-hp spindle - much more than I need. I'll run the raspi off a power bank in case it overloads the system. 

Thanks for reminding me to do this first. This was important. It would have been silly to work on other things not knowing if I could power it all up. Taking apart the control box next. I've confirmed the Fagor controller is working, and that means I can put it on FB marketplace.
  • rodw
02 Apr 2026 22:31
RTAI? isn't your lathe using a Mesa card?
Why RTAI?
  • rodw
02 Apr 2026 21:29
Replied by rodw on topic Ethercat SDOS to XML

Have you tested the module in Twincat yet?
If it runs without any issues there, you could use Wireshark to monitor the communication. Maybe that will turn something up.
I do not use Windows here! 
Well I sometimes did until this last week dual booting to run Anycubic Slicer Next for my 3D printer but now I have it working under Linux so I am never booting into Windows again just to be beseiged with ads. 
  • RotarySMP
02 Apr 2026 21:19
Replied by RotarySMP on topic Schaublin 125-CNC retrofit.
Thanks Andy, I'll test that tomorrow to see if it happens in other screens.
  • RotarySMP
02 Apr 2026 21:17
Yeah, you warned me.

After I tried to update 2.8.2 I screwed something up, and decided I may as well then pull the SSD and do a clean install. 
If this is not easily fixible, I guess I could do a clean install of 2.8. and wheezy.
Cheers,
Mark
  • tommylight
02 Apr 2026 20:54

I updated my lathe to 2.9.8 on Trixie with RTAI.
I read that and thought "RTAI, resolution issues....", but nooo, you had to find something i have never seen, and it irrevocably seems a GmoccaPy issue.
This keeps reminding me of an American saying: never change a wining horse.
I am i am not helping.
  • andypugh
02 Apr 2026 20:54
Replied by andypugh on topic Schaublin 125-CNC retrofit.

I got the Schaublin updated to Trixie and 2.9.8.

I really like the update you did to the look and button layout of Lathe macros. Thanks.

 
Be a bit careful with them, I found a bug with my system (which uses Touchy, so may be different). 
Pressing the hardware "go" button was running the lathe macro even when the MDI window or Auto (G-code) window were at the front. 
This might not happen with Gmoccapy. 
It was previously prevented by code in the GUI telling the Glade panel when it had focus, but the signalling method used is't available in GTK3. 

Also, the problem went away after a restart, so I haven't been able to work out the cause. 

I may be the only one using the macros with Touchy...
  • tommylight
02 Apr 2026 20:42
Replied by tommylight on topic LinuxCNC python
@Don,
Do those replies belong on this topic, or am i missing something?
  • spumco
02 Apr 2026 20:33
Replied by spumco on topic MotionMaster Upgrade
I think you are on the right track.

Single-phase to the machine, and use 220vac step/dir drives and a 220 vac single-phase-in, 3-phase-out VFD for your spindle.

Based on some low-cost (maybe Stepperonline A6) servo specs, you've probably got enough power budget to realistically drive 4/ea 1kw servos (XYYZ), a couple of 750w servos (A&C), plus a 4-6kw VFD for a decent ATC spindle.

If you want a big vacuum for hold-down or dust collection, you might need to put that on a separate circuit.

I'd recommend planning on using timer relays (hardware or software-driven) for the drive and VFD main contactors.  Cheaper drives (and some expensive ones, too) don't have great inrush-limiting features and turning everything all on at once can strain (or overload) the supply circuit.  If you break up the inrush over 2-3 'stages' with some on-delay timers it'll be a lot more gentle.

Clear the estop and you'll hear clunk...clunk...clunk... over a few seconds before everything is ready.
  • backyardengineer
02 Apr 2026 20:28
Replied by backyardengineer on topic Closed loop - encoder/position not updating while moving
Hi, my bad i did not mean COM but parallel port (must be a habit from my Arduino days). I did try to put the encoders on the second par port (parport 1) and for some reason it works now (parport 0 = stepper outputs, parport1 = encoder inputs). No idea why, i don´t think it is grounding related though.
As for the encoders: They are linear scales (5µm), my math was 5000 to 10000PPS * 0.005mm * 60 = 1500 to 3000 mm/min. The spindle has a 400PPR Encoder and max spindle speed is 3000rpm.
I still have to get the inputs on parport0 working to read the spindle encoder. Tomorrow i can send pics of the wiring.
  • RotarySMP
02 Apr 2026 20:27 - 03 Apr 2026 04:49
Hi Guys,

I updated my lathe to 2.9.8 on Trixie with Preemt-RT. Now Gmoccapy appears to have a bug causing it to scale up each time you exit the tool table or the max preview. window size setting also doesn't work correctly, as the screen reduces in height when commanded to increase in either width or height.

I made a video to show the behavior. 


Like this, the lathe is nearly unusable, as I have to keep shutting down and restarting LinuxCNC to reset it. Any suggestions how to correct this greatly appreciated.
Cheers,
Mark
  • RotarySMP
02 Apr 2026 20:16
Replied by RotarySMP on topic Schaublin 125-CNC retrofit.
Thanks for that, I was not able to get into the forum for the last couple of days.

I had similar advice from AI, and tried both the solution yours and mine gave and it has not corrected it.

I even used visual code studio, and rewrote the whole program be hand, to ensure there were no secret character codes in there. (See attached file)But the result is still the same.
hal:turret:1: character unknown '  '

Any other suggestions much appreciated. 
Cheers,
Mark
  • motionmasterupgrade
02 Apr 2026 19:41
Replied by motionmasterupgrade on topic MotionMaster Upgrade

Before you make any decisions, you've got to sort out power
 
THat's what I did today:
The VFD takes 480V directly from source (I am going to replace VFD and spindle, so it doesn't matter).
A 480V single phase line powers the DC bus which in turn supplies power to all 4 drives.
The transformer ties two of the lines into a neutral-ground, and outputs 120V to power the controller and peripherals. I replaced this with 120V AC to test if the controllers are working. Was told by seller that it takes a while to boot. It's abootin as I write this.

The servos are all 140V 65amp max. I do not need the maximum capacity (I am carving wood, and I am doing low throughput. I was thinking to sell the drives (they are out of production and I imagine someone who is running this machine in a production setting would want parts) and replace them with step/dir ones as someone else had recommended. The VFD takes 3 phase power at 360 to 480. I was wondering if I could just supply 220V power 3 phase to the VFD and have it power a 220V 3 phase spindle. This would make the work a lot easier, or just replace it with a single phase 220V VFD to power a 4ish HP spindle. That would work too. Either way, I really don't see why I should stick to 480V single phase since the part that is drawing power is the spindle which I really do not need.
Displaying 5176 - 5190 out of 11805 results.
Time to create page: 0.165 seconds
Powered by Kunena Forum