Are there no increase/decrease spindle speed buttons in Gmoccapy?

More
13 Oct 2024 09:55 - 13 Oct 2024 10:16 #311943 by Dougal9887

newbynobi post=89463 userid=3278Please find attached two files.
Just place both files in your config dir.

Than add the following lines to the [DISPLAY] section of your INI file.

EMBED_TAB_NAME = Spindle Button
EMBED_TAB_LOCATION = box_custom_4
EMBED_TAB_COMMAND = gladevcp -x {XID} -H spindle_button.hal spindle_button.glade


After starting your config you have spindle increase and decrease button.

Norbert
Hi,
I have resurrected this thread as it is just what I would like to have.
The respondent above provides the solution and clearly states what should go in the .ini file, but is not specific as to which configuration files should contain the lines provided in the two attached files.

He states:

"# just place                                                                                          
# - spindle_button.glade                                                                     
# - spindle_button.hal                                                                         
# in your config dir "

Where do these line go?

I presume the lines

"net increase spindle_button.btn_spindle_increase => halui.spindle.increase
net decrease spindle_button.btn_spindle_decrease => halui.spindle.decrease"

will be placed in the .hal file?

And lastly, where does the entire contents of the second file go?

I have attached a copy of the files referred to.
 

Many thanks for any help with this.
Dougal. 

File Attachment:

File Name: SpindleBut...0-13.txt
File Size:5 KB

Attachments:
Last edit: 13 Oct 2024 10:16 by Dougal9887.

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

More
16 Oct 2024 20:05 #312295 by Dougal9887
SOLVED.

Now seems a daft question above, but I only had access to the internet on a Windows PC and couldn't do much with the two files except open them on a new browser page.

Linuxcnc computer is now internet connected and the two files were easily saved to config. Only change to get the buttons working was

halui.spindle.0.increase halui.spindle.0.decrease

as taken from a previous post, for which I am thankful.
The following user(s) said Thank You: tommylight

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

More
16 Nov 2024 22:09 #314628 by swanie2000
Hi All,
  I have been reading this forum for weeks now, and have managed to solve most of my problems without needing to ask a stupid question, But the time has come. Be gentle, this is my first post.   I will attach my files to this to help.
Current Setup:
Dedicated computer running Linux Mint Debian Edition 6 "FAYE"
LinuxCNC 3.4.1
Gmoccapy gui
3040 Chinese CNC controller.
XYZ motion, although it also had the forth Axis, I am not including that in my setup.
7i76E motion controller card
0-10V AVI
24000 RPM
800W water cooled Chinese spindle.

My files have been created with the PNCCONFIG wizard.
I have now reached a point where every time I run the wizard, it breaks something, and I have to roll back changes.
(Even when I change NOTHING, just click through the wizard, it still breaks my setup, and will not start.)

I have been carefully trying to edit my files manually, baby steps, and backups!


PROBLEM:
I am having trouble getting the spindle to correctly work in the Gmoccapy display.
I can turn on the spindle, and turn off the spindle
I have the spindle start at 5000 RPM, and this works.
The bar graph on the bottom shows  "5000                  0                  24000"
It starts at 5000, as that is my (min) setting, and the "0" in the middle would display a percentage if I could only increase it.
I cannot adjust the speed of the spindle in the Gmoccapy GUI as there are no speed controls.

I want to add speed controls. and I have tried to understand what is written here in this post,
but I just cannot get my head around what I am doing wrong.

May I ask a member here to please look over my files? Perhaps it is something easy?

Thanks in advance!
Swanie

 

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

More
21 Nov 2024 01:11 #314955 by swanie2000

Please find attached two files.
Just place both files in your config dir.

Than add the following lines to the [DISPLAY] section of your INI file.
EMBED_TAB_NAME = Spindle Button
EMBED_TAB_LOCATION = box_custom_4
EMBED_TAB_COMMAND = gladevcp -x {XID} -H spindle_button.hal spindle_button.glade


After starting your config you have spindle increase and decrease button.

Norbert
h
 

Hi,
  I did just like you suggested.
I saved the two files to my config directory.
I copy and paste the 3 lines of code above into the [DISPLAY] section (very bottom of that section).

After starting up the system, I do not see where the buttons are at?

Was there something else I needed top do?

Swanie
 

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

More
21 Nov 2024 07:26 #314967 by Aciera
Open a terminal (Ctrl+Alt+t) and enter this command
linuxcnc

then choose your config and check for errors in the terminal output.

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

More
22 Nov 2024 01:19 #315014 by swanie2000

