- Posts: 798
- Thank you received: 0
My custom designed GUI
10 years 5 months ago #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 to join the conversation.
10 years 4 months ago #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 to join the conversation.
10 years 4 months ago #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
Please Log in to join the conversation.
10 years 4 months ago #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.
Please Log in to join the conversation.
10 years 4 months ago #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 to join the conversation.
10 years 4 months ago #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
aer73 wrote: 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?
Please Log in to join the conversation.
10 years 4 months ago #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.
Attachment not found
Please Log in to join the conversation.
10 years 4 months ago #75654
by andypugh
Replied by andypugh on topic My custom designed GUI
[strike]The file you attached is a single byte file containing only the character "0".
Is that really your craftsman_toolchanger file?[/strike]
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:
Is that really your craftsman_toolchanger file?[/strike]
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:
Code:
h = hal.component("craftsman_toolchange")
...
h.ready()
Please Log in to join the conversation.
10 years 4 months ago #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 to join the conversation.
10 years 4 months ago #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
Please Log in to join the conversation.
Time to create page: 6.152 seconds
