Advanced Search

Search Results (Searched for: )

  • grandixximo
  • grandixximo's Avatar
Today 06:30 - Today 06:48
Replied by grandixximo on topic LinuxCNC S-Curve Accelerations

LinuxCNC S-Curve Accelerations

Category: General LinuxCNC Questions

The scurve is present now in linuxcnc master, download from GitHub and build, or use the latest .deb files

With many thanks to Grandixximo and 杨阳 we now have an experimental
S-curve / finite-jerk trajectory planner for testing.

For those that build from source just look for the new v2.10.0-pre1 tag.

Others can download debs from github for the next 90 days:
x86 / bookworm  github.com/LinuxCNC/linuxcnc/actions/run...artifacts/5056097663
x86 / trixie github.com/LinuxCNC/linuxcnc/actions/run...artifacts/5056161668
ARM64 / bookworm github.com/LinuxCNC/linuxcnc/actions/run...artifacts/5056139840
ARM64 / trixie github.com/LinuxCNC/linuxcnc/actions/run...artifacts/5056124080

Make no mistake, this is experimental, there are no guarantees that
these won't break your machines. The first user already hit the hard
stops when homing (too-low max jerk setting)
With the jerk setting it is probably best to start high and reduce, as
infinite jerk is closer to current behavior.

If you run these you are volunteering to be a guinea-pig.
magazine.punch.co.uk/image/I0000NOWOOdkXT_k
  • rodw
  • rodw's Avatar
Today 05:57
Replied by rodw on topic New and Working RTAI debs for 2.9

New and Working RTAI debs for 2.9

Category: Installing LinuxCNC

Life has got more complicated. With proper kernel tuning, latency can be better with Debian 13. I am in the process of publishing a second video about this on YouTube. Please refer to my channel. www.youtube.com/@MrRodW
The yet to be published video should be watched before the current one.
  • cmorley
  • cmorley
Today 05:50
Replied by cmorley on topic Qtdragon_hd Zero button not zeroing

Qtdragon_hd Zero button not zeroing

Category: General LinuxCNC Questions

If you zero again, does the small values stay the same?
  • soehlrich
  • soehlrich
  • cmorley
  • cmorley
Today 05:16
Replied by cmorley on topic Qtdragon_hd Zero button not zeroing

Qtdragon_hd Zero button not zeroing

Category: General LinuxCNC Questions

Rhe formatting of the message is screwing it up.
Just make a short new message with the images
  • soehlrich
  • soehlrich
  • soehlrich
  • soehlrich
Today 05:13
Replied by soehlrich on topic Qtdragon_hd Zero button not zeroing

Qtdragon_hd Zero button not zeroing

Category: General LinuxCNC Questions

Hi,

I can seem to add the attachments, both less than 1M. Click add image, I can then see it, and press insert.
  • cmorley
  • cmorley
Today 05:08
Replied by cmorley on topic Qtdragon_hd Zero button not zeroing

Qtdragon_hd Zero button not zeroing

Category: General LinuxCNC Questions

attachments didn't come though.
  • soehlrich
  • soehlrich
Yesterday 04:20 - Today 05:12
Qtdragon_hd Zero button not zeroing was created by soehlrich

Qtdragon_hd Zero button not zeroing

Category: General LinuxCNC Questions

 Hi,I have been using linxcnc 2.4 for quite some time and though it would be a good idea to upgrade to the latest qtdragon_hd version. I did a completely fresh install using LinuxCNC 2.9.8
Debian 13 Trixie PREEMPT-RT ISO

I am running a MESA 7176E board for the interface with step and direction ( using Teknic SDSK servos) so effectively open loop. The hal file is copied from my old configuration, so I know it worked. I have added any new items that were needed

I have managed to get everything working pretty much as before and axis all home correclty and the home co-ordinates are all set to 0. If I then jog the table to a position and press Zero on any of the Axis the G54 Cordinates are not zeroed. See attached pictures.

