Advanced Search

Search Results (Searched for: )

  • rdtsc
  • rdtsc's Avatar
Today 01:35

Ext hard buttons duplicate Power_PB and Reset

Category: Flex GUI

Hi ts,

Check the FlexGUI section about HAL pins: gnipsel.com/linuxcnc/flexgui/hal.html  Example at bottom.

To link something from HAL into FlexGUI:
* Note that your main HAL file is for defining the bulk of the connections.  Here we're talking about a -postgui.hal file, which specifically only gets loaded after the GUI is available, and only contains GUI-related things.  So your .ini file must have an entry like POSTGUI_HALFILE = mypostgui.hal. This is the -postgui.hal file we're talking about.
1. Give a button a Dynamic Property type of String, name of function, and value of hal_pin.  This lets FlexGUI know that this button will do something in your -postgui.hal file.
2. Give the button another Dynamic Property of String, named pin_name, then set that value to the name you want to be visible in your -postgui.hal file, like DriveReset for example.  Save your .ui in QtDesigner.
3. Open the -postgui.hal file, and make the link like this:    net   whoa_drive   DriveReset   =>    hm2_7c80.0.ssr.00.out-04    or whatever connection you like. Then when you press that button, it will affect the HAL device you have connected it to.
  • andypugh
  • andypugh's Avatar
Today 00:49
Replied by andypugh on topic Schaublin 125-CNC retrofit.

Schaublin 125-CNC retrofit.

Category: Turning

hal:turret:1: character unknown '  '

 

Unhelpfully, it works for me...
andypugh@Boookworm:~/linuxcnc-dev$ halcompile --install ../turret.comp
Compiling realtime turret.c
Linking turret.so
cp turret.so /home/andypugh/linuxcnc-dev/rtlib/


 
  • rdtsc
  • rdtsc's Avatar
Today 00:43

rpi5/Trixie and many PyQt6 messages about QPalette

Category: General LinuxCNC Questions

Hi, on my rpi5/7c80 with Debian Trixie, PyQt6 apps like to display weird QPalette messages like this:
...
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:
# 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
  • tommylight's Avatar
Today 23:58
Replied by tommylight on topic MotionMaster Upgrade

MotionMaster Upgrade

Category: General LinuxCNC Questions

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
  • motionmasterupgrade
Today 23:37
Replied by motionmasterupgrade on topic MotionMaster Upgrade

MotionMaster Upgrade

Category: General LinuxCNC Questions

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
  • rodw's Avatar
Today 22:31

Gmoccapy scaling up each time you exit tool table - 2.9.8 trixie

Category: Gmoccapy

RTAI? isn't your lathe using a Mesa card?
Why RTAI?
  • rodw
  • rodw's Avatar
Today 21:29
Replied by rodw on topic Ethercat SDOS to XML

Ethercat SDOS to XML

Category: EtherCAT

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
  • RotarySMP's Avatar
Today 21:19
Replied by RotarySMP on topic Schaublin 125-CNC retrofit.

Schaublin 125-CNC retrofit.

Category: Turning

Thanks Andy, I'll test that tomorrow to see if it happens in other screens.
  • RotarySMP
  • RotarySMP's Avatar
Today 21:17

Gmoccapy scaling up each time you exit tool table - 2.9.8 trixie

Category: Gmoccapy

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
  • tommylight's Avatar
Today 20:54

Gmoccapy scaling up each time you exit tool table - 2.9.8 trixie

Category: Gmoccapy

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
  • andypugh's Avatar
Today 20:54
Replied by andypugh on topic Schaublin 125-CNC retrofit.

Schaublin 125-CNC retrofit.

Category: Turning

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
  • tommylight's Avatar
Today 20:42
Replied by tommylight on topic LinuxCNC python

LinuxCNC python

Category: General LinuxCNC Questions

@Don,
Do those replies belong on this topic, or am i missing something?
  • spumco
  • spumco
Today 20:33
Replied by spumco on topic MotionMaster Upgrade

MotionMaster Upgrade

Category: General LinuxCNC Questions

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
  • backyardengineer
Today 20:28
Replied by backyardengineer on topic Closed loop - encoder/position not updating while moving

Closed loop - encoder/position not updating while moving

Category: HAL

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
  • RotarySMP's Avatar
Today 20:27

Gmoccapy scaling up each time you exit tool table - 2.9.8 trixie

Category: Gmoccapy

Hi Guys,

I updated my lathe to 2.9.8 on Trixie with RTAI. 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
Displaying 1 - 15 out of 17510 results.
Time to create page: 0.191 seconds
Powered by Kunena Forum