Arithmetic in .ini and .hal files

More
3 years 7 months ago #266323 by frogandspanner
Rather than doing dynamic arithmetic in hal, which is suitable for variables, there are some constants that I'd like to do arithmetic on to become a constant to be a setp on a pin.

e.g. something like
MYCONSTANT=MAX_LINEAR_VELOCITY*25.4

Is this possible?

Please Log in to join the conversation.

More
3 years 7 months ago #266382 by TOLP2
As far as I know this is not possible, would be a great improvement.

For now, I just write modified components for my Hal, which do have a param or pin to set for example the scale.

Please Log in to join the conversation.

More
3 years 7 months ago #266384 by phillc54
It is possible to use haltcl files 
linuxcnc.org/docs/devel/html/hal/haltcl.html
 

Please Log in to join the conversation.

Time to create page: 0.075 seconds
Powered by Kunena Forum