Advanced Search

Search Results (Searched for: )

  • NWE
  • NWE's Avatar
08 Apr 2026 19:18 - 08 Apr 2026 19:19

Considering a Full Rewire on a Working Schaublin 125 CNC

Category: Turning

On second thought, in this kind of project I might use nested PID:

The inner PID gets its feedback from the motor RPM, its command from the outer PID, its output drives VFD hz command. This PID has to be tuned first, testing it by manually commanding it in motor RPM units.

Next, the outer PID. This gets its feedback from the spindle RPM, its command from LinuxCNC spindle speed command, then its output commands the inner PID.

Am I correct, thinking this will automatically compensate for gearing changes? Except forward/reverse gear change if it exists which would need to be handled by reversing the direction of the outer PID.
  • devils4ever
  • devils4ever
08 Apr 2026 19:02
Replied by devils4ever on topic Commands Not Completing As Written

Commands Not Completing As Written

Category: General LinuxCNC Questions

Wow! That worked! Thanks so much!
  • NWE
  • NWE's Avatar
08 Apr 2026 18:58

Considering a Full Rewire on a Working Schaublin 125 CNC

Category: Turning

I may have not explained what I am after very well. With the variator, if we are properly tuned at 1:1, we would get a problem, as with, for example, 2:1 the same tune would overshoot massively, and with 1:2 we would undershoot.

So what I want is to measure the motor RPM and spindle RPM to get the transmission ratio and scale the PID error accordingly to have a similar response to the point at which it was tuned. I am not after controlling the motor RPM directly.

But to know if this will work or not, I have to get the tune at one point right first, see problem 1 of my previous post.

Just to clarify where your spindle speed PID feedback comes from:
1. Are you using motor RPM for feedback? I think that would be the proper way to do it.
2. Are you using spindle RPM for feedback? To regulate commanded spindle speed? I'm not sure whether there is any easy way to tune that. It seems your tuning would have to change dynamically with the gearing ratio, causing multiple complications.

If I'm correct, ideally the scaling from spindle RPM to motor RPM should be on the PID command signal. At that point the gearing affect on PID tuning should only be mechanical.

This still leaves you to have to measure the adjustable gearing ratio between spindle and motor for properly scaling the speed command.
  • PCW
  • PCW's Avatar
08 Apr 2026 18:55

Firmware request: 7i96S + 7i89 on P1 with pktuart

Category: Driver Boards

Its possible but a little awkward do make new firmware with older PKTUART versions
because you need to copy files around to do it.

Can you update to current LinuxCNC  (2.9.8)

If not I can look into automating the PKTUART versioning as is done for most
modules but that is a fair amount of work.

Note that the full source is available in the 7I96S.zip file
  • endian
  • endian's Avatar
08 Apr 2026 18:37
Replied by endian on topic AX5201 does not change to SAFEOP / OP

AX5201 does not change to SAFEOP / OP

Category: EtherCAT

here  is complete setup for 250us position control loop ... with internal homing subroutine and internal probing input mapping for internal precision homing ability... you can select more methods of homing ... pos, pos + latch, neg, neg + latch ... but carefully map everything 

just enjoy !
  • raafra111
  • raafra111
08 Apr 2026 18:30
Replied by raafra111 on topic AX5201 does not change to SAFEOP / OP

AX5201 does not change to SAFEOP / OP

Category: EtherCAT

Hello endian,
thank you very much for your reply.
The AX5201 is working fine now. I didn't read your desciption of your conversion tool carefully. So I exported the "Startup.xml" manually from TC3 and assigned it also manually in ethercat-conf.xml. With the parameters "complete -i" this is done automatically and works fine.
Thanks again!
  • JohnnyBeluga
  • JohnnyBeluga
08 Apr 2026 18:13
Replied by JohnnyBeluga on topic Firmware request: 7i96S + 7i89 on P1 with pktuart

Firmware request: 7i96S + 7i89 on P1 with pktuart

Category: Driver Boards

