Lathe Macros

More
17 May 2023 15:57 #271546 by Baldorcete
Replied by Baldorcete on topic Lathe Macros
Just to let you know, I'm having exactly the same problem, you are not alone. Button doesn't show. 

I'm pretty sure the button is under the image, take a look at this screenshot

 

I didn't want to dive ni glade and other things, but since i'm at it, I will reread the late pages of this post and try to find why the button is so timid.

LinuxCNC 2.8, raspbery pi 4, whatever debian is in the downlodoable image for LinuxCNC 2.8 for pi.

 
Attachments:

Please Log in or Create an account to join the conversation.

More
17 May 2023 17:53 #271551 by Baldorcete
Replied by Baldorcete on topic Lathe Macros
Firts data entry. sim-gmoccapy-lathe-lathe-macros works as expected (I did't know it existed). Time to start comparing files Hopefully I do not need to start glade SDK.

More than two months since I last had a look at this threas, plenty of usefull information here for my problem.

Please Log in or Create an account to join the conversation.

More
17 May 2023 18:19 - 17 May 2023 18:26 #271559 by Baldorcete
Replied by Baldorcete on topic Lathe Macros
Second data entry: Replacing lathemacro.ui with the one in the example shows the button. Of course, other things break.

If I'm remembering rigth, I downloaded the last available verision for LinuxCNC 2.8, just copied to the config dir, and everithing minus the play button worked. I can not find now the page or the link I downloaded

Must compare lathemacro.ui from the example and the one downloaded, an see what are the relevant diferences. For starters, they are very diferent sizes.

lathemacro.ui is the one that does not work. lathemacro.example.ui is the one from the example.

Any hint at what file I must look to find the exact lathemacro version I downloaded'

 
Attachments:
Last edit: 17 May 2023 18:26 by Baldorcete. Reason: Forget last question.

Please Log in or Create an account to join the conversation.

More
17 May 2023 21:17 #271568 by andypugh
Replied by andypugh on topic Lathe Macros
This version of the interface uses a sparsely-populated transparent table to position the number boxes. The two files contain different numbers of pointless
<child>
                  <placeholder/>
                </child>
lines. If you delete all of those the file shrinks to 132k.

However, the Glade editor will tend to put them back in again.
(It's worth taking them out though, it really speeds up loading in the editor)

I don't actually use the button, as I don't really approve of touchscreens causing axis movement. I have a hardware button to start the routines on my systems. I accept that's no help to you though.

Can you use the dev version of LinuxCNC? The Gtk3 / Python 3 version has betted graphics and more cycles.

Please Log in or Create an account to join the conversation.

More
18 May 2023 08:58 #271597 by Baldorcete
Replied by Baldorcete on topic Lathe Macros
Moving to 2.9 is a different project. First want to have 2.8 just working as I like, then start experimenting with 2.9. Currentlly using hardware version control.... Just a base, known to work bootable pen drive, an a bunch alternative ones for experimenting. :-)

If I can't have lathemacros working in my base installation this week, I will forget about them and try again when moving to a new LinuxCNC version.

Please Log in or Create an account to join the conversation.

More
18 May 2023 10:40 #271602 by andypugh
Replied by andypugh on topic Lathe Macros
Looking in detail at the XML I think that I can see the difference:
 NOT WORKING
 
 
             <object class="GtkTable" id="table3">
                <property name="visible">True</property>
                <property name="can_focus">False</property>
                <property name="n_rows">20</property>
                <property name="n_columns">12</property>
                <property name="homogeneous">True</property>
                <child>
                  <object class="GtkButton" id="bore.action">
                    <property name="width_request">50</property>
                    <property name="height_request">20</property>
                    <property name="visible">True</property>
                    <property name="can_focus">True</property>
                    <property name="receives_default">True</property>
                    <property name="related_action">bore.go</property>
                    <property name="use_action_appearance">False</property>
                    <property name="use_underline">True</property>
                    <child>
                      <object class="GtkImage" id="image4">
                        <property name="visible">True</property>
                        <property name="can_focus">False</property>
                        <property name="icon_name">media-playback-start</property>
                      </object>
                    </child>
                  </object>
                  <packing>
                    <property name="left_attach">10</property>
                    <property name="right_attach">12</property>
                    <property name="top_attach">18</property>
                    <property name="bottom_attach">20</property>
                    <property name="x_options">GTK_EXPAND | GTK_SHRINK | GTK_FILL</property>
                    <property name="y_options">GTK_EXPAND | GTK_SHRINK | GTK_FILL</property>
                  </packing>
                </child>
                
                
WORKING

             <object class="GtkTable" id="table3">
                <property name="visible">True</property>
                <property name="can_focus">False</property>
                <property name="n_rows">20</property>
                <property name="n_columns">12</property>
                <property name="homogeneous">True</property>
                <child>
                  <object class="GtkEventBox" id="eventbox26">
                    <property name="visible">True</property>
                    <property name="can_focus">False</property>
                    <child>
                      <object class="GtkButton" id="bore.action">
                        <property name="use_action_appearance">False</property>
                        <property name="related_action">bore.go</property>
                        <property name="width_request">50</property>
                        <property name="height_request">20</property>
                        <property name="visible">True</property>
                        <property name="can_focus">True</property>
                        <property name="receives_default">True</property>
                        <property name="use_underline">True</property>
                        <child>
                          <object class="GtkImage" id="image4">
                            <property name="visible">True</property>
                            <property name="can_focus">False</property>
                            <property name="stock">gtk-media-play</property>
                          </object>
                        </child>
                      </object>
                    </child>
                  </object>
                  <packing>
                    <property name="left_attach">10</property>
                    <property name="right_attach">12</property>
                    <property name="top_attach">18</property>
                    <property name="bottom_attach">20</property>
                  </packing>
                </child>

In the working version the button is inside an eventbox, in the non-working version it is not.

Please Log in or Create an account to join the conversation.

More
18 May 2023 10:49 #271603 by andypugh
Replied by andypugh on topic Lathe Macros
I couldn't resist trying to fix this. Here is a new version of lathemacro.ui that appears to work for me.
Attachments:
The following user(s) said Thank You: tommylight, Clive S, Baldorcete

Please Log in or Create an account to join the conversation.

More
18 May 2023 14:50 #271612 by Baldorcete
Replied by Baldorcete on topic Lathe Macros
Thanks a lot.

Done. Results the only thing wrong with example file was not in the file, was the next problem to solve. Just needed to move the .ngc files to the right place.

As you said, beter to move all the buttons that cause the machine to move away from the touch screen, and will do later, gmoccapy will feel empty, when I build a proper contoll panel. Actually is the last item in a long list. Just started to modiffy the lathe two months ago, made first CNC chips this week, and still a lot of hardware modifications to do. (And just received a shipment of steel scraps a few hours ago)

Please Log in or Create an account to join the conversation.

More
18 May 2023 15:11 #271614 by andypugh
Replied by andypugh on topic Lathe Macros
My lathe uses Touchy. As I do almost everything with the macros I don't really miss the preview.

Please Log in or Create an account to join the conversation.

More
18 May 2023 17:57 #271615 by Baldorcete
Replied by Baldorcete on topic Lathe Macros
I really like the preview. Old school, preview and simulate when you can and it's reasonable. Heck, define a big Z tool offset and simulate phisically!! I have seen to many hard crashes by a missplaced character when coding some very simple program directly on the CNC. Simulatinons are cheap, repairs and redoing entire parts are expensive.

(And sorry for my poor english. You should have noticed by now it is not my native language)

Please Log in or Create an account to join the conversation.

Time to create page: 0.144 seconds
Powered by Kunena Forum