LinuxCNC S-Curve Accelerations
- Grotius
-
- Offline
- Platinum Member
-
- Posts: 2396
- Thank you received: 2310
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.
- rodw
-
- Offline
- Platinum Member
-
- Posts: 11210
- Thank you received: 3739
Please Log in or Create an account to join the conversation.
- tiagounderground
- Offline
- New Member
-
- Posts: 13
- Thank you received: 11
Please Log in or Create an account to join the conversation.
- Grotius
-
- Offline
- Platinum Member
-
- Posts: 2396
- Thank you received: 2310
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
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.
- Grotius
-
- Offline
- Platinum Member
-
- Posts: 2396
- Thank you received: 2310
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.
- tiagounderground
- Offline
- New Member
-
- Posts: 13
- Thank you received: 11
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
Please Log in or Create an account to join the conversation.
- Grotius
-
- Offline
- Platinum Member
-
- Posts: 2396
- Thank you received: 2310
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.
- PCW
-
- Away
- Moderator
-
- Posts: 18475
- Thank you received: 5046
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"
Please Log in or Create an account to join the conversation.
- tiagounderground
- Offline
- New Member
-
- Posts: 13
- Thank you received: 11
if you want to access my machine remotely i can give you accessHi 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.
- rodw
-
- Offline
- Platinum Member
-
- Posts: 11210
- Thank you received: 3739
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 summaryHi 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?
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.
Please Log in or Create an account to join the conversation.