- Posts: 54
- Thank you received: 4
G38.x and acceleration (not stopping)
- arhi
- Offline
- Senior Member
-
Thanks for the HAL pins tip, off to gogle
Please Log in or Create an account to join the conversation.
- arhi
- Offline
- Senior Member
-
- Posts: 54
- Thank you received: 4
andypugh wrote: 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: 19899
- Thank you received: 4655
arhi wrote: 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
linuxcnc.org/docs/2.7/html/gcode/m-code.html#mcode:m68
Please Log in or Create an account to join the conversation.
- arhi
- Offline
- Senior Member
-
- Posts: 54
- Thank you received: 4
will try immediately
(it's 3:30am so will be running dry or my wife will throw me out but enough to see if it passes the syntax test
) Please Log in or Create an account to join the conversation.
- dgarrett
- Offline
- Platinum Member
-
- Posts: 492
- Thank you received: 297
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
- Offline
- Senior Member
-
- Posts: 54
- Thank you received: 4
andypugh wrote: For a first-cut. In the HAL file
Code: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
so I'm sure syntax is ok
but this is "not a pin"
(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.