Advanced Search

Search Results (Searched for: )

  • slowpoke
  • slowpoke
06 Apr 2026 21:38 - 06 Apr 2026 21:40

Spindle encoder configuration (with G76 threading command and Mesa 7i96s)

Category: HAL

I made a new configuration using pncconf and compared the spindle & encoder 0 section.

I don't see anything that's different, other than naming conventions (see attached)

I have a quadrature spindle encoder connected encoder (0) input. A & B

I now also have a 1PPR signal, connected to the encoder.0. index pin.

In Halshow
- spindle.0.revs counts up as expected when the spindle is rotated forward
- spindle.0.speed-in appears correct
- spindle.0.index-enable shows disabled

In my SM-10.hal file I have:
net spindle-index-enable <=> spindle.0.index-enable

IF I comment out this line, I can then enable spindle.0.index-enable manually in Halshow, that makes no difference when trying to open the file below (same error)

Regardless when I try to open the following 2 line G76 program I get the following error: "Chosen spindle(0) not turning in G76"

Program:
G0 X0.45
G76 P0.0625 Z-0.5 I -0.005 J 0.008 K 0.0503

What does the error message actually mean and/or what is Linux missing that it needs?

It has the quadrature encoder signals and it has the index pulse, that I can see toggle as the magnet passes the sensor once per rev,

The revs counter is counting up 1 per rev.
  • jetbadger
  • jetbadger
06 Apr 2026 19:30
Replied by jetbadger on topic Lathe C axis homing

Lathe C axis homing

Category: General LinuxCNC Questions

Oh whichever is easiest for you, I don't have a parting slide and C axis at this moment is all I'm trying to do. I'm immensely grateful anyway :)
  • COFHAL
  • COFHAL
06 Apr 2026 19:15
Replied by COFHAL on topic Help with Lichuan drives

Help with Lichuan drives

Category: EtherCAT

You can try these examples that I have working with some of those ETHERCAT servos

File Attachment:

File Name: EC-Axis-C.rar
File Size:45 KB

File Attachment:

File Name: EC-position.rar
File Size:20 KB

File Attachment:

File Name: EC-position-vel.rar
File Size:21 KB

File Attachment:

File Name: EC-Spindle.rar
File Size:44 KB
  • ewlsey
  • ewlsey
06 Apr 2026 17:51
Replied by ewlsey on topic Cubic Interpolator

Cubic Interpolator

Category: General LinuxCNC Questions

OK. I'm having a really hard time understanding the code base. The files don't seem to have any comments explaining what they actually do, what leads to them, or where they lead to.

If the cubic.c is only for non-trivial kinematics, how does the interpolation work for normal cartesian machines?

I was assuming that every servo period it pulls a target position and velocity from the trajectory planner creating 1ms stair steps of constant velocity, but I really can't tell.
  • Dudelbert
  • Dudelbert
06 Apr 2026 17:51

Considering a Full Rewire on a Working Schaublin 125 CNC

Category: Turning

Good to hear that you managed to get your toolchanger working.
I would hope that the PID settings can be constant. I did think that the error term can be scaled.
We know the state of the backgear and the output (spindle encoder). With the analog output, we can have at least a good estimate of the motor RPM. So back-calculating the ratio of the variator should be possible, at least to a degree.

If we scale the error term with the overall transmission ratio and tune the PID at that state, it should give reasonably good behavior over the whole range, wouldn’t it? I am not sure of this. Doing this would give a wonky error at startup (estimating the variator would take a few rotations, I think), but it should be fine before the spindle is fully started up, I think.

But I may have an error in my thinking. Control theory is not my strong suit.
  • andypugh
  • andypugh's Avatar
06 Apr 2026 17:32
Replied by andypugh on topic RRW Lab SPI with raspberry pi 5

RRW Lab SPI with raspberry pi 5

Category: Driver Boards

Might be worth asking in the Remora thread.
  • RotarySMP
  • RotarySMP's Avatar
06 Apr 2026 17:27

