Are there no increase/decrease spindle speed buttons in Gmoccapy?
- Dougal9887
- Offline
- Junior Member
-
- Posts: 22
- Thank you received: 3
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.
Hi,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
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.
Attachments:
Please Log in or Create an account to join the conversation.
- Dougal9887
- Offline
- Junior Member
-
- Posts: 22
- Thank you received: 3
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.
Please Log in or Create an account to join the conversation.
- swanie2000
- Offline
- New Member
-
- Posts: 6
- Thank you received: 0
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.
- swanie2000
- Offline
- New Member
-
- Posts: 6
- Thank you received: 0
Hi,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.
hEMBED_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
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.
- Aciera
-
- Offline
- Administrator
-
- Posts: 4092
- Thank you received: 1773
linuxcnc
then choose your config and check for errors in the terminal output.
Please Log in or Create an account to join the conversation.
- swanie2000
- Offline
- New Member
-
- Posts: 6
- Thank you received: 0
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
Please Log in or Create an account to join the conversation.
- swanie2000
- Offline
- New Member
-
- Posts: 6
- Thank you received: 0
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
Please Log in or Create an account to join the conversation.
- HansU
-
- Offline
- Moderator
-
- Posts: 655
- Thank you received: 195
[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.
- swanie2000
- Offline
- New Member
-
- Posts: 6
- Thank you received: 0
Please Log in or Create an account to join the conversation.
- swanie2000
- Offline
- New Member
-
- Posts: 6
- Thank you received: 0
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.