LinuxCNC S-Curve Accelerations

More
23 Apr 2025 10:26 #326949 by Grotius
Replied by Grotius on topic LinuxCNC S-Curve Accelerations
Hi Tia,

It seems the .img won't work ok.

Today i tried the scurve + ethercat on a desktop pc and it runned ok.
It's using a EK1100 + 3x EL2124 on a stepgen component.
Jog speed was around 15000 mm/min wich i find not optimal, but ok for ethercat.

The config:
1x linuxcnc iso from : linuxcnc.org/downloads/
1x ethercat installation : ethercat install
1x linuxcnc + scurve, using makefile build system : codeberg.org/skynet/linuxcnc
1x linuxcnc-ethercat, codeberg.org/skynet/linuxcnc-ethercat.git

Running the config : config link

Now i can not try the cia-402 component myself as i dont have the hardware for it.
But maybe you are able to try this again.

Please Log in or Create an account to join the conversation.

More
23 Apr 2025 11:38 #326954 by rodw
Replied by rodw on topic LinuxCNC S-Curve Accelerations
Great! Don't worry about the cia402.comp as it needs work to work with the homecomp features. In fact it needs rewriting  from scratch I think...
The following user(s) said Thank You: Grotius

Please Log in or Create an account to join the conversation.

More
23 Apr 2025 14:00 #326958 by tiagounderground
Replied by tiagounderground on topic LinuxCNC S-Curve Accelerations
tried here, it works with the original trajetory planer on the rip install, when i change to tpmode=scurve i need to desable homing on the gantry axis and i can do jog movements but when running gcode the machine seens to be stoped but it is runing with an extremaly low aceleration, near 1 minut to move 1mm
The following user(s) said Thank You: Grotius

Please Log in or Create an account to join the conversation.

More
23 Apr 2025 15:25 #326963 by Grotius
Replied by Grotius on topic LinuxCNC S-Curve Accelerations
Hi Tia,

when i change to tpmode=scurve
It is : tpmod_scurve

And check if you use values for the trajectory :  vel + acc.
 [code]# Trajectory planner section --------------------------------------------------
[TRAJ]
TPMOD = tpmod_scurve
COORDINATES = X Y Z
LINEAR_UNITS = mm
ANGULAR_UNITS = degree
DEFAULT_LINEAR_VELOCITY = 208.33
MAX_LINEAR_VELOCITY = 208.33
DEFAULT_LINEAR_ACCELERATION = 350
MAX_LINEAR_ACCELERATION = 350
POSITION_FILE = position_mm.txt
[/code]

I just isnstalled debian 13 on the desktop pc and installed the same software, but the ethercat-master from the codeberg repo.
It also runs ok. So that's a good sign.


 

Please Log in or Create an account to join the conversation.

More
23 Apr 2025 15:30 #326964 by Grotius
Replied by Grotius on topic LinuxCNC S-Curve Accelerations
Hi Rod,

The Cia-402 i have seen the source code. It does not much.
It sends and recieves position, velocity, torque  trough a can protocol?

Please Log in or Create an account to join the conversation.

More
23 Apr 2025 16:48 #326969 by tiagounderground
Replied by tiagounderground on topic LinuxCNC S-Curve Accelerations
this is from my INI file. i raised the values but see no difference.
before i tried with the values you send, is the same on the ethercat config example



[TRAJ]
TPMOD = tpmod_scurve
COORDINATES = X Y Z
LINEAR_UNITS = mm
ANGULAR_UNITS = degree
DEFAULT_LINEAR_VELOCITY = 20800.33
MAX_LINEAR_VELOCITY = 20800.33
DEFAULT_LINEAR_ACCELERATION = 350000
MAX_LINEAR_ACCELERATION = 350000
POSITION_FILE = position_mm.txt
The following user(s) said Thank You: Grotius

Please Log in or Create an account to join the conversation.

More
23 Apr 2025 17:57 #326973 by Grotius
Replied by Grotius on topic LinuxCNC S-Curve Accelerations
Hi Tia,

I don't know why it won't run with cia-402.
We have more users with the same problem.

However the cia-402 source code does nothing with acceleration. Only torque, vel, pos.

Is there a alternative to the cia-402? 

Please Log in or Create an account to join the conversation.

More
23 Apr 2025 18:26 #326974 by PCW
Replied by PCW on topic LinuxCNC S-Curve Accelerations
Tried to compile but got this:

In file included from emc/planner/curve.h:14,
                 from emc/planner/feed.h:15,
                 from emc/planner/feed.c:12:
emc/planner/emcmot_segment.h:27:10: fatal error: segment.h: No such file or directory
   27 | #include "segment.h"

 
The following user(s) said Thank You: Grotius

Please Log in or Create an account to join the conversation.

More
23 Apr 2025 18:49 - 23 Apr 2025 18:51 #326975 by tiagounderground
Replied by tiagounderground on topic LinuxCNC S-Curve Accelerations

Hi Tia,

I don't know why it won't run with cia-402.
We have more users with the same problem.

However the cia-402 source code does nothing with acceleration. Only torque, vel, pos.

Is there a alternative to the cia-402?  

if you want to access my machine remotely i can give you access
Last edit: 23 Apr 2025 18:51 by tiagounderground.
The following user(s) said Thank You: Grotius

Please Log in or Create an account to join the conversation.

More
23 Apr 2025 21:17 #326981 by rodw
Replied by rodw on topic LinuxCNC S-Curve Accelerations

Hi Rod,

The Cia-402 i have seen the source code. It does not much.
It sends and recieves position, velocity, torque  trough a can protocol?

Yes, the cia402 protocol defines a state machine to turn on a machine using a standard control word and a status word confirming current machine state. The attached PDF is a good summary

There are also a loosely defined  set of PDOs

What we really need is a component that just defines the turn on sequence and then a seperate homemod for drive homing. It may be possible to do the turn on in the homemod so there is only one module but it might then sit outside the hal lcec Ethercat loop so it may run one servo thread cycle behind.
Attachments:
The following user(s) said Thank You: Grotius

Please Log in or Create an account to join the conversation.

Time to create page: 0.130 seconds
Powered by Kunena Forum