NEWS
LinuxCNC 2.5.4 Release
There are no translations available.

LinuxCNC 2.5.4 Update Released (changelog).
 
LinuxCNC 2.5.3 Release
There are no translations available.

LinuxCNC 2.5.3 Update Released (changelog).
 
LinuxCNC 2.5.2 Release
There are no translations available.

LinuxCNC 2.5.2 Update Released (changelog).
 
Home Forum Using LinuxCNC AXIS How to connect buttons and files.

Welcome, Guest
Username: Password: Remember me

TOPIC: How to connect buttons and files.

How to connect buttons and files. 08 Apr 2011 13:50 #8712

  • Mike_Eitel
  • Mike_Eitel's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 159
  • Thank you received: 3
  • Karma: 2
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
The administrator has disabled public write access.

Re:How to connect buttons and files. 08 Apr 2011 13:54 #8714

  • BigJohnT
  • BigJohnT's Avatar
  • OFFLINE
  • Administrator
  • Posts: 5804
  • Thank you received: 231
  • Karma: 155
I would take a look at ngcgui in the Subroutines section...

John
The administrator has disabled public write access.

Re:How to connect buttons and files. 08 Apr 2011 14:17 #8716

  • Mike_Eitel
  • Mike_Eitel's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 159
  • Thank you received: 3
  • Karma: 2
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
The administrator has disabled public write access.

Re:How to connect buttons and files. 08 Apr 2011 15:01 #8717

  • BigJohnT
  • BigJohnT's Avatar
  • OFFLINE
  • Administrator
  • Posts: 5804
  • Thank you received: 231
  • Karma: 155
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
The administrator has disabled public write access.

Re:How to connect buttons and files. 09 Apr 2011 02:23 #8720

  • Rick G
  • Rick G's Avatar
  • OFFLINE
  • Moderator
  • Posts: 1310
  • Thank you received: 45
  • Karma: 81
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
The administrator has disabled public write access.

Re:How to connect buttons and files. 09 Apr 2011 03:26 #8721

  • Mike_Eitel
  • Mike_Eitel's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 159
  • Thank you received: 3
  • Karma: 2
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 administrator has disabled public write access.
Time to create page: 0.664 seconds
Powered by Kunena Forum
© 2014 LinuxCNC.org
Joomla! is Free Software released under the GNU General Public License.