Lathe Macros

More
12 Mar 2023 14:15 #266491 by O.R
Replied by O.R on topic Lathe Macros
I added that EMBED_TAB_COMMAND, now i get following GLADE VCP error:
LINUXCNC - 2.8.4-1-gb7824717b
Machine configuration directory is '/home/sorvi/linuxcnc/configs/Lathe'
Machine configuration file is 'Lathe.ini'
Starting LinuxCNC...
Found file(REL): ./Lathe.hal
Waiting for component 'trivkins' to become ready.....Waited 3 seconds for master.  giving up.
...............Note: Using POSIX realtime


config string '0 out'
Found file(REL): ./custom.hal
note: MAXV     max: 20.000 units/sec 1200.000 units/min
note: LJOG     max: 20.000 units/sec 1200.000 units/min
note: LJOG default: 2.000 units/sec 120.000 units/min
note: jog_order='ZX'
note: jog_invert=set(['X'])
Waiting for component 'lathemacro' to become ready..............................
(gladevcp:1978): libglade-WARNING **: 15:41:38.559: Expected <glade-interface>.  Got <interface>.

(gladevcp:1978): libglade-WARNING **: 15:41:38.570: did not finish in PARSER_FINISH state
**** GLADE VCP ERROR:    With xml file: lathemacro.ui : could not create GladeXML object
........
<commandline>:0: gladevcp exited without becoming ready
Embeded tab command "halcmd loadusr -Wn lathemacro gladevcp -c lathemacro -U notouch=1 -U norun=0 -u lathehandler.py -x 331350450 lathemacro.ui" exited with error: 1
Shutting down and cleaning up LinuxCNC...
task: 1428 cycles, min=0.000573, max=0.071143, avg=0.010143, 0 latency excursions (> 10x expected cycle time of 0.010000s)
Note: Using POSIX realtime
LinuxCNC terminated with an error.  You can find more information in the log:
    /home/sorvi/linuxcnc_debug.txt
and
    /home/sorvi/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal

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

  • andypugh
  • andypugh's Avatar Topic Author
  • Offline
  • Moderator
  • Moderator
More
12 Mar 2023 14:48 #266493 by andypugh
Replied by andypugh on topic Lathe Macros
Which version of Glade do you have installed, and which version of the macros are you using?

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

More
12 Mar 2023 15:02 #266494 by O.R
Replied by O.R on topic Lathe Macros
I have not separately installed glade, what version should I have? Macros are v3.0.

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

  • andypugh
  • andypugh's Avatar Topic Author
  • Offline
  • Moderator
  • Moderator
More
12 Mar 2023 16:33 #266500 by andypugh
Replied by andypugh on topic Lathe Macros
If you are running Debian Buster or earlier you probably want the V2 macros.
Or, you can try installing the latest Glade, but there is a chance that will break any other GladeVCP panels you are using.
The Synaptic package manager should indicate which version of Glade you have installed.

github.com/andypugh/LatheMacros/releases

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

More
12 Mar 2023 19:26 #266507 by O.R
Replied by O.R on topic Lathe Macros
I'm using buster, I have glade V3.22.1-4 and glade-gtk2 3.8.6-1. I tried V2 macros and now i can see cycles tab, but text boxes are bit too small and i don't have that same "play button". I tried higher resolution but that did not fixed it.

Could this be related to the problem:
(gladevcp:1576): gtk-xfce-engine-CRITICAL **: 20:29:19.272: draw_box_gap: assertion 'height >= -1' failed
task: main loop took 0.104370 seconds

 
Attachments:

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

  • andypugh
  • andypugh's Avatar Topic Author
  • Offline
  • Moderator
  • Moderator
More
12 Mar 2023 21:01 #266515 by andypugh
Replied by andypugh on topic Lathe Macros
The option to show or hide the "Play" button from the command-line isn't in that version. There is a HAL pin to connect to a physical button (which is how I use it) but as far as I can see the button should be visible in the downloaded version of the files (possibly not for face and radius, though...)

If you run the sample gmoccapy config from the LinuxCNC config picker (sim-gmoccapy-lathe-lathe-macros) do you see the Play button?

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

More
13 Mar 2023 20:19 #266603 by O.R
Replied by O.R on topic Lathe Macros
I did not find where Cycles tab are in gmoccapy. Can you show example how to connect physical button to macro cycles start or how to make it work with Axis original play button.

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

  • andypugh
  • andypugh's Avatar Topic Author
  • Offline
  • Moderator
  • Moderator
More
13 Mar 2023 22:36 #266612 by andypugh
Replied by andypugh on topic Lathe Macros
It just appears at the top of the preview window for me

 

And the macros have the play button:

 
Attachments:

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

More
14 Mar 2023 19:46 #266689 by O.R
Replied by O.R on topic Lathe Macros
I like to use Axis instead that gmoccapy GUI, so i need help how to start macro cycles when I use Axis GUI. I do not even have that preview tab when i try gmoccapy. 

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

  • andypugh
  • andypugh's Avatar Topic Author
  • Offline
  • Moderator
  • Moderator
More
14 Mar 2023 19:51 #266691 by andypugh
Replied by andypugh on topic Lathe Macros
Do you have a preview tab in Axis? This might be pointing at a more deep-seated issue.

If you open the lathemacro.ui file in the Glade editor, can you see the play buttons? Are they set to "visible" in their properties?

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

Time to create page: 0.184 seconds
Powered by Kunena Forum