Considering a Full Rewire on a Working Schaublin 125 CNC

Category: Turning

I am working on a similar solution, but want to do it as a comp, since I got my comp for the turret working this weekend.

Gear ratio can be inferred from spindle speed / commanded voltage, corrected to frequency, corrected to RPM. (You are a step ahead of me there, with your vfd frequency out put).

I expect we will need a constantly changing set of PID settings, as the inertia varies over the entire speed range.

I always wondered whether the back gear can change gear with the spindle running, but it would be pretty pointless, given the huge 6.5:1 spindle speed change, so I will only trigger it stationary.
Cheers,
Mark


 
  • andypugh
  • andypugh's Avatar
06 Apr 2026 17:19
Replied by andypugh on topic W axis machine config

W axis machine config

Category: General LinuxCNC Questions

And you see the pin iocontrol.0.emc-enable-in toggling high?

Maybe something odd with the amp-fault pin for the W-axis?
joint.N.amp-fault-in
  • RotarySMP
  • RotarySMP's Avatar
06 Apr 2026 17:15
Replied by RotarySMP on topic Can't find M1 - optional stop switch

Can't find M1 - optional stop switch

Category: Gmoccapy

Yeah, I would also happily sacrifice full screen for M1.
  • andypugh
  • andypugh's Avatar
06 Apr 2026 17:15
Replied by andypugh on topic xhc-hb04 does not communicate

xhc-hb04 does not communicate

Category: General LinuxCNC Questions

There have been recent updates to the driver. Which LinuxCNC version are you using?
  • spumco
  • spumco
06 Apr 2026 17:08
Replied by spumco on topic Pico Systems Servo Controller

Pico Systems Servo Controller

Category: User Exchange

@Andypugh

If you want me to subsidize the shipping cost as a contribution to the project, just let me know.  Once you get an address to @jschulze and a shipping cost is determined, I can paypal either you or @jschulze directly.

 
  • PCW
  • PCW's Avatar
06 Apr 2026 17:03

Spindle encoder configuration (with G76 threading command and Mesa 7i96s)

Category: HAL

If you have the index connected to the 7I96S index input, then a standard
pncconf or MesaCT created hal file will have the correct connections.
  • spumco
  • spumco
06 Apr 2026 17:02
Replied by spumco on topic Lathe C axis homing

Lathe C axis homing

Category: General LinuxCNC Questions


From what I gather, logic.s0free should be an AND device, so with personality=0x105? Maybe there are other essential things there? I assume SPIN0-xx  signals are distributed in another file?

 


Yes, logic.s0free is 0x105

There are probably other essential ingredients missing from that hal file.  Best bet is for me to post my whole config...  You've got two options:
  • I can give you a slightly out-of-date version right this second.  It has all the spindle/c-axis stuff in it, OR
  • Wait until tonight and I'll give you the latest version
    • Includes a switchkins component for my separate parting slide, plus some changes that don't affect C-axis stuff
Keep in mind that either config is quite complicated, and there are still a number of functions/features I haven't finished:
- Collet closer position sensor logic/interlocks for both main and sub-spindles
- GUI view rotation for sub/main spindle work
- Other stuff yet to be discovered

Your pick.
  • Vegko
  • Vegko
06 Apr 2026 16:55
Replied by Vegko on topic Can't find M1 - optional stop switch

Can't find M1 - optional stop switch

Category: Gmoccapy

The M1 button is the one i am actually missing in Gmoccapy.
The space constraint is a hard one, everybody has other needs.
For me personally i would rather skip the full screen toggle, but a total of 11 buttons would fit as well.
 
  • andypugh
  • andypugh's Avatar
06 Apr 2026 16:54
Replied by andypugh on topic Cubic Interpolator

Cubic Interpolator

Category: General LinuxCNC Questions

This recent commit has me suspecting that it is in some way related to non-trivial kinematics.
github.com/LinuxCNC/linuxcnc/pull/3890
Displaying 76 - 90 out of 17378 results.
Time to create page: 0.387 seconds
Powered by Kunena Forum