Advanced Search

Search Results (Searched for: )

  • Aciera
  • Aciera's Avatar
15 Sep 2024 11:54 - 15 Sep 2024 11:56
Replied by Aciera on topic getting spindle speed in python

getting spindle speed in python

Category: General LinuxCNC Questions

it's giving me some errors


so what errors do you get?


[edit]
Sharing your python code might also be helpful.
  • rodw
  • rodw's Avatar
15 Sep 2024 11:39
Replied by rodw on topic Showstopper Plasma Cutter retrofit

Showstopper Plasma Cutter retrofit

Category: Show Your Stuff

That seems a bit odd as default plasmac configs don't use the LinuxNC internal probing, they usually use external offsets.

But isn't plasmac.ohmic-enable only enabled when ohmic probing? We monitor that too.
  • phillc54
  • phillc54's Avatar
15 Sep 2024 11:30
Replied by phillc54 on topic Showstopper Plasma Cutter retrofit

Showstopper Plasma Cutter retrofit

Category: Show Your Stuff

Deleting the var file was a placebo. When you receive that error, it's because the ohmic probe tripped prior to reaching probe height. 

This cannot happen. Ohmic sensing monitors motion.motion-type and can only activate when linuxcnc is actually probing, If its triggering, it has to be the breakaway or float switch.

That seems a bit odd as default plasmac configs don't use the LinuxNC internal probing, they usually use external offsets.
  • rockcnc
  • rockcnc
15 Sep 2024 11:12
getting spindle speed in python was created by rockcnc

getting spindle speed in python

Category: General LinuxCNC Questions

Hello everyone
I want to read spindle speed in Python, but it's giving me some errors and not lunching linuxcnc
I tried it as the documentary said but don't know why it isn't working 
I'm reading some other states at the same time, but whenever I add  spindle_speed(returns float) - spindle speed value, rpm, > 0: clockwise, < 0: counterclockwise. its giving me errors
  • hmnijp
  • hmnijp
15 Sep 2024 11:07
Replied by hmnijp on topic Problems with Lichuan Ethercat servo drive

Problems with Lichuan Ethercat servo drive

Category: EtherCAT

A few things left to do is to set a "homed" flag for the axes when enabling the machine, so I don't need to do the button press manually. If someone has an idea how to correctly set this up, any help is much appreciated.
 


you can do it like this
loadrt flipflop names=flip-is-on
addf flip-is-on servo-thread

net is-on       halui.machine.is-on  =>  flip-is-on.set
net is-on-reset motion.is-all-homed  =>  flip-is-on.reset
net go-home     flip-is-on.out       =>  halui.home-all
  • rodw
  • rodw's Avatar
15 Sep 2024 11:04
Replied by rodw on topic Showstopper Plasma Cutter retrofit

Showstopper Plasma Cutter retrofit

Category: Show Your Stuff

Deleting the var file was a placebo. When you receive that error, it's because the ohmic probe tripped prior to reaching probe height. 

This cannot happen. Ohmic sensing monitors motion.motion-type and can only activate when linuxcnc is actually probing, If its triggering, it has to be the breakaway or float switch.
  • JT
  • JT's Avatar
15 Sep 2024 10:59
Replied by JT on topic scorbot-er-3

scorbot-er-3

Category: Installing LinuxCNC

You will need a real time kernel to run LinuxCNC.

Note: Using POSIX non-realtime
This means you're using a non-realtime kernel.

JT
  • rebelx
  • rebelx
15 Sep 2024 10:17 - 15 Sep 2024 10:18
Replied by rebelx on topic LMDE6 or Mint 22 ??

LMDE6 or Mint 22 ??

Category: Installing LinuxCNC

I would like to revoke the previous post for now, as I need to do some further testing.
  • machinedude
  • machinedude's Avatar
15 Sep 2024 09:55

What do you really get for a $350 desk top engraver ?

Category: Show Your Stuff

 

after testing one thing was clear the most improvement came from added torque. i found this formula for torque vs micro stepping. i started with 4,000 and went up to 12,800 to test for resolution problems and did not see any change between to two.

using this formula i would have 3.2 times more the torque running at the 4,000 micro steps setting compared to 12,800

i need to test more with this and see what i figure out.
  • Aciera
  • Aciera's Avatar
15 Sep 2024 08:39 - 15 Sep 2024 08:42
Replied by Aciera on topic simpockets.tbl in tests

simpockets.tbl in tests

Category: General LinuxCNC Questions

This is from 'tests/README':
.
.
.
Running the tests
~~~~~~~~~~~~~~~~~
Currently, tests only work with the "run in place" configuration. They
can be run by executing (from the top emc2 directory)
scripts/runtests tests
A subset of the tests can also be run:
scripts/runtests tests/xyz tests/a*
.
.
.

So it seems that to run a particular test you need to:

