My custom designed GUI

More
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.

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

More
10 years 4 months ago #75649 by andypugh
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?
The following user(s) said Thank You: aer73

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

More
10 years 4 months ago #75652 by aer73
Replied by aer73 on topic My custom designed GUI
Andypugh Wrote:

I am assuming that craftsman_toolchange is a .comp file, that might not be the case.

I think maybe you have reason about comp file, beecause is a .dat file.
I attacht it.
Many thanks.

Regards.

File Attachment:

File Name: toolchange.zip
File Size:163 B

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

More
10 years 4 months ago - 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:
Code:
h = hal.component("craftsman_toolchange") ... h.ready()
Last edit: 10 years 4 months ago by andypugh.
The following user(s) said Thank You: aer73

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

More
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.

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

More
10 years 4 months ago - 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
Last edit: 10 years 4 months ago 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.253 seconds
Powered by Kunena Forum