If I set a jog interval like 0.1mm then every jog increments the DRO by the correct amount and the DTI indicates the table move correct.Using the Offsets screen, if I set the G54 offset to the X axis position at shown for the G53 X axis then the G54 will indicate 0. If i then press Zero it goes to some small number.

Does anyone have any ideas ?

I have disabled all EOffsets.Any help great appreciated.

Thanks
  [attachment=73775]20260108_160616.jpg[/attachment]
 [attachment=73774]20260108_160046_2026-01-07.jpg[/attachment]
  • cnbbom
  • cnbbom
Yesterday 03:46
Replied by cnbbom on topic New and Working RTAI debs for 2.9

New and Working RTAI debs for 2.9

Category: Installing LinuxCNC

Do you _need_ RTAI? What is your latency with preempt-rt?


 

I confess that RT version 2.92 worked well for me, even using LPT with around 25000 latency. However, when I saw Debian 13, I believed I could achieve the same result, but the latency is extremely high, reaching 150 on the same PC that had 25000 latency with Debian 12. That's when I tried RTAI and got these errors. I'm trying to find another PC following Tommylight's advice in an attempt to get some answers.
  • tommylight
  • tommylight's Avatar
Yesterday 02:53 - Yesterday 02:55

A new finite-jerk (S-curve) trajectory planner for testing.

Category: LinuxCNC Announcements

Can you see: github.com/LinuxCNC/linuxcnc/actions/run...1121/job/59737821393 ?


Yes, this works.
-
Hovering over your links shows:
github.com/LinuxCNC/linuxcnc/actions/run...artifacts/5056097663
While opening them goes to
github.com/LinuxCNC/linuxcnc/suites/5379...artifacts/5056097663
None work, but removing some tailing does open correct sections for
github.com/LinuxCNC/linuxcnc/actions/runs/20798441121/
where the "artifacts" are listed but not clickable.
Edit
I am not logged in there, i do not have an account.
  • ihavenofish
  • ihavenofish
Yesterday 02:20
  • andypugh
  • andypugh's Avatar
Yesterday 01:41

A new finite-jerk (S-curve) trajectory planner for testing.

Category: LinuxCNC Announcements

They all work for me. I will have to try them at work tomorrow as the other-me to maybe see what is going on.

Can you see: github.com/LinuxCNC/linuxcnc/actions/run...1121/job/59737821393 ?
  • tommylight
  • tommylight's Avatar
Yesterday 00:26

A new finite-jerk (S-curve) trajectory planner for testing.

Category: LinuxCNC Announcements

404 on all links on GitHub and 403 on the guinea pig.
  • andypugh
  • andypugh's Avatar
Yesterday 00:05 - Yesterday 00:09

A new finite-jerk (S-curve) trajectory planner for testing.

Category: LinuxCNC Announcements

With many thanks to Grandixximo and 杨阳 we now have an experimental
S-curve / finite-jerk trajectory planner for testing.

For those that build from source just look for the new v2.10.0-pre1 tag.

Others can download debs from github for the next 90 days:
x86 / bookworm
x86 / trixie
ARM64 / bookworm
ARM64 / trixie

Make no mistake, this is experimental, there are no guarantees that
these won't break your machines. The first user already hit the hard
stops when homing (too-low max jerk setting)
With the jerk setting it is probably best to start high and reduce, as
infinite jerk is closer to current behavior.

If you run these you are volunteering to be a guinea-pig.

The docs have been updated, but here is the README original pull-request.

================================================================================
  LINUXCNC S-CURVE MOTION PLANNING - QUICK REFERENCE
================================================================================

OVERVIEW
S-curve motion planning provides smoother acceleration by limiting jerk
(the rate of change of acceleration). This can reduce machine vibration,
improve surface finish, and extend machine life.

STATUS: Optional feature, disabled by default for backward compatibility


