Advanced Search

Search Results (Searched for: )

  • andypugh
  • andypugh's Avatar
25 Jul 2025 08:57

Simulating a hm2_eth driver (e.g. mesacard 7i76e)

Category: Driver Boards

You could consider adding this to the Wiki too.

wiki.linuxcnc.org/cgi-bin/wiki.pl?ContributedComponents

Here is how to edit a wiki page:
wiki.linuxcnc.org/cgi-bin/wiki.pl?BasicSteps

FWIW the penguin is called "Chips" (though I don't recall if he capitalises his name)
  • ziggi
  • ziggi's Avatar
25 Jul 2025 05:30

Troubles to get started with SD240 Retrofit

Category: Turning

So I found the AXIS Gui document and if I apply the pins described there to your MPG code, it should be about this

# Set jog-vel-mode to false (joint will move exactly jog-scale units for each count)
setp joint.0.jog-vel-mode 0
setp joint.1.jog-vel-mode 0
setp axis.x.jog-vel-mode 0
setp axis.z.jog-vel-mode 0

# Set jog scale 
setp mpg-scale 1.0
net  mpg-scale joint.0.jog-scale axis.x.jog-scale <= halui.axis.selected.increment
net  mpg-scale joint.1.jog-scale axis.z.jog-scale <= halui.axis.selected.increment

# Joint selection (enable only one at a time)
net mpg-select-x joint.0.jog-enable axis.x.jog-enable <= halui.axis.selected.0
net mpg-select-z joint.1.jog-enable axis.z.jog-enable <= halui.axis.selected.1

# Connect encoder counts to all joints (only enabled one will move)
net mpg-counts  <=  hm2_7i80.0.encoder.03.count
net mpg=counts  joint.0.jog-counts  axis.x.jog-counts
net mpg-counts  joint.1.jog-counts  axis.z.jog-counts

Is this how it could work to use the AXIS-GUI pins instead of an axis and a increment selctor switches?

Sigi
  • grossman83
  • grossman83
25 Jul 2025 04:58
Replied by grossman83 on topic threading - spindle encoder synchonization issues

threading - spindle encoder synchonization issues

Category: Turning

I think I got to the bottom of it. There were some locations I could twist the spindle (and hence spindle encoder) to manually that resulted in continued increases or decrease of the spindle position. This told me it was still noise so I dug into it.

I have no idea why, but on the mesa 7i76 the encoder input can be differential or single ended. I was using it in differential mode because I thought it would be more noise immune. I also had a "backpack" sort of thing on my encoder that made the single-ended outputs 3.3V differential. In this mode it uses a Renesas ISL32173 chip to take in the differential signal through what amounts to a comparator and output a logical signal to some counter in the FPGA. The issue is that the chip is designed to be really sensitive and a differential signal over 0.2V is considered high. That is nuts on a signal that is 3.3V or 5V differential. Hence, despite all my work it was still noise, but I decided to just go back to 5V single-ended at 5V directly out of the encoder and now all is well... despite the noise levels being higher in absolute terms the signal to noise ratio is much much better and I can cut perfect threads! (Yeah I had my scope on it a lot throughout this.)

I don't know why there is no warning in the datasheet about this. 200 mV of noise on a 3.3V-5V signal should NOT be causing this kind of issue. Typical levels of a high bit on 3v3 logic is >2V. I think for some reason they used an RS-422 chip and it was not the right choice in my opinion... especially without a giant flashing warning.

Maybe I'll mention this to Peter at mesanet. They make a great product... but I think this was a bit of an oversight.
  • jor
  • jor's Avatar
25 Jul 2025 02:26

How to install kernel patch? (Moschip 9900)

Category: Installing LinuxCNC

OK i flipped the driver and extended motor wires to 4 feet away. It is not better, in fact is seems a bit worst and stops even quicker
  • smc.collins
  • smc.collins
25 Jul 2025 02:11
Replied by smc.collins on topic threading - spindle encoder synchonization issues

threading - spindle encoder synchonization issues

Category: Turning

1024 count encoder or 4096 encoder ? if it's a 4096 encoder, that's likely having resolution issues,. i ran into a similar issue with my lathe at 1000rpm, i wound up stepping down from a 4096 to a 1024 encoder. also check the max speed rating of the encoder, make sure it can handle the speed
  • tommylight
  • tommylight's Avatar
25 Jul 2025 00:55
Replied by tommylight on topic How to install kernel patch? (Moschip 9900)

How to install kernel patch? (Moschip 9900)

Category: Installing LinuxCNC

Flip the drive upside down and move the motor as far from it as you can, test again.
  • jor
  • jor's Avatar
25 Jul 2025 00:44

How to install kernel patch? (Moschip 9900)

Category: Installing LinuxCNC

I've tested both drivers separately and same issues. I've attached a picture and also a schematic, since I only had yellow wire lol...My grounds seem good, and the pairs from the motor are correct (unless it matters which pair go to direction and which to pulse?) 

drive.google.com/drive/folders/1hJbKoC8d...PaQxFqQY?usp=sharing  

I attached all files in google drive since they are too big; .hal, .ini, and the lspci info if that is helpful. Also in .ini the ferror values are at 10 but I have tried many different ranges of values.

I appreciate your time and help with this.
 
  • JPL
  • JPL
24 Jul 2025 22:47 - 07 Aug 2025 00:53
  • SebastianM
  • SebastianM
24 Jul 2025 20:28
  • MaHa
  • MaHa
24 Jul 2025 18:13
Replied by MaHa on topic Problem G-code?

Problem G-code?

Category: G&M Codes

And here is a diff, what could be modified from left to right
 
  • Yan_moto
  • Yan_moto
24 Jul 2025 17:49 - 24 Jul 2025 17:55

Anyone figured out how to get Trinamic's TMC5160 drivers working with LinuxCNC?

Category: Driver Boards

I connected two TMC5160 drivers and a NEMA17 motor (from another driver) to the 24V power supply. The video shows the current with the motor running, and the second part of the video shows the motor holding current when stopped.
Each of the TMC5160 drivers drives a motor at 3A.


  • MaHa
  • MaHa
24 Jul 2025 17:44
Replied by MaHa on topic Problem G-code?

Problem G-code?

Category: G&M Codes

Line 20 has M0, but normally the next line is the problem, the first G1 move in the routine. Is spindle.0.at-speed true?
  • PCW
  • PCW's Avatar
24 Jul 2025 17:21

threading - spindle encoder synchonization issues

Category: Turning

If it does not count reliably, it suggests a problem with
the quadrature.

The count should be absolutely consistent.

Tommylights suggestion to use an oscilloscope is good.

Also if you can run the spindle at (very) low constant speed you can look
at the encoder A/B signals with halscope.

The signals to watch are:

hm2_7i92.0.encoder.00.input-a
hm2_7i92.0.encoder.00.input-b
hm2_7i92.0.encoder.00.input-index

( assuming the spindle encoder is encoder 00 )
  • Todd Zuercher
  • Todd Zuercher's Avatar
24 Jul 2025 17:17
Problem G-code? was created by Todd Zuercher

Problem G-code?

Category: G&M Codes

I wrote this parametric G-code program and it seems to run fine on my simulation machine.  But when I try to run it on the real machine it stops at line 20  and gives (Does not exicute line 20) no feedback as to why.  However my simulation machine is running Linuxcnc 2.9, and the real  machine is only on 2.7. 

File Attachment:

File Name: dig4surfacetable.ngc
File Size:1 KB
  • dredivan
  • dredivan
24 Jul 2025 16:45
Touch off don`t work "file not open" was created by dredivan

Touch off don`t work "file not open"

Category: AXIS

When I press button Touch Off, i see menu. When I enter my value, can`t press OK

linuxcnc 2.10 Axis Lathe configuration 
Displaying 871 - 885 out of 24320 results.
Time to create page: 0.333 seconds
Powered by Kunena Forum