My custom designed GUI
31 May 2016 10:48 #75275
by cncbasher
Replied by cncbasher on topic My custom designed GUI
make sure the file have execuitable rights in properties i.e can run as a program
Please Log in or Create an account to join the conversation.
07 Jun 2016 13:13 #75638
by aer73
Replied by aer73 on topic My custom designed GUI
Many thanks Cncbasher.
I try that you say but no works.
Regards.
I try that you say but no works.
Regards.
Please Log in or Create an account to join the conversation.
07 Jun 2016 14:25 #75640
by cncbasher
Replied by cncbasher on topic My custom designed GUI
the error is
Traceback (most recent call last):
File "/home/sarah/linuxcnc/configs/craftsmancnc/bin/craftsman_toolchange", line 10, in <module>
import globals
ImportError: No module named globals
./craftsmancnc.hal:146: waitpid failed craftsman_toolchange craftsman_toolchange
./craftsmancnc.hal:146: craftsman_toolchange exited without becoming ready
i'll take a look later today
Traceback (most recent call last):
File "/home/sarah/linuxcnc/configs/craftsmancnc/bin/craftsman_toolchange", line 10, in <module>
import globals
ImportError: No module named globals
./craftsmancnc.hal:146: waitpid failed craftsman_toolchange craftsman_toolchange
./craftsmancnc.hal:146: craftsman_toolchange exited without becoming ready
i'll take a look later today
The following user(s) said Thank You: aer73
Please Log in or Create an account to join the conversation.
07 Jun 2016 15:02 #75642
by andypugh
Replied by andypugh on topic My custom designed GUI
My first guess would be that the filename and the component name don't match.
A .comp file needs to have a component name in HAL that matches the file name.
A .comp file needs to have a component name in HAL that matches the file name.
The following user(s) said Thank You: aer73
Please Log in or Create an account to join the conversation.
07 Jun 2016 16:39 #75647
by aer73
Replied by aer73 on topic My custom designed GUI
Many thanks to both for take your time in help me.
@Cncbasher, that error is similar to mine.
@AndyPugh, can you be more explicit about filename and the component name don't match?
Don´t understand too A .comp file needs to have a component name in HAL that matches the file name.
Many thanks to both again for your help.
Kindly regards.
@Cncbasher, that error is similar to mine.
@AndyPugh, can you be more explicit about filename and the component name don't match?
Don´t understand too A .comp file needs to have a component name in HAL that matches the file name.
Many thanks to both again for your help.
Kindly regards.
Please Log in or Create an account to join the conversation.
07 Jun 2016 17:24 #75649
by andypugh
I am assuming that craftsman_toolchange is a .comp file, that might not be the case.
What is it?
Replied by andypugh on topic My custom designed GUI
Don´t understand too A .comp file needs to have a component name in HAL that matches the file name..
I am assuming that craftsman_toolchange is a .comp file, that might not be the case.
What is it?
The following user(s) said Thank You: aer73
Please Log in or Create an account to join the conversation.
07 Jun 2016 18:16 #75652
by aer73
Replied by aer73 on topic My custom designed GUI
Andypugh Wrote:
I attacht it.
Many thanks.
Regards.
I think maybe you have reason about comp file, beecause is a .dat file.I am assuming that craftsman_toolchange is a .comp file, that might not be the case.
I attacht it.
Many thanks.
Regards.
Please Log in or Create an account to join the conversation.
07 Jun 2016 18:33 - 07 Jun 2016 18:39 #75654
by andypugh
The file you attached is a single byte file containing only the character "0".
Is that really your craftsman_toolchanger file?
I found the file in the earlier zip file. It's a python file, an alternative to hal_manualtoolchange.
It seems to do the right things:
Replied by andypugh on topic My custom designed GUI
Is that really your craftsman_toolchanger file?
I found the file in the earlier zip file. It's a python file, an alternative to hal_manualtoolchange.
It seems to do the right things:
h = hal.component("craftsman_toolchange")
...
h.ready()
Last edit: 07 Jun 2016 18:39 by andypugh.
The following user(s) said Thank You: aer73
Please Log in or Create an account to join the conversation.
07 Jun 2016 18:49 #75655
by aer73
Replied by aer73 on topic My custom designed GUI
You have reason i send a wrong file, sorry me.
But i don´t what you wanna say with the rest of your words.
Sorry again.
Many thanks for your help.
Kindly regards.
But i don´t what you wanna say with the rest of your words.
Sorry again.
Many thanks for your help.
Kindly regards.
Please Log in or Create an account to join the conversation.
08 Jun 2016 06:58 - 08 Jun 2016 07:03 #75672
by pietvr
Replied by pietvr on topic My custom designed GUI
Hi
You will need to edit the following line in the 3 files in the bin folder (craftsmancnc, craftsman_toolchange & vfd_spindle)
sys.path.append('/home/craftsman/linuxcnc/configs/craftsmancnc/')
should be changed to your local configuration:
sys.path.append('/home/sarah/linuxcnc/configs/craftsmancnc/')
In the crafstmancnc file there is another line to be changed:
xmlname = os.path.join('/home/craftsman/linuxcnc/configs/craftsmancnc/',"craftsmancnc.glade")
to:
xmlname = os.path.join(''/home/sarah/linuxcnc/configs/craftsmancnc/'',"craftsmancnc.glade")
These files should also be set in their properties to "Execute"
The file vfd_controller in your /home/sarah/linuxcnc/configs/craftsmancnc/ folder also has the line:
sys.path.append('/home/craftsman/linuxcnc/configs/craftsmancnc/')
needs to change to:
sys.path.append('/home/sarah/linuxcnc/configs/craftsmancnc/')
Note: the /sarah/ part should be changed to your local configuration name.
The file you have attached, toolchange.dat, only keeps track of what tool is currently loaded when running a gcode file.
Hope it helps
Piet
You will need to edit the following line in the 3 files in the bin folder (craftsmancnc, craftsman_toolchange & vfd_spindle)
sys.path.append('/home/craftsman/linuxcnc/configs/craftsmancnc/')
should be changed to your local configuration:
sys.path.append('/home/sarah/linuxcnc/configs/craftsmancnc/')
In the crafstmancnc file there is another line to be changed:
xmlname = os.path.join('/home/craftsman/linuxcnc/configs/craftsmancnc/',"craftsmancnc.glade")
to:
xmlname = os.path.join(''/home/sarah/linuxcnc/configs/craftsmancnc/'',"craftsmancnc.glade")
These files should also be set in their properties to "Execute"
The file vfd_controller in your /home/sarah/linuxcnc/configs/craftsmancnc/ folder also has the line:
sys.path.append('/home/craftsman/linuxcnc/configs/craftsmancnc/')
needs to change to:
sys.path.append('/home/sarah/linuxcnc/configs/craftsmancnc/')
Note: the /sarah/ part should be changed to your local configuration name.
The file you have attached, toolchange.dat, only keeps track of what tool is currently loaded when running a gcode file.
Hope it helps
Piet
Last edit: 08 Jun 2016 07:03 by pietvr.
The following user(s) said Thank You: aer73
Please Log in or Create an account to join the conversation.
Time to create page: 0.153 seconds