Advanced Search

Search Results (Searched for: )

  • danielb744
  • danielb744
08 Jul 2024 16:00
Linuxcnc xyz jitter when ide was created by danielb744

Linuxcnc xyz jitter when ide

Category: General LinuxCNC Questions

Hello everyone, I'm new to linuxcnc. I testing a new setup with stepper motors and mesa7i96s, it is working fine but at idle the xyz starts jittering even after homing the axis. This cause a vibration on the stepper motors. Obviously my stepper motors don't feedback the position to Mesa controller hence I don't understand why this is happening. Attach a 3 second video to show the issue 

Grateful if you could shed some light on this.

 
  • ffffrf
  • ffffrf
08 Jul 2024 16:00

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

Category: Turning

Hello,

    I am trying to control my sherline lathe spindle. It uses a potentiometer that is wired to mains. I have been looking at older threads for people who have done this but I am still a little unclear on the best approach. 

   It seems mesa 7i96s has a 5-20v isolated analog output - but I would need to convert thisto 0-9v to driver the sherline - what is the easiest way to go about this? I have read that people opted to use a firmware that gives the mesa an extra pwm on stepgen4 and do a pwm to analog conversion board such as spinx1A - but even with the spinx, how do you get its range of 5v - 21 to convert to linear 0-9v? Could you use something like a dc-dc buck converter (xl4015 or LM2596S)? Want to make sure I am doing things as safely as possible.
 
  • PCW
  • PCW's Avatar
08 Jul 2024 14:37

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

Category: Driver Boards

