Skip to content

Conversation

@Sigma1912
Copy link
Contributor

  • Remove rows 'G5x' and 'Rot'
  • Add rows for G28 and G30 offsets
  • Add column 'R' for rotation R value in offsets 'G54' .. 'G59.3'
  • Rename column 'name' to 'Comment'

@Sigma1912
Copy link
Contributor Author

Sigma1912 commented May 28, 2025

It seems that this widget might be used by GUIs other than Gmoccapy. I have not been able to find any though and have thus only tested this in Gmoccapy.

Looks like this:

offset_page
Rows 1-3 (Tool, G28, G30) are not editable. (The comments of those CAN be changed in the .pref file though)

@Sigma1912 Sigma1912 force-pushed the Gmoccapy_modify-offsetpage-widget branch 2 times, most recently from 054afd1 to 9053e8b Compare May 28, 2025 14:48
@hansu
Copy link
Member

hansu commented May 29, 2025

Really great, that you!
So this fixes #3064.

But I would suggest to use 'Rot' for rotation instead of 'R' to make sure that it's not a linear offset.

In which case was 'G5x' displayed? In the above mentioned Issue there is no 'G5x'.

@Sigma1912
Copy link
Contributor Author

Sigma1912 commented May 29, 2025

But I would suggest to use 'Rot' for rotation instead of 'R' to make sure that it's not a linear offset.

Sure, I'll push a fix.

In which case was 'G5x' displayed? In the above mentioned Issue there is no 'G5x'.

To be honest I'm not exactly sure where in the code the 'g54x' row was hidden but I guess it was realized that with highlighting the active offset the 'g5x' row was just duplicate information.

If this is not used by any other GUI, I'd really love to get rid of all the extra code that is not used in Gmoccapy.

@Sigma1912 Sigma1912 force-pushed the Gmoccapy_modify-offsetpage-widget branch from 9053e8b to 73b233a Compare May 29, 2025 13:16
@Sigma1912 Sigma1912 force-pushed the Gmoccapy_modify-offsetpage-widget branch from 73b233a to 31c8ebb Compare June 6, 2025 08:47
@hansu
Copy link
Member

hansu commented Jun 12, 2025

Looks good, only one question:

Rows 1-3 (Tool, G28, G30) are not editable.

Why? Intentional or not possible?

- Remove rows 'G5x' and 'Rot'
- Add rows for G28 and G30 offsets
- Add column 'Rot' for rotation R value in offsets 'G54' .. 'G59.3'
- Rename column 'name' to 'Comment'
- Editing a 'Tool' value  will call 'G43.1 [x,y,z,a,b,c,u,v,w] [value]'
- Editing a 'G28' value will write to the appropriate parameter[5161..5169]
- Editing a 'G30' value will write to the appropriate parameter[5181..5189]
@Sigma1912 Sigma1912 force-pushed the Gmoccapy_modify-offsetpage-widget branch from 31c8ebb to 9b0fa3d Compare June 13, 2025 11:58
@Sigma1912
Copy link
Contributor Author

Thanks for testing, I have expanded editing to all rows:

  • Editing a 'Tool' value will call 'G43.1 [x,y,z,a,b,c,u,v,w] [value]'
  • Editing a 'G28' value will write to the appropriate parameter[5161..5169]
  • Editing a 'G30' value will write to the appropriate parameter[5181..5189]

@hansu
Copy link
Member

hansu commented Jun 13, 2025

Rows 1-3 (Tool, G28, G30) are not editable.

Sorry I was a bit unclear, I thought about their comment column, but very cool to have them editable!

Only for the tool I am not sure if this could cause some trouble. Of course it is very handy, but imagine if you change the value there and don't change it in the tool table and then change to another tool and then back to this tool...

The default comments for G28 and G30 are now displayed as '0'. Can we have them just empty or name them G28 and G30? (I know a bit duplicated, but consistent to the rest)

And when I look at the tool row - do you think it is possible to write there the comment from the tool table?

PS: It is fine and in most cases also better to have multiple commits in a pull request. It allows me for example to trace your additions and makes is easier to fetch your additions. Fetch updates from a force-pushed HEAD is not so handy.

But anyway, already a good improvement!

@Sigma1912
Copy link
Contributor Author

Sigma1912 commented Jun 14, 2025

Only for the tool I am not sure if this could cause some trouble. Of course it is very handy, but imagine if you change the value there and don't change it in the tool table and then change to another tool and then back to this tool...

The offset page should give an overview of all applied offsets and also a way to quickly change them.
The offsets in the 'Tool' row do not necessarily only reflect the tool offset values of the loaded tool. These might also contain additional offsets set by G43.2.
While it would be possible to save these to the tool table I think saved offsets for tools in the tool table should be handled in the tool table page.

And when I look at the tool row - do you think it is possible to write there the comment from the tool table?

Following the reasons above I would rather put a note like 'NOT saved to tooltable!' in the comment of the 'Tool' row. The comment from the tool table is already displayed in the 'Tool Information' frame below the offset page.
comment

toolinfo

@hansu
Copy link
Member

hansu commented Jun 14, 2025

The offsets in the 'Tool' row do not necessarily only reflect the tool offset values of the loaded tool. These might also contain additional offsets set by G43.2.

Yes of course

While it would be possible to save these to the tool table I think saved offsets for tools in the tool table should be handled in the tool table page.

No I don't want to change the tool table from here as well.

Yeah maybe it's better to not have the comment from the tool table there to not give the impression that this corresponds always to the tool table.
Maybe a comment like "Working offset" ?

@Sigma1912
Copy link
Contributor Author

I've pushed the change you can easily change the default comment for the 'Tool' row.

@Sigma1912 Sigma1912 force-pushed the Gmoccapy_modify-offsetpage-widget branch from 9f0891d to 1f22f1e Compare June 14, 2025 10:22
@hansu
Copy link
Member

hansu commented Jun 14, 2025

👍
It wasn't my intention to dictate you what should be in the comment column, it was more to throw out a suggestion.
But if you are fine with that, we can keep it.

@hansu hansu merged commit 0f49b14 into LinuxCNC:master Jun 15, 2025
8 checks passed
@Sigma1912 Sigma1912 deleted the Gmoccapy_modify-offsetpage-widget branch June 15, 2025 08:55
@hansu hansu mentioned this pull request Jul 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants