Traj and Display ini section vs min max velocity
15 Nov 2020 00:17 - 15 Nov 2020 01:26 #189410
by alkabal
Traj and Display ini section vs min max velocity was created by alkabal
hi
Something is unclear for me, why we need to configure min max velocity and acceleration at different place ? and one name not match for traj
doc 2.8 for [TRAJ]
DEFAULT_LINEAR_VELOCITY = 0.0167
DEFAULT_LINEAR_ACCELERATION = 2.0
MAX_LINEAR_VELOCITY = 5.0
MAX_LINEAR_ACCELERATION = 20.0
doc 2.8 Gmoccapy for [TRAJ]
DEFAULT_LINEAR_VELOCITY = 85.0
MAX_VELOCITY = 230.000
doc 2.8 for Display
DEFAULT_LINEAR_VELOCITY = .25
MIN_VELOCITY = .01
MAX_LINEAR_VELOCITY = 1.0
MIN_LINEAR_VELOCITY = .01
DEFAULT_ANGULAR_VELOCITY
MIN_ANGULAR_VELOCITY
MAX_ANGULAR_VELOCITY
Maybe this is not really important but i don't really understand why we can't put this in only one section ?
Br
Something is unclear for me, why we need to configure min max velocity and acceleration at different place ? and one name not match for traj
doc 2.8 for [TRAJ]
DEFAULT_LINEAR_VELOCITY = 0.0167
DEFAULT_LINEAR_ACCELERATION = 2.0
MAX_LINEAR_VELOCITY = 5.0
MAX_LINEAR_ACCELERATION = 20.0
doc 2.8 Gmoccapy for [TRAJ]
DEFAULT_LINEAR_VELOCITY = 85.0
MAX_VELOCITY = 230.000
doc 2.8 for Display
DEFAULT_LINEAR_VELOCITY = .25
MIN_VELOCITY = .01
MAX_LINEAR_VELOCITY = 1.0
MIN_LINEAR_VELOCITY = .01
DEFAULT_ANGULAR_VELOCITY
MIN_ANGULAR_VELOCITY
MAX_ANGULAR_VELOCITY
Maybe this is not really important but i don't really understand why we can't put this in only one section ?
Br
Last edit: 15 Nov 2020 01:26 by alkabal.
Please Log in or Create an account to join the conversation.
15 Nov 2020 00:25 - 15 Nov 2020 01:24 #189412
by alkabal
Replied by alkabal on topic Traj and Display ini section vs min max velocity
The result in my setup (started one years ago) are not understandable
my Traj
DEFAULT_LINEAR_VELOCITY = 2.5
DEFAULT_LINEAR_ACCELERATION = 70
MAX_LINEAR_VELOCITY = 70
MAX_LINEAR_ACCELERATION = 50.0
my Display
DEFAULT_LINEAR_VELOCITY = 50
MIN_LINEAR_VELOCITY = 0.5
MAX_LINEAR_VELOCITY = 70
DEFAULT_ANGULAR_VELOCITY = 25
MIN_ANGULAR_VELOCITY = 1
MAX_ANGULAR_VELOCITY = 30
my Traj
DEFAULT_LINEAR_VELOCITY = 2.5
DEFAULT_LINEAR_ACCELERATION = 70
MAX_LINEAR_VELOCITY = 70
MAX_LINEAR_ACCELERATION = 50.0
my Display
DEFAULT_LINEAR_VELOCITY = 50
MIN_LINEAR_VELOCITY = 0.5
MAX_LINEAR_VELOCITY = 70
DEFAULT_ANGULAR_VELOCITY = 25
MIN_ANGULAR_VELOCITY = 1
MAX_ANGULAR_VELOCITY = 30
Last edit: 15 Nov 2020 01:24 by alkabal.
Please Log in or Create an account to join the conversation.
15 Nov 2020 01:18 - 15 Nov 2020 01:18 #189415
by alkabal
Replied by alkabal on topic Traj and Display ini section vs min max velocity
Checking the code
github.com/LinuxCNC/linuxcnc/blob/2.8/sr...pncconf/build_INI.py
for TRAJ i found :
DEFAULT_LINEAR_VELOCITY
MAX_LINEAR_VELOCITY
DEFAULT_ANGULAR_VELOCITY
MAX_ANGULAR_VELOCITY
for DISPLAY
DEFAULT_LINEAR_VELOCITY
MAX_LINEAR_VELOCITY
MIN_LINEAR_VELOCITY
DEFAULT_ANGULAR_VELOCITY
MAX_ANGULAR_VELOCITY
MIN_ANGULAR_VELOCITY
i'm lost
github.com/LinuxCNC/linuxcnc/blob/2.8/sr...pncconf/build_INI.py
for TRAJ i found :
DEFAULT_LINEAR_VELOCITY
MAX_LINEAR_VELOCITY
DEFAULT_ANGULAR_VELOCITY
MAX_ANGULAR_VELOCITY
for DISPLAY
DEFAULT_LINEAR_VELOCITY
MAX_LINEAR_VELOCITY
MIN_LINEAR_VELOCITY
DEFAULT_ANGULAR_VELOCITY
MAX_ANGULAR_VELOCITY
MIN_ANGULAR_VELOCITY
i'm lost
Last edit: 15 Nov 2020 01:18 by alkabal.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19209
- Thank you received: 6438
15 Nov 2020 01:26 #189417
by tommylight
Replied by tommylight on topic Traj and Display ini section vs min max velocity
Traj = what the trajectory planner in LinuxCNC uses
Display = what is displayed on the GUI
As far as i know, the Traj wins over Display, so always i set them both at the same values, just so they do not fight !
Display = what is displayed on the GUI
As far as i know, the Traj wins over Display, so always i set them both at the same values, just so they do not fight !
The following user(s) said Thank You: alkabal
Please Log in or Create an account to join the conversation.
15 Nov 2020 01:29 - 15 Nov 2020 01:43 #189418
by alkabal
Replied by alkabal on topic Traj and Display ini section vs min max velocity
Thanks for reply
I suspect some typo mistake in documentation :
doc 2.8 Gmoccapy for [TRAJ]
MAX_VELOCITY = 230.000 vs MAX_LINEAR_VELOCITY
doc 2.8 for [TRAJ]
DEFAULT_LINEAR_ACCELERATION = 2.0 vs DEFAULT_ANGULAR_VELOCITY
MAX_LINEAR_ACCELERATION = 20.0 vs MAX_ANGULAR_VELOCITY
doc 2.8 for Display
MIN_VELOCITY = .01 need to be removed because we can found the good one at the bottom (MIN_LINEAR_VELOCITY)
edit : i have opened a issue about other possible bad information and speak also about that
github.com/LinuxCNC/linuxcnc/issues/977
I suspect some typo mistake in documentation :
doc 2.8 Gmoccapy for [TRAJ]
MAX_VELOCITY = 230.000 vs MAX_LINEAR_VELOCITY
doc 2.8 for [TRAJ]
DEFAULT_LINEAR_ACCELERATION = 2.0 vs DEFAULT_ANGULAR_VELOCITY
MAX_LINEAR_ACCELERATION = 20.0 vs MAX_ANGULAR_VELOCITY
doc 2.8 for Display
MIN_VELOCITY = .01 need to be removed because we can found the good one at the bottom (MIN_LINEAR_VELOCITY)
edit : i have opened a issue about other possible bad information and speak also about that
github.com/LinuxCNC/linuxcnc/issues/977
Last edit: 15 Nov 2020 01:43 by alkabal.
Please Log in or Create an account to join the conversation.
15 Nov 2020 02:08 - 15 Nov 2020 02:18 #189421
by alkabal
Replied by alkabal on topic Traj and Display ini section vs min max velocity
FInally i see at man place
DEFAULT_LINEAR_ACCELERATION
MAX_LINEAR_ACCELERATION
SO this is not a typo error but these value seem to be ignored by pncconf
Really in my opinion these parts need to be clarified (maybee only for my own knowledge
It is full needed value like this ?
[TRAJ]
DEFAULT_LINEAR_VELOCITY = 100
MAX_LINEAR_VELOCITY = 300
DEFAULT_ANGULAR_VELOCITY = 25
MAX_ANGULAR_VELOCITY = 30
DEFAULT_LINEAR_ACCELERATION = 70
MAX_LINEAR_ACCELERATION = 150
[DISPLAY]
DEFAULT_LINEAR_VELOCITY = 100
MAX_LINEAR_VELOCITY = 300
DEFAULT_ANGULAR_VELOCITY = 25
MAX_ANGULAR_VELOCITY = 30
MIN_LINEAR_VELOCITY = 0.5
MIN_ANGULAR_VELOCITY = 1
DEFAULT_LINEAR_ACCELERATION
MAX_LINEAR_ACCELERATION
SO this is not a typo error but these value seem to be ignored by pncconf
Really in my opinion these parts need to be clarified (maybee only for my own knowledge
It is full needed value like this ?
[TRAJ]
DEFAULT_LINEAR_VELOCITY = 100
MAX_LINEAR_VELOCITY = 300
DEFAULT_ANGULAR_VELOCITY = 25
MAX_ANGULAR_VELOCITY = 30
DEFAULT_LINEAR_ACCELERATION = 70
MAX_LINEAR_ACCELERATION = 150
[DISPLAY]
DEFAULT_LINEAR_VELOCITY = 100
MAX_LINEAR_VELOCITY = 300
DEFAULT_ANGULAR_VELOCITY = 25
MAX_ANGULAR_VELOCITY = 30
MIN_LINEAR_VELOCITY = 0.5
MIN_ANGULAR_VELOCITY = 1
Last edit: 15 Nov 2020 02:18 by alkabal.
Please Log in or Create an account to join the conversation.
15 Nov 2020 04:55 #189434
by cmorley
Replied by cmorley on topic Traj and Display ini section vs min max velocity
One problem that comes up is these are just variables - it depends on what reads them.
eg [DISPLAY] is for screens and it's up to the GUI builder how he uses them.
[DISPLAY]
DEFAULT_LINEAR_VELOCITY = 100
MAX_LINEAR_VELOCITY = 300
MIN_LINEAR_VELOCITY = 0.5
Generally, by convention, those setting should control the GUI's jog slider.
max slider is set at 300 units per second
min slider is set at .5 units per second
and when started the GUI defaults the slider to 100 units per second.
[TRAJ]
is used internally by linuxcnc IIRC
MAX_LINEAR_VELOCITY = 300
means the fastest speed any joint? axis? can move is 300 units per second
You might want to set the max jog of an axis slower then the absolute max velocity of the machine, and with separate variables you can.
But over the years GUIs have read TRAJ and/or DISPLAY so it can be confusing.
For instance in qtvcp it looks for DISPLAY = MAX_LINEAR_VELOCITY but if it's not there it will look for TRAJ - MAX_LINEAR_VELOCITY and if that is not there it uses it's own default.
We don't don;t have an official INI setting convention for GUIs but most are close.
Chris
eg [DISPLAY] is for screens and it's up to the GUI builder how he uses them.
[DISPLAY]
DEFAULT_LINEAR_VELOCITY = 100
MAX_LINEAR_VELOCITY = 300
MIN_LINEAR_VELOCITY = 0.5
Generally, by convention, those setting should control the GUI's jog slider.
max slider is set at 300 units per second
min slider is set at .5 units per second
and when started the GUI defaults the slider to 100 units per second.
[TRAJ]
is used internally by linuxcnc IIRC
MAX_LINEAR_VELOCITY = 300
means the fastest speed any joint? axis? can move is 300 units per second
You might want to set the max jog of an axis slower then the absolute max velocity of the machine, and with separate variables you can.
But over the years GUIs have read TRAJ and/or DISPLAY so it can be confusing.
For instance in qtvcp it looks for DISPLAY = MAX_LINEAR_VELOCITY but if it's not there it will look for TRAJ - MAX_LINEAR_VELOCITY and if that is not there it uses it's own default.
We don't don;t have an official INI setting convention for GUIs but most are close.
Chris
Please Log in or Create an account to join the conversation.
15 Nov 2020 12:01 #189450
by alkabal
Replied by alkabal on topic Traj and Display ini section vs min max velocity
Hi
Thanks a lot for this explanation now i understand really better.
But i suspect some typo mistake in documentation :
doc 2.8 Gmoccapy for [TRAJ]
MAX_VELOCITY vs MAX_LINEAR_VELOCITY
doc 2.8 for Display
MIN_VELOCITY = .01
possible that need to be removed because we can found the "imh" good one at the bottom (MIN_LINEAR_VELOCITY)
This setting are only used for non trivial kinematics ?
doc 2.8 for [TRAJ]
DEFAULT_LINEAR_ACCELERATION
MAX_LINEAR_ACCELERATION
Br
Thanks a lot for this explanation now i understand really better.
But i suspect some typo mistake in documentation :
doc 2.8 Gmoccapy for [TRAJ]
MAX_VELOCITY vs MAX_LINEAR_VELOCITY
doc 2.8 for Display
MIN_VELOCITY = .01
possible that need to be removed because we can found the "imh" good one at the bottom (MIN_LINEAR_VELOCITY)
This setting are only used for non trivial kinematics ?
doc 2.8 for [TRAJ]
DEFAULT_LINEAR_ACCELERATION
MAX_LINEAR_ACCELERATION
Br
Please Log in or Create an account to join the conversation.
15 Nov 2020 21:51 #189481
by cmorley
Replied by cmorley on topic Traj and Display ini section vs min max velocity
looking in the source code (gmoccapy/getiniinfo.py)
Gmoccapy does indeed look at [TRAJ] for jog velocity.
looks for DEFAULT_LINEAR_VELOCITY first and if it can't find it then MAX_LINEAR_VELOCITY.
same for max velocity controls
Then checks [DISPLAY] for:
DEFAULT_ANGULAR_VELOCITY
MAX_ANGULAR_VELOCITY
MIN_ANGULAR_VELOCITY
and
spindle limits, override settings
I see nothing for [DISPLAY] MIN_VELOCITY or [TRAJ] MAX_VELOCITY
Gmoccapy does indeed look at [TRAJ] for jog velocity.
looks for DEFAULT_LINEAR_VELOCITY first and if it can't find it then MAX_LINEAR_VELOCITY.
same for max velocity controls
Then checks [DISPLAY] for:
DEFAULT_ANGULAR_VELOCITY
MAX_ANGULAR_VELOCITY
MIN_ANGULAR_VELOCITY
and
spindle limits, override settings
I see nothing for [DISPLAY] MIN_VELOCITY or [TRAJ] MAX_VELOCITY
Please Log in or Create an account to join the conversation.
15 Nov 2020 22:12 - 15 Nov 2020 22:14 #189482
by alkabal
Replied by alkabal on topic Traj and Display ini section vs min max velocity
I have do some similar checking, i suspect this is only typo error inside documentation that can be changed.
linuxcnc.org/docs/2.8/html/config/ini-co...tml#_display_section
linuxcnc.org/docs/2.8/html/gui/gmoccapy....moccapy:traj-section
imo this does not help for understand lool
linuxcnc.org/docs/2.8/html/config/ini-co...tml#_display_section
linuxcnc.org/docs/2.8/html/gui/gmoccapy....moccapy:traj-section
imo this does not help for understand lool
Last edit: 15 Nov 2020 22:14 by alkabal.
Please Log in or Create an account to join the conversation.
Time to create page: 0.089 seconds