Limit3 question.
10 Jan 2012 15:54 #16531
by dab77
Limit3 question. was created by dab77
Hi. I've always wanted to define acceleration on a hal pin, to change it 'live', but it isn't possible in emc2.
Today, reading here: linuxcnc.org/docs/html/man/man9/limit3.9.html , i've learned about limit3.x.maxs and maxa.
If i understood correctly this limits max acceleration (and velocity) for the given movement into limit3.x.in. Is it?
Do you think can i use some way this parameter connected to maybe a Spinbutton into Gladevcp, where i set the limit of acceleration?
this way i can set an initial Hi acceleration, and then slow this into Gladevcp during axis running.
Any ideas?
Thanks, Davide.
Today, reading here: linuxcnc.org/docs/html/man/man9/limit3.9.html , i've learned about limit3.x.maxs and maxa.
If i understood correctly this limits max acceleration (and velocity) for the given movement into limit3.x.in. Is it?
Do you think can i use some way this parameter connected to maybe a Spinbutton into Gladevcp, where i set the limit of acceleration?
this way i can set an initial Hi acceleration, and then slow this into Gladevcp during axis running.
Any ideas?
Thanks, Davide.
Please Log in or Create an account to join the conversation.
10 Jan 2012 17:20 #16540
by dab77
Replied by dab77 on topic Re:Limit3 question.
I would like to try this way, but sincerely i don't know which pin can I feed limit3 with..
or, better, where can i after plug the output?
or, better, where can i after plug the output?
Please Log in or Create an account to join the conversation.
10 Jan 2012 17:51 #16542
by ArcEye
Replied by ArcEye on topic Re:Limit3 question.
Hi
Haven't tried it but would have thought
stepgen.N.maxaccel which is a RW param would be a good place to start
When emc starts, this is set to the MAX_ACCELERATION figure for that axis from the .ini file
Unless you are doing something very clever, would appear to just need a limit1 component to define the bounds within which the acceleration can be adjusted.
regards
Haven't tried it but would have thought
stepgen.N.maxaccel which is a RW param would be a good place to start
When emc starts, this is set to the MAX_ACCELERATION figure for that axis from the .ini file
Unless you are doing something very clever, would appear to just need a limit1 component to define the bounds within which the acceleration can be adjusted.
regards
Please Log in or Create an account to join the conversation.
10 Jan 2012 18:25 #16544
by andypugh
Replied by andypugh on topic Re:Limit3 question.
ArcEye wrote:
Stepgen-maxaccel is a parameter, it can't be netted. (you can only net pins)
The way to do it would be to insert a limit3 between the position-command output and the stepgen-cmd input, then alter the accel limit. However, that would tend to cause an f-error unless the feedback is short-circuited.
Unless you are doing something very clever, would appear to just need a limit1 component to define the bounds within which the acceleration can be adjusted.
Stepgen-maxaccel is a parameter, it can't be netted. (you can only net pins)
The way to do it would be to insert a limit3 between the position-command output and the stepgen-cmd input, then alter the accel limit. However, that would tend to cause an f-error unless the feedback is short-circuited.
Please Log in or Create an account to join the conversation.
10 Jan 2012 22:06 #16549
by dab77
Replied by dab77 on topic Re:Limit3 question.
ok, i'll try that. it's a stepper machine, so it will not be so important.
but, what if i do a 'setp stepgen.N.maxaccel my_hal_pin'
does it work?
i would like to set maxaccel with the value of a spinbutton, in the moment when i reset the estop (in the same moment i'm setting my_kins_values from other spinbuttons..), but i really don't know how.
while thinking on this i'll try as you suggest, Andy.
Thanks, Davide.
but, what if i do a 'setp stepgen.N.maxaccel my_hal_pin'
does it work?
i would like to set maxaccel with the value of a spinbutton, in the moment when i reset the estop (in the same moment i'm setting my_kins_values from other spinbuttons..), but i really don't know how.
while thinking on this i'll try as you suggest, Andy.
Thanks, Davide.
Please Log in or Create an account to join the conversation.
10 Jan 2012 22:39 #16551
by andypugh
Replied by andypugh on topic Re:Limit3 question.
dab77 wrote:
Yes, setp works with parameters.but, what if i do a 'setp stepgen.N.maxaccel my_hal_pin'
does it work?
Please Log in or Create an account to join the conversation.
Time to create page: 0.128 seconds