LinuxCNC S-Curve Accelerations

More
24 Apr 2025 07:45 #326987 by Grotius
Replied by Grotius on topic LinuxCNC S-Curve Accelerations
@Pcw,

Thanks for your effort. Not everything is installed by the makefile.
I think you need to look at the ./installer file, wich install's locally :

libclothoid3d
libscurve

segment.h is part off libclothoid3d and is installed in /usr/local/include

Then finally there is done a ldconfig.
I hope it works for you then.

 
The following user(s) said Thank You: zmrdko

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

More
24 Apr 2025 09:27 #326992 by Grotius
Replied by Grotius on topic LinuxCNC S-Curve Accelerations
@Rod,

In the mean time, have done some reading about the cia-402.
  • The
    0x6065
    : following error window is not used or set by linuxcnc.
  • Velocity mode in combination with a tuned linuxcnc pid could be a try out.


@Tia,
if you want to access my machine remotely i can give you access
We could verify iff all is installed ok. Like the libclothoid is in place etc.
But i think you already used the ./installer. It can be the installer failed at some step.
For the rest i don't know much about the cia-402.
The following user(s) said Thank You: zmrdko

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

More
24 Apr 2025 13:15 #326995 by rodw
Replied by rodw on topic LinuxCNC S-Curve Accelerations
hmm, I am not seeing 6065 in my drives manual.

0x603F reports any errors including following errors which are described as Closed-loop mode tracking error over limit

In practice, a drive error is thrown and this pin can be referred to to determine the error . I have seen a few following errors here.
 
Attachments:
The following user(s) said Thank You: Grotius

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

More
24 Apr 2025 16:14 #327000 by Hakan
Replied by Hakan on topic LinuxCNC S-Curve Accelerations
It's pretty rudimentary. There are these basic PDOs
      <syncManager idx="2" dir="out">
        <pdo idx="1600">
          <pdoEntry idx="6040" subIdx="00" bitLen="16" halPin="cia-controlword" halType="u32"/>
          <pdoEntry idx="6060" subIdx="00" bitLen="8" halPin="opmode" halType="s32"/>
          <pdoEntry idx="607A" subIdx="00" bitLen="32" halPin="target-position" halType="s32"/>
        </pdo>
      </syncManager>
      <syncManager idx="3" dir="in">
        <pdo idx="1a00">
          <pdoEntry idx="6041" subIdx="00" bitLen="16" halPin="cia-statusword" halType="u32"/>
          <pdoEntry idx="6061" subIdx="00" bitLen="8" halPin="opmode-display" halType="s32"/>
          <pdoEntry idx="6064" subIdx="00" bitLen="32" halPin="actual-position" halType="s32"/>
        </pdo>
so basically one send a wanted position to the drive and read the current position back. That's all.
Following error is calculated in linuxcnc.
The cia402 module basically just passes position after scaling to the drive. And reads back actual position.
It also does the state machine walking, but that's in the beginning, then that idles.
 
The following user(s) said Thank You: Grotius

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

More
24 Apr 2025 18:01 #327004 by Grotius
Replied by Grotius on topic LinuxCNC S-Curve Accelerations
Hi,

Can we test the cia-402 and shortcut linuxcnc pos-cmd to pos-feedback so
there is no ferror in linuxcnc that can trigger a motion stop? 
Or test it by hooking the cia-402 to a stepgen or pid without closed loop feedback. 


 

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

More
24 Apr 2025 18:06 - 24 Apr 2025 19:33 #327006 by tiagounderground
Replied by tiagounderground on topic LinuxCNC S-Curve Accelerations

Hi,

Can we test the cia-402 and shortcut linuxcnc pos-cmd to pos-feedback so
there is no ferror in linuxcnc that can trigger a motion stop? 
Or test it by hooking the cia-402 to a stepgen or pid without closed loop feedback. 



 

 

hi
in my last test there was no following error on gcode running, the problem was the very low acceleration.
following errors appears on homing procedure

edit
testing now in axis tab manual controll it disable the drivers, i can only run when in MDI tab
Controll word in all drivers is
15 before hit start
Then all goes 6 and then 4 very quickly
 
Last edit: 24 Apr 2025 19:33 by tiagounderground.

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

More
24 Apr 2025 21:02 #327014 by rodw
Replied by rodw on topic LinuxCNC S-Curve Accelerations

Hi,

Can we test the cia-402 and shortcut linuxcnc pos-cmd to pos-feedback so
there is no ferror in linuxcnc that can trigger a motion stop? 
Or test it by hooking the cia-402 to a stepgen or pid without closed loop feedback. 
 

The only time this is necessary is during internal homing (if used). During homing, motion is happening that Linuxcnc does not know about so it generates a following error if this is not done.
In the drive, motion is measured in encoder pulses and in Linuxcnc uses device units
One of the other  things the cia402 component does is scale the encoder pulses to Linuxcnc device units (mm or inch)

It depends on the drive but many of them will have a SDO that tells the drive to use open loop or closed loop. There are some reasonably cost effective open loop Ethercat cia402 drives from Rtelligent and Leadshine. Both offer drives that can control two open loop stepper motors. The Rtelligent ECR60X2A is USD $60 each ex works (for 2 steppers). 

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

More
24 Apr 2025 21:06 #327015 by rodw
Replied by rodw on topic LinuxCNC S-Curve Accelerations

 
hi
in my last test there was no following error on gcode running, the problem was the very low acceleration.
following errors appears on homing procedure

cia402 defines pins to set velocity and acceleration while homing. 0x6099 and 0x609a

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

More
24 Apr 2025 22:56 #327020 by PCW
Replied by PCW on topic LinuxCNC S-Curve Accelerations
Tried this out but got following errors with large acceleration violations

Running the LinuxCNC logo:

 
Attachments:
The following user(s) said Thank You: Grotius

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

More
25 Apr 2025 10:11 #327040 by Grotius
Replied by Grotius on topic LinuxCNC S-Curve Accelerations
Hi Pcw,

One last question, if you run the scurve simulation config :  axis_scurve_mm.ini   using the startup menu.
Run's this ok for you?

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

Time to create page: 0.196 seconds
Powered by Kunena Forum