How to connect buttons and files.
- Mike_Eitel
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 1159
- Thank you received: 185
08 Apr 2011 20:50 #8712
by Mike_Eitel
How to connect buttons and files. was created by Mike_Eitel
Hi
I'm augmenting my mill and started to use pyvcp. I think I understand now hoe to do...
I have pyvcp loading midi commands via some buttons.. ( used the homing examples from this forum ) Works fine.
Now what I want is to realize is to load different "functionalities" via calling files
I want to load on button-push files in the format .ngc, but also .py or .jpg
What I want is to have some files that do easy functions like "scrubbing a area of X * Y " or drillinf a "area of holes " or what ever I will find usefull in future.
I think I have to use the G-code o but i was not succesfull until now.
Can somybody give me an idea ..
THX Mike
P.S.
When finished I intend to publish my solution, so everybody can profit
I'm augmenting my mill and started to use pyvcp. I think I understand now hoe to do...
I have pyvcp loading midi commands via some buttons.. ( used the homing examples from this forum ) Works fine.
Now what I want is to realize is to load different "functionalities" via calling files
I want to load on button-push files in the format .ngc, but also .py or .jpg
What I want is to have some files that do easy functions like "scrubbing a area of X * Y " or drillinf a "area of holes " or what ever I will find usefull in future.
I think I have to use the G-code o but i was not succesfull until now.
Can somybody give me an idea ..
THX Mike
P.S.
When finished I intend to publish my solution, so everybody can profit
Please Log in or Create an account to join the conversation.
08 Apr 2011 20:54 #8714
by BigJohnT
Replied by BigJohnT on topic Re:How to connect buttons and files.
I would take a look at ngcgui in the Subroutines section...
John
John
Please Log in or Create an account to join the conversation.
- Mike_Eitel
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 1159
- Thank you received: 185
08 Apr 2011 21:17 #8716
by Mike_Eitel
Replied by Mike_Eitel on topic Re:How to connect buttons and files.
THX John
I saw that ngcgui conversation in the last time, but as I understood that is an alternative gui.
and cant' remember that there was a description how to load/ecxecute files....
Or do I miss something
Mike
I saw that ngcgui conversation in the last time, but as I understood that is an alternative gui.
and cant' remember that there was a description how to load/ecxecute files....
Or do I miss something
Mike
Please Log in or Create an account to join the conversation.
08 Apr 2011 22:01 #8717
by BigJohnT
Replied by BigJohnT on topic Re:How to connect buttons and files.
I think your confusing Mocca with ngcgui. ngcgui adds tabs to Axis to run subroutines. You can enter variables for the subroutine for just about anything.
It is a sticky in the Subroutines section...
John
It is a sticky in the Subroutines section...
John
Please Log in or Create an account to join the conversation.
09 Apr 2011 09:23 #8720
by Rick G
Replied by Rick G on topic Re:How to connect buttons and files.
Besides the ngcgui
You might want to look here...
wiki.linuxcnc.org/emcinfo.pl?Simple_EMC_G-Code_Generators
and
wiki.linuxcnc.org/emcinfo.pl?Oword
You can use a button either physical or pyvpc to call a MDI command and that MDI command can run a subroutine with the O word.
The file has to be a subroutine and be in the correct directory.
I do not believe that this worked in earlier versions of EMC.
Rick G
You might want to look here...
wiki.linuxcnc.org/emcinfo.pl?Simple_EMC_G-Code_Generators
and
wiki.linuxcnc.org/emcinfo.pl?Oword
You can use a button either physical or pyvpc to call a MDI command and that MDI command can run a subroutine with the O word.
The file has to be a subroutine and be in the correct directory.
I do not believe that this worked in earlier versions of EMC.
Rick G
Please Log in or Create an account to join the conversation.
- Mike_Eitel
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 1159
- Thank you received: 185
09 Apr 2011 10:26 #8721
by Mike_Eitel
Replied by Mike_Eitel on topic Re:How to connect buttons and files.
Hi Rick
the link to the Phyton is exactly what I want.
I want to start them via pressing on a pyvyp button.
After reading the doc you and John pointed out, I doubth that I cab use MDI commands ??
Is there eventually a halui command ( that I missed to see ) that can invoke a file ?
Mike
P.S.
I'm aware that I can go and load a .py file via " the normal way" but I think a button would be "nice and sexy"
the link to the Phyton is exactly what I want.
I want to start them via pressing on a pyvyp button.
After reading the doc you and John pointed out, I doubth that I cab use MDI commands ??
Is there eventually a halui command ( that I missed to see ) that can invoke a file ?
Mike
P.S.
I'm aware that I can go and load a .py file via " the normal way" but I think a button would be "nice and sexy"
Please Log in or Create an account to join the conversation.
Time to create page: 0.147 seconds