Formula as HAL parameter
14 Aug 2013 22:01 #37669
by eslavko
Formula as HAL parameter was created by eslavko
Hello...
Is it possible to use formula in HAL parameter?
For example in my HAL is lineand this works OK.
But what about something likeas stepgen acceleration should be 1.5 to 2 times of max acceleration?
Thanks
Is it possible to use formula in HAL parameter?
For example in my HAL is line
setp hm2_7i43.0.stepgen.02.dirsetup [AXIS_0]DIRSETUP
But what about something like
setp hm2_7i43.0.stepgen.02.maxaccel [AXIS_0]MAX_ACCELERATION * 1.5
Thanks
Please Log in or Create an account to join the conversation.
14 Aug 2013 22:55 - 14 Aug 2013 22:55 #37672
by ArcEye
Replied by ArcEye on topic Formula as HAL parameter
AFAIK you cannot assign a value based upon the result of a mathmatical operation in a hal file
You don't need to, because if the variable does not exist, you can just create it in your .ini file and assign it by [SECTION]Name
The only ways to use the ini file variables I can think of are
value = [SECTION]Value as in setp device.0.param [SECTION]Value
string = [SECTION](Name) as in loadrt [SECTION](NameToLoad)
I have never seen documentation for this, would be interested if there was some
regards
You don't need to, because if the variable does not exist, you can just create it in your .ini file and assign it by [SECTION]Name
The only ways to use the ini file variables I can think of are
value = [SECTION]Value as in setp device.0.param [SECTION]Value
string = [SECTION](Name) as in loadrt [SECTION](NameToLoad)
I have never seen documentation for this, would be interested if there was some
regards
Last edit: 14 Aug 2013 22:55 by ArcEye.
Please Log in or Create an account to join the conversation.
14 Aug 2013 23:20 #37675
by eslavko
Replied by eslavko on topic Formula as HAL parameter
I just asking as I'd like to avoid cnahging numbers in two files.
acceleration and max speed are that. And (I don't know why) max speed in stepgen must be higher than declared speed for axis. If backlash is used up to two times higher?!?
So when machine is configured and finding optimal values we must align two numbers in different file to be in sync (but not same).
I still don't get why I have max velocity declared in at least 3 places?!?
acceleration and max speed are that. And (I don't know why) max speed in stepgen must be higher than declared speed for axis. If backlash is used up to two times higher?!?
So when machine is configured and finding optimal values we must align two numbers in different file to be in sync (but not same).
I still don't get why I have max velocity declared in at least 3 places?!?
Please Log in or Create an account to join the conversation.
14 Aug 2013 23:39 #37676
by PCW
The stepgen maxvel (and stepgen maxaccel) must be set higher than the machine
maxvel and maxaccel since the stepgen must have headroom (the +25% or so)
to be able to do corrections when at the maximum machine velocity or acceleration
Replied by PCW on topic Formula as HAL parameter
And (I don't know why) max speed in stepgen must be higher than declared speed for axis.
The stepgen maxvel (and stepgen maxaccel) must be set higher than the machine
maxvel and maxaccel since the stepgen must have headroom (the +25% or so)
to be able to do corrections when at the maximum machine velocity or acceleration
Please Log in or Create an account to join the conversation.
Time to create page: 0.163 seconds