- Posts: 492
- Thank you received: 297
G38.x and acceleration (not stopping)
- dgarrett
- Offline
- Platinum Member
-
Less
More
10 years 4 months ago - 10 years 4 months ago #75376
by dgarrett
But note that ini hal pins are not evaluated while a program is running.
Replied by dgarrett on topic G38.x and acceleration (not stopping)
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.
Last edit: 10 years 4 months ago by dgarrett.
The following user(s) said Thank You: arhi
Please Log in or Create an account to join the conversation.
- arhi
- Offline
- Senior Member
-
Less
More
- Posts: 54
- Thank you received: 4
10 years 4 months ago #75379
by arhi
Replied by arhi on topic G38.x and acceleration (not stopping)
custom_postgui.hal seems to be proper place to put these net's
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
-
Less
More
- Posts: 19899
- Thank you received: 4655
10 years 4 months ago #75393
by andypugh
I had thought that the pins were "made" by motion, but it seems not.
Do you know which section of the docs do they appear in, for future reference?
They are regular hal pins rather than parameters? So they can be manipulated by a net, though won't be updated while a program is running?
Replied by andypugh on topic G38.x and acceleration (not stopping)
dgarrett wrote: Please note that ini.* hal pins are created too late to be used
in a [HAL]HALFILE (but they can be specified in a [HAL]POSTGUI_HALFILE
I had thought that the pins were "made" by motion, but it seems not.
Do you know which section of the docs do they appear in, for future reference?
They are regular hal pins rather than parameters? So they can be manipulated by a net, though won't be updated while a program is running?
Please Log in or Create an account to join the conversation.
- arhi
- Offline
- Senior Member
-
Less
More
- Posts: 54
- Thank you received: 4
10 years 4 months ago #75405
by arhi
Replied by arhi on topic G38.x and acceleration (not stopping)
not working 
the "syntax" goes but it ain't doing nothing
and the g-code:
all three moves are using exactly the same acceleration
the acceleration value is not changed
the "syntax" goes but it ain't doing nothing
Code:
arhimed@linuxCNC:~/linuxcnc/nc_files$ cat ../configs/mill25d/custom_postgui.hal
sets spindle-at-speed true
net X-accel motion.analog-out-00 => ini.0.max_acceleration
net Y-accel motion.analog-out-01 => ini.1.max_acceleration
net Z-accel motion.analog-out-02 => ini.2.max_acceleration
and the g-code:
Code:
G17
G21
#<_X-Accel-original> = #<_ini[AXIS_0]MAX_ACCELERATION>
#<_Y-Accel-original> = #<_ini[AXIS_1]MAX_ACCELERATION>
#<_Z-Accel-original> = #<_ini[AXIS_2]MAX_ACCELERATION>
T1
M6
(DEBUG, "default accel move")
F500
G1 X50
G1 X10
(DEBUG, "no accel move")
M68 E0 Q9999999
F500
G1 X50
G1 X10
(DEBUG, "slow accel move")
M68 E0 Q1
F500
G1 X50
G1 X10
(DEBUG, "restored accel move")
M68 E0 Q#<_X-Accel-original>
F500
G1 X50
G1 X10
M2
all three moves are using exactly the same acceleration
Please Log in or Create an account to join the conversation.
- dgarrett
- Offline
- Platinum Member
-
Less
More
- Posts: 492
- Thank you received: 297
10 years 4 months ago - 10 years 4 months ago #75406
by dgarrett
Replied by dgarrett on topic G38.x and acceleration (not stopping)
Do you know which section of the docs do they appear in, for future reference?
linuxcnc.org/docs/2.7/html/man/man1/milltask.1.htmlCode:$ man milltask
Also:
linuxcnc.org/docs/2.7/html/config/core-c...s.html#_ini_settings
Last edit: 10 years 4 months ago by dgarrett.
Please Log in or Create an account to join the conversation.
- dgarrett
- Offline
- Platinum Member
-
Less
More
- Posts: 492
- Thank you received: 297
10 years 4 months ago #75407
by dgarrett
forum.linuxcnc.org/forum/20-g-code/31025...pping?start=10#75376
Replied by dgarrett on topic G38.x and acceleration (not stopping)
all three moves are using exactly the same acceleration
the acceleration value is not changed
Code:
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.
Time to create page: 0.266 seconds