- Posts: 203
- Thank you received: 19
New Trajectory Planner - Testers/programs wanted
- DaBit
- Offline
- Elite Member
-
Less
More
12 years 2 months ago #50144
by DaBit
Replied by DaBit on topic New Trajectory Planner - Testers/programs wanted
Being able to set a default G64 tolerance in the INI file would be nice since plain G64 can do quite unintended things.
Being able to set 'internal TP parameters' through G-code, hmm, not so necessary although it doesn't bite with anything when it is not used.
Being able to set 'internal TP parameters' through HAL is a nice debugging aid.
Being able to set acceleration or an acceleration override though G-code and/or HAL is high on my wish list.
I envision a roughing pass with high acceleration and feed and a finishing pass with lower acceleration and feed to reduce the load on the machine structure and get maximum accuracy. If I want to do that now I have to start a different configuration to run the finishing program.
Limiting jerk would be even better, but that is not implemented overnight.
Being able to set 'internal TP parameters' through G-code, hmm, not so necessary although it doesn't bite with anything when it is not used.
Being able to set 'internal TP parameters' through HAL is a nice debugging aid.
Being able to set acceleration or an acceleration override though G-code and/or HAL is high on my wish list.
I envision a roughing pass with high acceleration and feed and a finishing pass with lower acceleration and feed to reduce the load on the machine structure and get maximum accuracy. If I want to do that now I have to start a different configuration to run the finishing program.
Limiting jerk would be even better, but that is not implemented overnight.
Please Log in or Create an account to join the conversation.
- dgarrett
- Offline
- Platinum Member
-
Less
More
- Posts: 492
- Thank you received: 297
12 years 2 months ago #50153
by dgarrett
Replied by dgarrett on topic New Trajectory Planner - Testers/programs wanted
In linuxcnc 2.6 and later, hal pins are available for a number ini items:
The updated patches in:
www.panix.com/~dgarrett/stuff/tptest.mbox
add:
1) additional hal pins for ini trajectory planner items
2) a sim configuration (configs/sim/tptest/tptest.ini)
for demonstration
The patchset applies to current git master (40b9751), to apply:
The new pins are:
The demonstration example includes two ngcgui-compatilbe ngc
files for demonstration and uses an existing utility named
sim_pin to make it simple to change ini items (best to do while
stopped).
Using ini defaults, the examples timings are:
Thanks to Sam Sokolik for the timers and contraint checks used in the axis gui.
Additional examples would be worthwhile additions.
Code:
$ halcmd show pin ini*
Component Pins:
Owner Type Dir Value Name
68 float IN 0 ini.0.backlash
68 float IN 0.05 ini.0.ferror
68 float IN 50 ini.0.max_acceleration
68 float IN 40 ini.0.max_limit
68 float IN 5 ini.0.max_velocity
68 float IN 0.01 ini.0.min_ferror
68 float IN -40 ini.0.min_limit
...
68 float IN 1e+99 ini.traj_default_acceleration
68 float IN 5 ini.traj_default_velocity
68 float IN 1e+99 ini.traj_max_acceleration
68 float IN 1e+99 ini.traj_max_velocity
The updated patches in:
www.panix.com/~dgarrett/stuff/tptest.mbox
add:
1) additional hal pins for ini trajectory planner items
2) a sim configuration (configs/sim/tptest/tptest.ini)
for demonstration
The patchset applies to current git master (40b9751), to apply:
Code:
$ git am tptest.mbox
Code:
$ halcmd show pin *blend*
Component Pins:
Owner Type Dir Value Name
62 bit IN TRUE ini.traj_arc_blend_enable
62 bit IN FALSE ini.traj_arc_blend_fallback_enable
62 float IN 4 ini.traj_arc_blend_gap_cycles
62 s32 IN 50 ini.traj_arc_blend_optimization_depth
62 float IN 100 ini.traj_arc_blend_ramp_freq
The demonstration example includes two ngcgui-compatilbe ngc
files for demonstration and uses an existing utility named
sim_pin to make it simple to change ini items (best to do while
stopped).
Using ini defaults, the examples timings are:
3dchips
4min 48 seconds with blend_enable=0
3min 24 seconds with blend_enable=1
contour
1min 6 seconds with blend_enable=0
0min 22 seconds with blend_enable=1
Thanks to Sam Sokolik for the timers and contraint checks used in the axis gui.
Additional examples would be worthwhile additions.
Please Log in or Create an account to join the conversation.
- Quadro
- Offline
- New Member
-
Less
More
- Posts: 8
- Thank you received: 0
11 years 10 months ago - 11 years 10 months ago #54250
by Quadro
Replied by Quadro on topic New Trajectory Planner - Testers/programs wanted
Hi All,
The new TP performance is definitely worth while, from my test i'm gaining 25% average cut time which good for cnc plasma.
I encountered a problem today - 'joint 0 follow error". It happens in the same spot every time (Screenshot). I turned the TP off in the ini file and i don't get the error.
I have attached the GCode file and also my ini file.
I'm using 2.8.0-pre1-179-gd230316.
Anthony
The new TP performance is definitely worth while, from my test i'm gaining 25% average cut time which good for cnc plasma.
I encountered a problem today - 'joint 0 follow error". It happens in the same spot every time (Screenshot). I turned the TP off in the ini file and i don't get the error.
I have attached the GCode file and also my ini file.
I'm using 2.8.0-pre1-179-gd230316.
Anthony
Last edit: 11 years 10 months ago by Quadro. Reason: Missing file
Please Log in or Create an account to join the conversation.
- skunkworks
- Offline
- Moderator
-
Less
More
- Posts: 351
- Thank you received: 153
11 years 10 months ago #54251
by skunkworks
Replied by skunkworks on topic New Trajectory Planner - Testers/programs wanted
I ran your gcode in one of my test systems and it seems to run just fine.
One thing I did spot in the ini
MAX_ACCELERATION = 2000
STEPGEN_MAXACCEL = 2200
You want the stepgen atleast 20% higher then the axis acceleration.. So it should be atleast
MAX_ACCELERATION = 2000
STEPGEN_MAXACCEL = 2400
and I might go higher..
sam
One thing I did spot in the ini
MAX_ACCELERATION = 2000
STEPGEN_MAXACCEL = 2200
You want the stepgen atleast 20% higher then the axis acceleration.. So it should be atleast
MAX_ACCELERATION = 2000
STEPGEN_MAXACCEL = 2400
and I might go higher..
sam
Please Log in or Create an account to join the conversation.
- Quadro
- Offline
- New Member
-
Less
More
- Posts: 8
- Thank you received: 0
11 years 10 months ago #54257
by Quadro
Replied by Quadro on topic New Trajectory Planner - Testers/programs wanted
Sam,
I thought it was 10% difference between stepgen and axis acceleration..... no matter.
I changed the ini to
MAX_ACCELERATION = 2000
STEPGEN_MAXACCEL = 2400
Ran the file above and it stopped in the same spot with same error
I then changed the ini to
MAX_ACCELERATION = 1000
STEPGEN_MAXACCEL = 2400
Ran the same file and it stopped in the same spot but this time a yellow jog line was painted without me even jogging (see Screenshot).
My thinking is TP is looking too far ahead and getting 'lost'. Do any of the new settings in the ini file affect how far ahead TP is looking? or any other suggestions for some tests?
I thought it was 10% difference between stepgen and axis acceleration..... no matter.
I changed the ini to
MAX_ACCELERATION = 2000
STEPGEN_MAXACCEL = 2400
Ran the file above and it stopped in the same spot with same error
I then changed the ini to
MAX_ACCELERATION = 1000
STEPGEN_MAXACCEL = 2400
Ran the same file and it stopped in the same spot but this time a yellow jog line was painted without me even jogging (see Screenshot).
My thinking is TP is looking too far ahead and getting 'lost'. Do any of the new settings in the ini file affect how far ahead TP is looking? or any other suggestions for some tests?
Please Log in or Create an account to join the conversation.
- skunkworks
- Offline
- Moderator
-
Less
More
- Posts: 351
- Thank you received: 153
11 years 10 months ago #54259
by skunkworks
Replied by skunkworks on topic New Trajectory Planner - Testers/programs wanted
Hmm - is that part rotated a bit? could we have your var file?
(well - your whole config directory?)
sam
(well - your whole config directory?)
sam
Please Log in or Create an account to join the conversation.
Time to create page: 0.373 seconds