ENABLING S-CURVE PLANNING
Add to [TRAJ] section of your INI file:

    PLANNER_TYPE = 1              # 0=trapezoidal (default), 1=S-curve
    MAX_LINEAR_JERK = 1000.0      # Units: machine-units/s^3
    DEFAULT_LINEAR_JERK = 500.0   # Default jerk for moves

Add to [JOINT_n] sections:

    MAX_JERK = 1000.0             # Per-joint jerk limit

Add to [AXIS_l] sections:

    MAX_JERK = 1000.0             # Per-axis jerk limit


CONSTANTS DEFINED
File: src/emc/nml_intf/emccfg.h

    DEFAULT_TRAJ_DEFAULT_JERK    = 0.0  (disabled)
    DEFAULT_TRAJ_MAX_JERK        = 0.0  (disabled)
    DEFAULT_TRAJ_PLANNER_TYPE    = 0    (trapezoidal)
    DEFAULT_JOINT_MAX_JERK       = 0.0  (disabled)
    DEFAULT_AXIS_MAX_JERK        = 0.0  (disabled)


BEHAVIOR
S-curve planning is ACTIVE when:
  - PLANNER_TYPE = 1, AND
  - MAX_LINEAR_JERK > 0

Trapezoidal planning is used when:
  - PLANNER_TYPE = 0, OR
  - MAX_LINEAR_JERK = 0 (or not specified)

Note: Setting MAX_JERK=0 with PLANNER_TYPE=1 reverts to trapezoidal
      for backward compatibility and easy testing.


HAL PINS ADDED
*** IMPORTANT: All trajectory-level HAL pins support RUNTIME changes! ***
You can switch between trapezoidal and S-curve planning on-the-fly
by connecting HAL signals to these pins.

Trajectory level (all support runtime modification):
  - ini.traj_default_jerk (IN, float)  - Can change while running
  - ini.traj_max_jerk (IN, float)      - Can change while running
  - ini.traj_planner_type (IN, s32)    - Can change while running (0 or 1)

Joint level (for each joint N):
  - ini.N.jerk (IN, float)             - Joint jerk limit
  - joint.N.jerk-cmd (OUT, float)      - Current commanded jerk

Axis level (for each axis L):
  - ini.L.jerk (IN, float)             - Axis jerk limit


TYPICAL VALUES
Units depend on your LINEAR_UNITS setting (mm or inch)

Light/rigid machines:     1,000 - 10,000 units/s^3
Medium machines:            100 -  1,000 units/s^3
Heavy/flexible machines:    100 -    500 units/s^3
Very rigid machines:     10,000 - 100,000 units/s^3

Rule of thumb: MAX_JERK ≈ 10-100 × MAX_ACCELERATION


TUNING PROCEDURE
1. Start with PLANNER_TYPE=0 (verify machine works normally)
2. Set PLANNER_TYPE=1, MAX_LINEAR_JERK=100 (very conservative)
3. Test simple moves (jog, MDI commands)
4. Gradually increase MAX_LINEAR_JERK by 2-3x steps
5. Monitor motor current, following errors, vibration
6. Find sweet spot: smooth motion without sluggishness
7. Test coordinated motion (G2/G3 arcs, 3D paths)


RUNTIME SWITCHING (Advanced Feature)
All trajectory jerk parameters can be changed while LinuxCNC is running!
This allows dynamic switching between planning modes.

EXAMPLE 1: Toggle button to switch planners
In your HAL file:

    # Create a toggle button
    net planner-toggle-btn pyvcp.scurve-enable => ini.traj_planner_type

    # When button=0: Trapezoidal
    # When button=1: S-curve

EXAMPLE 2: Automatic switching based on feedrate
In your HAL file:

    # Use motion.current-vel to switch planners
    # High speed = trapezoidal (faster), Low speed = S-curve (smoother)
    loadrt comp names=vel-compare
    addf vel-compare servo-thread

    setp vel-compare.in0 150.0  # Switch threshold (units/sec)
    net current-vel motion.current-vel => vel-compare.in1
    net use-scurve vel-compare.out => ini.traj_planner_type