Hi !
I tested today the new firmware and I have error at loading. Debug file information:Note: Using POSIX realtimehm2/hm2_7i96s.0: Unsupported or inconsistent PktUART TX module (version 3)not loading driver hm2/hm2_7i96s.0: failed to parse Module Descriptor 7hm2_eth: rtapi_app_main: Invalid argument (-22)./The(Mac)Mill(er).hal:9: waitpid failed /usr/bin/rtapi_app hm2_eth./The(Mac)Mill(er).hal:9: /usr/bin/rtapi_app exited without becoming ready./The(Mac)Mill(er).hal:9: insmod for hm2_eth failed, returned -12659Stopping realtime threadsUnloading hal componentsNote: Using POSIX realtime/////////////////////////////////////I noticed that the other 7i96S firmwares use PktUART2. I tried modifying the vhd with the Efinix tools, but it seems I would need the full project sources to properly change the PktUART version and rebuild the firmware. Would it be possible to provide a version of this firmware compiled with PktUART2? It would help a lot.Thanks in advance!
  • Dudelbert
  • Dudelbert
08 Apr 2026 17:39

Considering a Full Rewire on a Working Schaublin 125 CNC

Category: Turning

I may have not explained what I am after very well. With the variator, if we are properly tuned at 1:1, we would get a problem, as with, for example, 2:1 the same tune would overshoot massively, and with 1:2 we would undershoot.

So what I want is to measure the motor RPM and spindle RPM to get the transmission ratio and scale the PID error accordingly to have a similar response to the point at which it was tuned. I am not after controlling the motor RPM directly.

But to know if this will work or not, I have to get the tune at one point right first, see problem 1 of my previous post.
  • RotarySMP
  • RotarySMP's Avatar
08 Apr 2026 17:26

Considering a Full Rewire on a Working Schaublin 125 CNC

Category: Turning

Sounds like an asynchronous motor with a couple of percent of slip. I dont think we need to control RPM to any really close tolerance. The only time we do commanded speed change with the tool in engagement is a CSS facing cut, or a taper cut, both of which change speed pretty slowly.

I think it will be a real challenge getting this level of control packaged into the HAL. I started working on a comp for it.
  • bobwolf
  • bobwolf
08 Apr 2026 17:23

Solving the USB Latency Dogma for HMI/MPG: Technical Feedback Request

Category: Driver Boards

The system accepts 128 digital inputs and 128 digital outputs by simply adding the expansion card on the desired side and updating the loadrt command in the .hal file with the number of expansion inputs/outputs installed. Expansion cards work on either side.
  • tommylight
  • tommylight's Avatar
08 Apr 2026 16:51
Replied by tommylight on topic Water depth, slats, and underwater cutting

Water depth, slats, and underwater cutting

Category: Plasma & Laser

I can not find Borax here, nor Boric acid, nor KCl, nor well anything really, even IPA i have to ask friends that own shampoo making factories for it.
But we have 18% HCl and 25% H2SO4 anywhere... and you can buy ammonium nitrate in 50KG bags for 20 Euro! :) With no permit or any paper!
I can not build a hobby rocket nor get rid of the bugs (every spring tiny flying ants, by the millions), but blowing up half a city is easy!
  • tommylight
  • tommylight's Avatar
08 Apr 2026 16:45
Replied by tommylight on topic Commands Not Completing As Written

Commands Not Completing As Written

Category: General LinuxCNC Questions

At the top of the gcode file add:
G64 P0.1
for metric machine or
G64 P0.004
for imperial machine,
that will deviate 0.1mm from the original line, or you can change P values as you need them
  • devils4ever
  • devils4ever
08 Apr 2026 15:55
Commands Not Completing As Written was created by devils4ever

Commands Not Completing As Written

Category: General LinuxCNC Questions

Hi all,

I'm having an issue with LinuxCNC not completing the entire command as written in the G code file.