1. Have a RIP installation
2. navigate to the installation directory of your RIP installation
3. run your test with:
'scripts/runtests tests/toolchanger/toolno-pocket-differ/random/'
  • Sandro
  • Sandro
15 Sep 2024 08:02 - 15 Sep 2024 08:02
Replied by Sandro on topic Problems with Lichuan Ethercat servo drive

Problems with Lichuan Ethercat servo drive

Category: EtherCAT

Hi hmnijp

Thank you very much for pointing it out. I was completely unaware.

Maybe one more thing worth of note: I have hooked the opmode-display into the e-stop logic. This way I am only able to enable the machine, once the servos are ready. The Lichuans need about 5 seconds to sync their current position back to LCNC at startup. When you were to enable the machine within this timeframe, you get a joint following error once the sync occurs. Because the machine is now in e-stop, I cannot enable it prematurely. Maybe not the most elegant way, but it does the job.

A few things left to do is to set a "homed" flag for the axes when enabling the machine, so I don't need to do the button press manually. If someone has an idea how to correctly set this up, any help is much appreciated.

Besides that, I'd like to enable spindle orient. Here I am missing an index pulse to reset the encoder count, when orient is being enabled.
  • Aciera
  • Aciera's Avatar
15 Sep 2024 08:01
Replied by Aciera on topic M66 disable time-function Help

M66 disable time-function Help

Category: G&M Codes

I'm not aware of a way to disable the timeout but you should be able to substantially increase the Q value (eg Q3600 would be a timeout of one hour)
  • anfänger
  • anfänger's Avatar
15 Sep 2024 07:54 - 15 Sep 2024 09:30

Read and write qtpyvcp widgets form GCode or access numbered parameters from py

Category: QtPyVCP

There is still python (even though I am no friends of I simply prefer brackets). Setting the widgets should work here, for not being able to access the parameters I think setting them in the ini might be neater.
I glued together a script
#python script to write values from the ini to the userinterface
import configparser
import sys
from probe_basic.probe_basic import ProbeBasic

# fucntion to read ini file
def read_ini_values(file_path, section):
    config = configparser.ConfigParser()
    config.read(file_path)
    
    if section not in config:
        print(f"Section {section} not found in the ini file.")
        return {}
    
    return config[section]

# Function, to assingn values from INI-File to the widgets
def assign_values_to_widgets(self, ini_values):
    for key, value in ini_values.items():
        widget = ui.findChild(QtWidgets.QWidget, key)
        if widget:
            # check for Widget-Type and assign corresponding values
            if isinstance(widget, QtWidgets.QLineEdit):
                widget.setText(value)
            elif isinstance(widget, QtWidgets.QSpinBox):
                widget.setValue(int(value))
            elif isinstance(widget, QtWidgets.QCheckBox):
                widget.setChecked(value.lower() == 'true')
            elif isinstance(widget, QtWidgets.QLabel):
                widget.setText(value)

# main function
def main():
    # read ini file
    ini_file = 'probe_basic.ini'
    section = 'QTPYVCP_Values'
    ini_values = read_ini_values(ini_file, section)

    if not ini_values:
        print("No values found or section missing.")
        return
class CustomProbeBasic(ProbeBasic):
    """Main window class for the ProbeBasic VCP."""
    def __init__(self, *args, **kwargs):
        super(CustomProbeBasic, ui).__init__(*args, **kwargs)

    
    # assign INI values to the Widgets
    assign_values_to_widgets(ui, ini_values)

    
    sys.exit(app.exec_())

if __name__ == "__main__":
    main()
    

but I get an error:
[qtpyvcp.plugins][ERROR]  Failed to find plugin with ID 'status' (__init__.py:99)
Or is there another way to keep values in widgets in qtpyvcp persistent?
  • Aciera
  • Aciera's Avatar
15 Sep 2024 07:53
Replied by Aciera on topic scorbot-er-3

scorbot-er-3

Category: Installing LinuxCNC

I get the same error when I try to run the config without hardware (I don't have a Scorbot) so I would assume that this error indicates a problem related to communication with the Scorbot hardware. Maybe try running 'dmesg' and see if you can see any related errors in the output.
  • machinedude
  • machinedude's Avatar
15 Sep 2024 07:32

What do you really get for a $350 desk top engraver ?

Category: Show Your Stuff

i messed with capture feature but i think i should probably be do that with a motors off the machine. the higher end closed loop systems seem have a inertia ratio feature that you can test under load but these don't seem to have this feature.

without detailed information on the settings and how it relates to the settings in the software i felt like i was flying blind honestly. i never did see a simple wave form and seen what looked like oscillation but i have no idea if i was even close to using things the right way.? i thought i seen something about the jogging with motion studio for only for bench testing with no laod?
Displaying 21256 - 21270 out of 24591 results.
Time to create page: 1.055 seconds
Powered by Kunena Forum