EXAMPLE 3: MDI commands to change jerk on-the-fly
You can use halcmd in MDI or scripts:

    halcmd setp ini.traj_max_jerk 2000.0
    halcmd setp ini.traj_planner_type 1

EXAMPLE 4: Material-specific jerk settings
In PyVCP or custom GUI:

    <pyvcp>
      <labelframe text="Motion Profile">
        <radiobutton>
          <choices>["Wood (500)", "Aluminum (1500)", "Steel (2500)"]</choices>
          <halpin>"material-jerk"</halpin>
        </radiobutton>
      </labelframe>
    </pyvcp>

    # In HAL, use mux component to select jerk value
    # and connect to ini.traj_max_jerk

NOTES:
  - Changes take effect on the NEXT motion command
  - Safe to change during idle or between moves
  - Existing queued moves use old parameters
  - Great for A/B testing different jerk values


TROUBLESHOOTING
Q: No difference between PLANNER_TYPE=0 and PLANNER_TYPE=1?
A: Verify MAX_LINEAR_JERK > 0 and all joint/axis MAX_JERK > 0

Q: Motion is slower with S-curve?
A: Increase MAX_LINEAR_JERK value

Q: Following errors increased?
A: Decrease MAX_LINEAR_JERK or tune PID parameters

Q: Want to disable S-curve temporarily?
A: Set PLANNER_TYPE=0 (no need to change jerk values)


FILES MODIFIED
Core implementation:
  - src/emc/tp/sp_scurve.c           (NEW - S-curve algorithm)
  - src/emc/tp/sp_scurve.h           (NEW - S-curve header)
  - src/emc/motion/simple_tp.c       (dispatch to S-curve planner)
  - src/emc/motion/simple_tp.h       (add jerk support)

Motion control:
  - src/emc/motion/motion.h          (add jerk commands/status)
  - src/emc/motion/command.c         (handle jerk commands)
  - src/emc/motion/control.c         (jerk limiting in motion loop)
  - src/emc/motion/axis.c            (axis jerk limits)

INI file parsing:
  - src/emc/ini/initraj.cc           (parse TRAJ jerk params)
  - src/emc/ini/inijoint.cc          (parse JOINT jerk params)
  - src/emc/ini/iniaxis.cc           (parse AXIS jerk params)
  - src/emc/ini/inihal.cc            (HAL pin creation & updates)
  - src/emc/ini/inihal.hh            (HAL data structures)

Configuration:
  - src/emc/nml_intf/emccfg.h        (default constants)
  - lib/hallib/check_config.tcl      (INI validation)

Build system:
  - src/Makefile                     (add sp_scurve.o to build)
  - src/emc/motion-logger/Submakefile


EXAMPLE CONFIGURATIONS
See: configs/scurve_example.ini for complete examples


TESTING RECOMMENDATIONS
1. Air cut test programs with known good results
2. Compare surface finish: trapezoidal vs S-curve
3. Monitor following errors during complex paths
4. Check motor temperature (shouldn't increase significantly)
5. Listen for unusual vibrations or resonances
6. Measure cycle time differences


FOR DEVELOPERS
S-curve algorithm location: src/emc/tp/sp_scurve.c

Key function: simple_scurve_tp_update()
  - Called from simple_tp_update() when jerk > 0
  - Implements 7-segment S-curve profile
  - Updates position, velocity, acceleration, jerk

Integration points:
  - simple_tp.c: Planner selection based on max_jerk
  - axis.c: Apply axis jerk limits
  - control.c: Apply joint jerk limits
  - command.c: Process EMCMOT_SET_JERK commands


COMMUNITY TESTING
This feature is new and needs community testing. Please report:
  - Machine configuration (type, size, rigidity)
  - Jerk values that worked well
  - Any issues or unexpected behavior
  - Comparison to trapezoidal planning

Report to: LinuxCNC mailing list, forum or Discord
Displaying 1 - 15 out of 20466 results.
Time to create page: 0.219 seconds
Powered by Kunena Forum