Open a terminal (Ctrl Alt t) and enter this command
linuxcncthen choose your config and check for errors in the terminal output. 
 


Hi, thanks for you help. I am new to all this, and the  terminology is driving me crazy.

There were some errors.I attached the entire error log to this post, but below seems to be the big problem areas.

--------------------------------------------------------------------

I will look into how to add these commands to my ini file.


[DEFAULT.QTVCP.QT_ISTAT][WARNING]  INI Parsing Error, No DEFAULT_SPINDLE_0_SPEED Entry in DISPLAY, Using: 200 (qt_istat.py:515)
[DEFAULT.QTVCP.QT_ISTAT][WARNING]  INI Parsing Error, No MIN_SPINDLE_0_SPEED Entry in DISPLAY, Using: 100 (qt_istat.py:515)
[DEFAULT.QTVCP.QT_ISTAT][WARNING]  INI Parsing Error, No MAX_SPINDLE_0_SPEED Entry in DISPLAY, Using: 2500 (qt_istat.py:515)
[DEFAULT.QTVCP.QT_ISTAT][WARNING]  INI Parsing Error, No MAX_SPINDLE_0_OVERRIDE Entry in DISPLAY, Using: 1 (qt_istat.py:515)
[DEFAULT.QTVCP.QT_ISTAT][WARNING]  INI Parsing Error, No MIN_SPINDLE_0_OVERRIDE Entry in DISPLAY, Using: 0.5 (qt_istat.py:515)
not enough values to unpack (expected 2, got 1)
-----------------------------------------------------------------------

This also looks like a problem, but I do not know where to go with this one.

spindle_button.hal:17: Pin 'halui.spindle.increase' does not exist'halcmd -f spindle_button.hal' exited with 1
Attachments:

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

More
22 Nov 2024 01:38 #315015 by swanie2000
OK, I added these commands to my ini file.

MIN_SPINDLE_0_SPEED = 200
MAX_SPINDLE_0_SPEED = 2500
MAX_SPINDLE_0_OVERRIDE = 1
MIN_SPINDLE_0_OVERRIDE = 0.5

Please see attached error log Swanie-CNC-error2.txt.
I also attached my current ini file.

Swanie
 
Attachments:

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

More
24 Nov 2024 18:50 #315187 by HansU

[DEFAULT.QTVCP.QT_ISTAT][WARNING]  INI Parsing Error, No DEFAULT_SPINDLE_0_SPEED Entry in DISPLAY, Using: 200 (qt_istat.py:515)
[DEFAULT.QTVCP.QT_ISTAT][WARNING]  INI Parsing Error, No MIN_SPINDLE_0_SPEED Entry in DISPLAY, Using: 100 (qt_istat.py:515)
[DEFAULT.QTVCP.QT_ISTAT][WARNING]  INI Parsing Error, No MAX_SPINDLE_0_SPEED Entry in DISPLAY, Using: 2500 (qt_istat.py:515)
[DEFAULT.QTVCP.QT_ISTAT][WARNING]  INI Parsing Error, No MAX_SPINDLE_0_OVERRIDE Entry in DISPLAY, Using: 1 (qt_istat.py:515)
[DEFAULT.QTVCP.QT_ISTAT][WARNING]  INI Parsing Error, No MIN_SPINDLE_0_OVERRIDE Entry in DISPLAY, Using: 0.5 (qt_istat.py:515)


These are just warnings you can ignore

This also looks like a problem, but I do not know where to go with this one.
spindle_button.hal:17: Pin 'halui.spindle.increase' does not exist'halcmd -f spindle_button.hal' exited with 1



Use halui.spindle.0.increase instead

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

More
24 Nov 2024 20:35 - 24 Nov 2024 20:52 #315190 by swanie2000
Removed post....
Last edit: 24 Nov 2024 20:52 by swanie2000. Reason: Delete post

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

More
24 Nov 2024 20:48 #315191 by swanie2000
Newbynobi, Thanks, for you efforts to add the Spindle +- speed control

HansU, Thank you!
I added these commands to my spindle_button.hal file.

net increase spindle_button.btn_spindle_increase => halui.spindle.0.increase
net decrease spindle_button.btn_spindle_decrease => halui.spindle.0.decrease

I now have the +- Buttons on the screen, and they actually work!

AND a special Thanks to Aciera as well, for showing me how to find the errors at startup!

You all are Awesome for helping me!

Swanie

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

Moderators: newbynobiHansU
Time to create page: 0.088 seconds
Powered by Kunena Forum