G38.x and acceleration (not stopping)
- arhi
-
Topic Author
- Offline
- Senior Member
-
- Posts: 54
- Thank you received: 4
It has come up before, but i know of no easy solution.
well if the M201/202/204 are not supported by the linuxCNC there's definitely no easy way to do it ... I'll figure something out in hw, just wanted to check if there are sw solutions first

Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
- Posts: 23279
- Thank you received: 4933
Yes, exactly what I want
to stop "faster then set limit" ... is that possible?
No, because the whole point of the limit is to be, well, a limit.
You could look at changing the limit "on the fly" look for HAL pins called "ini.***". You could pass different values to those prior to a probe move.
Please Log in or Create an account to join the conversation.
- arhi
-
Topic Author
- Offline
- Senior Member
-
- Posts: 54
- Thank you received: 4
Thanks for the HAL pins tip, off to gogle

Please Log in or Create an account to join the conversation.
- arhi
-
Topic Author
- Offline
- Senior Member
-
- Posts: 54
- Thank you received: 4
You could look at changing the limit "on the fly" look for HAL pins called "ini.***". You could pass different values to those prior to a probe move.
www.linuxcnc.org/docs/2.7/html/remap/rem...i_file_configuration
enable #<_ini[section]name> read only variables: 4
if set, the interpreter will fetch read-only values from the ini file through this special variable syntax.
enable #<_hal[Hal item]> read only variables: 8
if set, the interpreter will fetch read-only values from HAL file through this special variable syntax.
here it's said they are readonly .. I know how to read the ini.0.maxacceleration but how to write to it?
I doubt this is going to happen in sw .. will have to do it in hw

Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
- Posts: 23279
- Thank you received: 4933
www.linuxcnc.org/docs/2.7/html/remap/rem...i_file_configuration
enable #<_ini[section]name> read only variables:
That's a different thing.
That is reading values from the INI file into G-code.
I was talking about the HAL pins such as ini.0.maxacceleration which you can manipulate in HAL.
For a first-cut. In the HAL file
net Z-accel motion.analog-out-00 => ini.2.maxacceleration
linuxcnc.org/docs/2.7/html/gcode/m-code.html#mcode:m68
Please Log in or Create an account to join the conversation.
- arhi
-
Topic Author
- Offline
- Senior Member
-
- Posts: 54
- Thank you received: 4
will try immediately


Please Log in or Create an account to join the conversation.
- dgarrett
- Offline
- Platinum Member
-
- Posts: 567
- Thank you received: 325
in a [HAL]HALFILE (but they can be specified in a [HAL]POSTGUI_HALFILE
if the chosen gui supports it or in independent applications that
access hal pins after starting LinuxCNC.
$ man milltask
...
These pins cannot be linked or set in a halfile specified
by [HAL]HALFILE. They can be altered by independent halcmd
programs or by GUIs that support [HAL]POSTGUI_HALFILE. The
inifile is not auto‐ matically updated with these values
but can be updated using the calibration program
(emccalib.tcl) when using a [HAL]POSTGUI_HALFILE.
Please Log in or Create an account to join the conversation.
- arhi
-
Topic Author
- Offline
- Senior Member
-
- Posts: 54
- Thank you received: 4
For a first-cut. In the HAL file
net Z-accel motion.analog-out-00 => ini.2.maxacceleration
not working

not a single ini.*.* is recognised, linuxcnc fails to start (not a pin...)
for e.g. this works
net lalala motion.analog-in-00 <= axis.0.backlash-vel
so I'm sure syntax is ok
but this is "not a pin"
net lalala motion.analog-in-00 <= ini.0.backlash
(or any other ini.*.* tried 5+ different ones)
@dgarrett, what you wrote explains why this don't work but I'm not sure I understand the "They can be altered by independent halcmd
programs or by GUIs that support [HAL]POSTGUI_HALFILE" ?! are you saying that I can create a M204 script that will change the ini.0.max_acceleration value using halcmd? I do not want to change the ini file, I just want to set new acceleration values for axis for "from M204 till another M204..) .. now I never made a Mxxx on the linuxcnc but iirc it's just a shell script that you can use to do whatever you want right? so halcmd blah blah blah ? any chance you can share a cmd that will change ini.0.max_acceleration value?

EDIT: looks like I can just halcmd net ... after linuxcnc started, now these pins are available ... any way to tell linuxcnc to exec a "Script" after loading?
Please Log in or Create an account to join the conversation.
- dgarrett
- Offline
- Platinum Member
-
- Posts: 567
- Thank you received: 325
linuxcnc.org/docs/2.7/html/config/ini-co...applications_sectionany way to tell linuxcnc to exec a "Script" after loading?
But note that ini hal pins are not evaluated while a program is running.
Please Log in or Create an account to join the conversation.
- arhi
-
Topic Author
- Offline
- Senior Member
-
- Posts: 54
- Thank you received: 4
Please Log in or Create an account to join the conversation.