GCodeProjects / GCodeWorkShop

GCodeWorkShop is text editor for CNC programmers.
GNU Lesser General Public License v3.0
20 stars 7 forks source link

An easy way to add ToolTips #24

Open ihateu3 opened 1 year ago

ihateu3 commented 1 year ago

We have a few older machines with legacy Delta controllers that I would like to add to tooltips for and also have edytornc identify based on the code like it does with other controls. I am unsure how to do this, and there doesn't seem to be an easy way to do this on the user end.

I believe if there was an easier way to add to tooltips, we could slowly build a file from edytornc users that would cover most machine controllers.

u-235 commented 1 year ago

Hi. I don't yet have a clear idea of how to make it easier to add a new system or tooltips.

I have come to the conclusion that in order to further develop the project, I need to add concepts such as system and machine to the code. And make tooltips and other services linked to the machine.

Another conclusion is that I need to reorganize the code so that it is easier to make changes. And that's why I'm doing refactoring now.

u-235 commented 1 year ago

Can I ask you to provide a programmer's manual for this system? It might help in adding a new system.

ihateu3 commented 1 year ago

MS CODES.docx

ihateu3 commented 1 year ago

The name of the machine is "machining systems" or "MS" for short. It uses a Delta controller, I want to say a Delta 40, and I think this manual covers Delta 30-60.

Main difference off the top of my head is that "M21" is spindle coolant thru instead of M88

ihateu3 commented 1 year ago

Also, text is handled with a "(T)" at the beginning and a "$" at the end.

For example: N200 (T)6" FACE MILL$

An "(M)" at the beginning is for Macro Example: N30(M)PCLEAR$

And a "(P)" is for Probing Example: N230(P)G1X4.766P4.766E14A1.0L1.0F40V20$

0hip commented 1 year ago

We have a few older machines with legacy Delta controllers that I would like to add to tooltips for and also have edytornc identify based on the code like it does with other controls. I am unsure how to do this, and there doesn't seem to be an easy way to do this on the user end.

I believe if there was an easier way to add to tooltips, we could slowly build a file from edytornc users that would cover most machine controllers.

Sin título

ihateu3 commented 1 year ago

We have a few older machines with legacy Delta controllers that I would like to add to tooltips for and also have edytornc identify based on the code like it does with other controls. I am unsure how to do this, and there doesn't seem to be an easy way to do this on the user end. I believe if there was an easier way to add to tooltips, we could slowly build a file from edytornc users that would cover most machine controllers.

Sin título

Yes, that would work. How did you do that?

0hip commented 1 year ago

Option A:

  1. open your cnc program file image

  2. image EdytorNC will create a file called "cnc_tips" into the same folder the cnc program file opened above is located. This tooltip will be valid for all the cnc files located in the same folder the tooltip is.

3.Edit at your will... Here I am doing it at FANUC part... Then save it. image

4. image

Artur (the developer) made it that easy.

PD. If you click there image a file (in this case FANUC.cfg) will be created in the same folder so that all files in this folder will be opened with FANUC highlight by default (and with all overrides inside cnc_tips for FANUC in this case)

;) image