Can you try the non-index initialization ((q) mode?
I really cannot see how to get a full runaway unless the
initial angle is wrong.

When you say a runaway, do you mean continuous spinning?
(this would mean the encoder is working)

Loss of control (which is different than a runaway) may result
from  encoder issues. (lost counts etc)

You may need to disconnect the drive from the linear axis
and set huge following error limits to debug this fully
  • slowpoke
  • slowpoke
08 Jul 2024 14:16

Data transfer LinuxCNC to / from custom board - Solved

Category: Advanced Configuration

Well thanks to spumco for providing this link...
spumco post=294853 userid=28776

github.com/AlexmagToast/LinuxCNC_ArduinoConnector

I now have a little nano board communicating with HAL both inputs and outputs. So I just need to port the communication code from the nano test board into my ARM project and rejig the messages a bit and with a touch of luck I should have bidirectional data flow from HAL to my board. Hopefully the .py script is easy on the Linux overhead.
  • viesturs.lacis
  • viesturs.lacis
08 Jul 2024 14:07
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 did some more tests - I still get runaways. This time I paid attention to bldc.0.rotor-angle and bldc.0.phase-angle values and I did little fiddle with bldc.0.drive-offset parameter.
Difference between rotor-angle and phase-angle is 0.25 or 0.75, quarter of electrical revolution or 90 degrees. And it does not change if drive-offset parameter value is changed. I tried 0, 45, 90 and -30 degrees.
What is relation between rotor-angle, phase-angle and drive-offset in BLDC component?
  • Aciera
  • Aciera's Avatar
08 Jul 2024 13:48
Replied by Aciera on topic Override set_default_blending

Override set_default_blending

Category: Plasmac

have you tried not calling 'self' as an argument:
def set_default_blending_new():
    blend = self.blendTolerance * self.unitMultiplier
    self.gcodeList.append(f'G91 G64 P{blend}')
    self.pathBlend = True
self.set_default_blending = set_default_blending_new
  • rodw
  • rodw's Avatar
08 Jul 2024 13:30
Replied by rodw on topic Override set_default_blending

Override set_default_blending

Category: Plasmac

Good try but no go It fixed the error but did nothing! 

SO back to the python error.
  • 4ndr344
  • 4ndr344
08 Jul 2024 13:28
Replied by 4ndr344 on topic Mori Seiki MV-Junior Retrofit

Mori Seiki MV-Junior Retrofit

Category: Milling Machines

This might sound stupid. Ive just done a similar job as you although I didn't bother with any mechanical parts as my jr has been used in a school and is still like new, only problem I have is I have one pice of metal I can't find out where goes.
Do you have any idea where this goes.
Thanks in advance for any help!
  • Aciera
  • Aciera's Avatar
08 Jul 2024 13:23
Replied by Aciera on topic Override set_default_blending

Override set_default_blending

Category: Plasmac

maybe try:
def custom_pre_parse(data):
    if data[:3] == 'M07':
        return(f'M3 $0 \nF#<_hal[plasmac.cut-feed-rate]>\n')
    if data[:3] == 'M08':
        return(f'M5 $0\n') 
    if data[:3] == 'G91':
        return(None) 
    if data[:3] == 'G64':
        return(f'G91\n\n{data}'
    return(data)   
self.custom_pre_parse = custom_pre_parse
  • rodw
  • rodw's Avatar
08 Jul 2024 13:21
Replied by rodw on topic Override set_default_blending

Override set_default_blending

Category: Plasmac

Thanks, that fixed the M07/M08

This is the error I get when I uncomment the set_default_blending_new
Traceback (most recent call last):
  File "/usr/bin/qtplasmac_gcode", line 1439, in <module>
    app = Filter(sys.argv)
          ^^^^^^^^^^^^^^^^
  File "/usr/bin/qtplasmac_gcode", line 153, in __init__
    self.process_file()
  File "/usr/bin/qtplasmac_gcode", line 244, in process_file
    line = self.parse_code(line)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/qtplasmac_gcode", line 308, in parse_code
    self.set_default_blending()
TypeError: set_default_blending_new() missing 1 required positional argument: 'self'

 
  • Aciera
  • Aciera's Avatar
08 Jul 2024 13:12 - 08 Jul 2024 13:19
Replied by Aciera on topic Override set_default_blending

Override set_default_blending

Category: Plasmac

As for why the 'M07' and 'M08' are still there:
# for custom parsing before standard parsing
def custom_pre_parse(data):
    if data[:3] == 'M07':
        return(f'M3 $0 \nF#<_hal[plasmac.cut-feed-rate]>\n{data}')
    if data[:3] == 'M08':
        return(f'M5 $0\n\n{data}')        
    if data[:3] == 'G91':
        return(None)    
    return(data)          
self.custom_pre_parse = custom_pre_parse


Note how your code will attach the original string (ie 'M07' and 'M08') stored in the variable 'data' to the return string, so try this:
def custom_pre_parse(data):
    if data[:3] == 'M07':
        return(f'M3 $0 \nF#<_hal[plasmac.cut-feed-rate]>\n')
    if data[:3] == 'M08':
        return(f'M5 $0\n') 
    if data[:3] == 'G91':
        return(None) 
    return(data)   
self.custom_pre_parse = custom_pre_parse
As for the other problem, what is the error you are getting?[/code][/code]
  • NTULINUX
  • NTULINUX's Avatar
08 Jul 2024 12:53 - 08 Jul 2024 15:06
Replied by NTULINUX on topic New and Working RTAI debs for 2.9

New and Working RTAI debs for 2.9

Category: Installing LinuxCNC

The LinuxCNC debs are the latest git checkout of the 2.9 branch as of a few days ago with some minor modifications. :)

List of changes:

github.com/NTULINUX/linuxcnc-rtai/commits/ntulinux/2.9-rtai/

Hey, I just wanted to say thanks to everyone testing these out and being part of the RTAI project. I spent a lot of time on RTAI and making improvements over the years and it's great to see that it's still very much alive and kicking in LinuxCNC.
  • rodw
  • rodw's Avatar
08 Jul 2024 12:20
Override set_default_blending was created by rodw

Override set_default_blending

Category: Plasmac

Hi guys, I want to make QTplasmac's custom filter insert a G91 in front of the G64 command but I get an error. This is what I have now to override the method
def set_default_blending_new(self):
    #return(f'G91 G64 P0.1\n\n{data}')
    blend = self.blendTolerance * self.unitMultiplier
    self.gcodeList.append(f'G91 G64 P{blend}')
    self.pathBlend = True
self.set_default_blending = set_default_blending_new  

Can somebody help me straight please?

The actual reason for this is that the files from the nesting program is programmed in G91 but where QTP inserts the  G53 command to move to the top of the Z axis, it  is not permitted in G91 incremental mode. So I want to replace the G91 with G90 and then put the G91 back after you have made that change. Open to other methods. 

Gcode example and filter  attached.I have been able to replace the M07 and M08 with M3/M5 and insert the plasmac feedrate. I am also not sure why the M07 and M08 are still there.



 

File Attachment:

File Name: 10mmcleats.ngc
File Size:1 KB

File Attachment:

File Name: custom_filter.py
File Size:1 KB
  • tommylight
  • tommylight's Avatar
08 Jul 2024 10:52
  • Aciera
  • Aciera's Avatar
08 Jul 2024 10:51

Is it possible to use one servo motor as both spindle and C-axis using Ethercat?

Category: EtherCAT

I suggested to ask in the Ethercat section as it did not seem to attract the usual Ethercat users.
If you could move the original thread
forum.linuxcnc.org/38-general-linuxcnc-q...indle-to-axis#304650
over to the EtherCAT section and delete this one then that would be much better.
Thanks
Displaying 25411 - 25425 out of 25530 results.
Time to create page: 0.474 seconds
Powered by Kunena Forum