NEWS
LinuxCNC 2.5.2 Release
There are no translations available.

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

LinuxCNC 2.5.1 Update Released (changelog). If the Package Manager does not prompt you to upgrade see this page.

 
LinuxCNC 2.5.0 Release
There are no translations available.

New major release (changelog). See the instructions to update your system from EMC 2.4 to LinuxCNC 2.5.
 
Home Forum Using LinuxCNC AXIS How to connect buttons and files.

Welcome, Guest
Username: Password: Remember me

TOPIC: How to connect buttons and files.

Re:How to connect buttons and files. 15 Апр 2011 05:10 #8933

  • BigJohnT
  • BigJohnT's Avatar
  • NOW ONLINE
  • Administrator
  • Posts: 4960
  • Thank you received: 87
  • Karma: 134
This line determines if Axis it running:

IN_AXIS = os.environ.has_key("AXIS_PROGRESS_BAR")

I wonder if something is broken with that as I just ran face.py on my 10.04 with Axis sim up and running and I get Write to File instead of Send to Axis...

John
The administrator has disabled public write access.

Re:How to connect buttons and files. 15 Апр 2011 05:12 #8934

  • Mike_Eitel
  • Mike_Eitel's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 135
  • Thank you received: 1
  • Karma: 2
Did you start by calling via pvycp button and renamed to a M1xx file in nc_files directory.
Thr effect is only occuring when started that way.
The administrator has disabled public write access.

Re:How to connect buttons and files. 15 Апр 2011 05:16 #8935

  • BigJohnT
  • BigJohnT's Avatar
  • NOW ONLINE
  • Administrator
  • Posts: 4960
  • Thank you received: 87
  • Karma: 134
No, I started it in a terminal so I could do a little debugging.

John
The administrator has disabled public write access.

Re:How to connect buttons and files. 15 Апр 2011 05:24 #8936

  • Mike_Eitel
  • Mike_Eitel's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 135
  • Thank you received: 1
  • Karma: 2
Hi John
I did similar all time when modifiing the codes

And I started also via axis and file button .. works perfect

I started to workout how to solve with pyvcp, hal, ini, python. etc.
Did my prof of concepts. Tested all the -py you find in the tools directoy. Than I did all the pyvcp finish.
Last was copiyng to nc_files and renamimg to M1xx.
Started all of them via button. Super... Then I saw that transfer to Axis button was missing AT ALL programs.

Grrrr I'm frustrated... My stomache feeling is that there is a basic problem.... hope somebody can show me that I'm wrong.

Mike
The administrator has disabled public write access.

Re:How to connect buttons and files. 15 Апр 2011 05:36 #8937

  • BigJohnT
  • BigJohnT's Avatar
  • NOW ONLINE
  • Administrator
  • Posts: 4960
  • Thank you received: 87
  • Karma: 134
Seems like if you open the python with Axis the environment variable is there for the program... I'm guessing that executing the M101 is the same as running the program from a terminal so it is not spawned as a child process or something like that. I don't know off hand how to fix this. I think at one time I used the .axisrc file to add one to the Axis menu or something like that.

On another subject I have found that Deweys ngcgui to be much more powerful than the simple g code generators as you can string together several subroutines into a complete program. Something you can't do with the simple g code generators as they overwrite what is in Axis.

Hopefully someone that knows more than me can help you to get this up and going.

John
The administrator has disabled public write access.

Re:How to connect buttons and files. 15 Апр 2011 05:54 #8940

  • Mike_Eitel
  • Mike_Eitel's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 135
  • Thank you received: 1
  • Karma: 2
Yes John I also hope there is somebody who van help me out of that hole.

I'm not a real programmer., have only some vague ideas about coding.
And I do not want to go the mgcgui way, seems to much effort for me.
Mike
The administrator has disabled public write access.
Time to create page: 1.131 seconds
Powered by Kunena Forum
© 2013 LinuxCNC.org
Joomla! is Free Software released under the GNU General Public License.