Here's a piece of the code:
G0 Z1.0000 
(PASS 1)
G1 X-2.3750 Y2.7250 F8
G1 Z-0.0500 F4
G1 X-2.3750 Y1.3915 F8.0000 
G3 X-2.3738 Y1.3811 I0.0211 J-0.0029 F8.0000 
G3 X-2.3585 Y1.3750 I0.0112 J0.0058 F8.0000 
G1 X1.7250 Y1.3750 F8.0000
G1 X-2.3750 Y2.7250 F20
(PASS 2)
G1 X-2.3750 Y2.7250 F8
G1 Z-0.1000 F4
G1 X-2.3750 Y1.3915 F8.0000 
G3 X-2.3738 Y1.3811 I0.0211 J-0.0029 F8.0000 
G3 X-2.3585 Y1.3750 I0.0112 J0.0058 F8.0000 
G1 X1.7250 Y1.3750 F8.0000
G1 X-2.3750 Y2.7250 F20

If I single step the code, the command is completed as written. If I let it run, it completes MOST of the command and then it starts on the next command.

See pic.

 
  • spumco
  • spumco
08 Apr 2026 15:18
Replied by spumco on topic Water depth, slats, and underwater cutting

Water depth, slats, and underwater cutting

Category: Plasma & Laser

Our borax doesn't go away due to evaporation, but we do lose some to drag-out when we're too impatient to drain parts and scrap in to the table.

Problem with borax is that it doesn't mix well; we've found heating up a couple gallons in the house and dissolving it works.  The concentrate can then be poured in the table and it mixes up ok during the drain/fill cycle.
  • Dudelbert
  • Dudelbert
08 Apr 2026 15:15

Considering a Full Rewire on a Working Schaublin 125 CNC

Category: Turning

I worked again at the spindle.

I have a “theory” on how to handle the two gearings of the machine.

First, I try to get the motor RPM into LCNC. With the analog out from the VFD, I am now able to get this with an accuracy of about ±25 RPM, which is less than 5% off. I measured the real RPM with a cheap optical tachometer and the RPM that the VFD “thinks” it is at. These two were consistently very close. The VFD was consistently 3 to 5 RPM higher than the tachometer, in an RPM range from 880 RPM (at 30 Hz) to 2080 (at 70 Hz). 3 to 5 RPM seems close enough to ignore that error and believe the VFD.

Now, having the motor RPM, I set the variator by hand so the overall reduction ratio was 1:1 (or close to it)

My plan is to tune the PID at this point and later multiply the error term (pid.s.error) by the overall reduction ratio. If I am not thinking about this totally wrong, this should give the system a hopefully somewhat stable spindle PID over the very large reduction that the backgear and variator provide.

Now I do have 3 problems:

1: There is something wrong with my pid.s setup. As soon as the error gets significantly negative, the output shoots up and the system runs away. I found that pid.s.output can be between 3000 and -3000, but I use 0–10 V, not ±10 V, so as soon as pid.s.output goes negative enough, it runs awaythe sign seems to be ignored. I think this has to be a somewhat common problem with 0–10 V. I was able to remove the runaway by using a limit component to cut away the negative part of pid.s.output, but that led to strange behavior as well. With this, I can increase P to large values without it starting to oscillate much.

2: I was able to get the motor RPM, and I have the spindle RPM, but putting both into a div2 component gives 0 at all times. And not a close-to-zero float (e.g. 5.459834658e-7), but actually just 0. I thought it had to do with the deadband, but no value of that seemed to resolve this. The spindle RPM is obviously 0 when the spindle is still, so I do have a limit component to keep the spindle RPM at ≥ 1, resolving divide-by-zero issues. And as soon as the spindle spins, the numbers seem fine.

3: I already foresee a future problem: given that I have the gear ratio and a solid PID at a ratio of 1:1, I would need to scale pid.s.error (reduction_ratio * pid.s.error), but I could not find where this variable is set, so I would not know how to set my scaling factor.

Sorry for this long rambling message, I hope I was able to explain what is going on on my side.
Displaying 76 - 90 out of 17356 results.
Time to create page: 0.236 seconds
Powered by Kunena Forum