- Posts: 12160
- Thank you received: 0
LinuxCNC S-Curve Accelerations
1 year 6 months ago #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.
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.
Attachment not found
Please Log in to join the conversation.
1 year 6 months ago #327000
by Hakan
Replied by Hakan on topic LinuxCNC S-Curve Accelerations
It's pretty rudimentary. There are these basic PDOs
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.
Code:
<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>
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.
Please Log in to join the conversation.
1 year 6 months ago #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.
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 to join the conversation.
- tiagounderground
- Offline
- Junior Member
-
Less
More
- Posts: 21
- Thank you received: 0
1 year 6 months ago #327006
by tiagounderground
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
Replied by tiagounderground on topic LinuxCNC S-Curve Accelerations
hiHi,
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.
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
Please Log in to join the conversation.
1 year 6 months ago #327014
by rodw
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).
Replied by rodw on topic LinuxCNC S-Curve Accelerations
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.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.
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 to join the conversation.
1 year 6 months ago #327015
by rodw
Replied by rodw on topic LinuxCNC S-Curve Accelerations
cia402 defines pins to set velocity and acceleration while homing. 0x6099 and 0x609a
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
Please Log in to join the conversation.
1 year 6 months ago #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:
Running the LinuxCNC logo:
Attachment not found
Please Log in to join the conversation.
1 year 6 months ago #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?
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 to join the conversation.
1 year 6 months ago #327060
by PCW
Replied by PCW on topic LinuxCNC S-Curve Accelerations
I can not test that as it requires EtherCat hardware.
Please Log in to join the conversation.
1 year 6 months ago #327077
by Grotius
Replied by Grotius on topic LinuxCNC S-Curve Accelerations
Hi Pcw,
The referred config file is a simulation for use with no hardware.
I thought if this runs ok on your pc, maybe you have a idea why it will not run ok on real hardware.
i have it running with huge ferror values.
The referred config file is a simulation for use with no hardware.
I thought if this runs ok on your pc, maybe you have a idea why it will not run ok on real hardware.
i have it running with huge ferror values.
Please Log in to join the conversation.
Time to create page: 0.391 seconds
