Advanced Search

Search Results (Searched for: )

  • Ehsan_R
  • Ehsan_R
15 Feb 2025 21:41

Homing with mb2hal and absolute encoder

Category: General LinuxCNC Questions

I am using a servo motor with an absolute encoder. I have successfully retrieved the encoder data via mb2hal and converted it into the motor shaft angle. Now, I want to use this data solely for homing. The process should be as follows: when a homing command is sent, a serial connection is established, the axis position is set equal to the encoder’s value, and then the serial connection is terminated.
Is this feasible, and how can I implement it?
  • scotta
  • scotta's Avatar
15 Feb 2025 21:38

Remora - Rpi Software Stepping Using External Microcontroller via SPI

Category: Computers and Hardware

scotta thank you so much!

the challenges I face that are left are:

1) homing -> I tried wiring to GND and 3.3v but joint.0.home (maybe it's called different) is never TRUE, I tried using halcmd show pin for that while linuxcnc was running and also live testing the home axis.
[code]27  bit   OUT         FALSE  remora.input.00 ==> X-home   
27  bit   OUT         FALSE  remora.input.01 ==> Y-home   
27  bit   OUT         FALSE  remora.input.02 ==> Z-home   
27  bit   OUT         FALSE  remora.input.03 ==> A-home

[code]I think it's weird that all my inputs are listed as OUT....

2) maybe related maybe unrelated: my A axis (joint3) is continuing to have follow joint problems. I thought maybe the motor or the driver went bad, but I swapped both. I tried several stepgen_maxaccel settings and fooled around with other settings as well.

Of course I appreciate the help so far and yes it's close to working, I was already very happy to see my XYZ axes moving!!!! :)

 
[/code][/code]

Hi, the inputs are "outputs" from the remora-spi component. The way I would approach this is the use halshow to confirm the the inputs are working.

1. ensure you have the inputs in your config.txt file
2. LinuxCNC has come out of eStop so comms are up. You will not see any input state changes unless you are out of eStop
3. Use halshow to monitor your inputs
4. Manually trigger the inputs and that they change state in halshow
5. setup you hal config
  • Sandro
  • Sandro
15 Feb 2025 21:32

THC with Beckhoff EL5101 and THCAD2 => encoder signal loss

Category: Plasmac

Yes, it consistently appears to be around 10ms.

However, I believe I’ve found a workaround. I have noticed, that the EL5101 outputs the encoder period which is an absolutely stable signal. So I wrote a custom component to calculate the frequency based on it, which in turn can be used in PlasmaC. In the attached Halscope screenshot, you can see the troublesome frequency signal with drops from the EL5101 in red, the encoder period in cyan, and the calculated frequency in green.
loadrt period_to_freq   names=period_to_freq-thc
addf period_to_freq-thc servo-thread
net measured-period-thc lcec.0.EL5101_THC.enc-period => period_to_freq-thc.period-in
net plasmac:arc-voltage-in <= period_to_freq-thc.frequency
  • Corne
  • Corne's Avatar
15 Feb 2025 20:58

Error: undefined symbol: hm2_pktuart_setup_rx - while lading custom modbus.so

Category: Driver Boards

I did on both machines. No pktuart (only on the location where I copied your files). So the locate command works, but pretty sure that they are not installed anywhere by linuxcnc
  • Grotius
  • Grotius's Avatar
15 Feb 2025 20:52
Replied by Grotius on topic scurve trajectory planner

scurve trajectory planner

Category: General LinuxCNC Questions

github.com/dkogan/libdogleg

Dogleg runs.
You basicly provide the equatation in a callback function. Then it iterates until result is within treshold.

Startvalue a=1
Startvalue b= 1
Increment a= 1
Increment b = 1

10 = 3 + a x b

This will do
result = left hand - right hand
0 = 10 - 3 + 1 x 1
Finally
0 = 0
  • ihavenofish
  • ihavenofish
15 Feb 2025 20:28
Replied by ihavenofish on topic New ethercat / probe basic control for minimonster

New ethercat / probe basic control for minimonster

Category: CNC Machines

Woo servos arrived, among other things.

So, now the read adventure begins.
  • notJamesLee
  • notJamesLee
15 Feb 2025 20:23
Replied by notJamesLee on topic Tangential Cutter C/A - Following Error/Tuning

Tangential Cutter C/A - Following Error/Tuning

Category: Advanced Configuration

Thank you ill dive into this now, not sure how I hadn't found this before. Cheers.
  • PCW
  • PCW's Avatar
15 Feb 2025 20:22 - 15 Feb 2025 20:54

Error: undefined symbol: hm2_pktuart_setup_rx - while lading custom modbus.so

Category: Driver Boards

So did you

sudo ubdatedb

locate pktuart

(no 0 no * just pktuart )

A "RIP" installation is a Run In Place installation from source.
Its built and runs from a directory in the users home directory.
Its handy because it makes it easy to have different versions of
LinuxCNC on a computer at the same time

EDIT:
 I think pktuart may not exist on a binary LinuxCNC version as its built into hostmot2

Whats strange is that neither mesa_modbus or pktuart code has been changed for at least 2 years
  • Corne
  • Corne's Avatar
15 Feb 2025 20:16

Error: undefined symbol: hm2_pktuart_setup_rx - while lading custom modbus.so

Category: Driver Boards

How frustrating. All your good advice, no result at my side. No pktuart.0

I took another PC installed Debian bookworm. Installed Linuxcnc via the script as mentioned in Installing Linuxcnc (no binary). Installed Linuxcnc dev; build-essential etc.
Exact the same error as where it al started.
and no pktuart...

What do you mean by RIP installation?
  • PCW
  • PCW's Avatar
15 Feb 2025 19:14

Servo Oscillation Issue at ±6.6V 5i25 + 7i77, Analog Control

Category: Basic Configuration

That looks like maybe an electrical/wiring issue with the encoder.

Is differential signaling used?
 
  • Boogie
  • Boogie
15 Feb 2025 19:04 - 15 Feb 2025 20:28

One laptop + several machines using Mesa cards.

Category: Computers and Hardware

Got some videos (or forum thread) of your setup? It sounds very interesting. Tube cutting subject is attracting:)
  • Traken
  • Traken
15 Feb 2025 18:42

Servo Oscillation Issue at ±6.6V 5i25 + 7i77, Analog Control

Category: Basic Configuration

I'm posting screenshots from halscope. I think the encoder had some noise.
  • cmorley
  • cmorley
15 Feb 2025 18:08
Replied by cmorley on topic dragon.var writing variables QtDragon

dragon.var writing variables QtDragon

Category: General LinuxCNC Questions

I am not sure why STARTUP_GCODE doesn't work - an example subroutine would help me investigate.
Usually for this sort of thing a preference file entry would be used. Any reason that you must use gcode variables?
  • cakeslob
  • cakeslob
15 Feb 2025 17:06
  • tommylight
  • tommylight's Avatar
15 Feb 2025 16:28
Replied by tommylight on topic One laptop + several machines using Mesa cards.

One laptop + several machines using Mesa cards.

Category: Computers and Hardware

I do have several machines with multiple configs, meaning one machine has several configs, made things very easy for tube cutters as i set them as normal 3 axis machine and use a config for each diameter tube.
That way, everything is 2D so Inkscape is used for CAM and perimeter is used as width.
In daily use, this saves huge amounts of time.
Displaying 16651 - 16665 out of 20862 results.
Time to create page: 0.466 seconds
Powered by Kunena Forum