How to connect buttons and files.

More
15 Apr 2011 09:31 - 15 Apr 2011 09:39 #8923 by Mike_Eitel
Hi

I'm totaly frustrated.

I got everthing to work. Nice pyvcp. To metric adjusted phyton files. Calling the phyton files via M1xx command.

BUT no more transfer of data to the Axis screen..... !!!!!!!!!

I could identify some code that is reacting if the phyton program is called inside of Axis....
BUT I dont understand what I have to modify or if it is eventually impossible to get what I wanted ??

I have a downloadable (windows made) zip file on my www at www.eitel.ch/mechatronics/MeCNC/cnc.zip

a.) my complete configuration MeBigCNC2 ( having a second parport at D4000 )
b.\ a part of my nc_files with the M1xx commands and the "source" in the /tools subdirectory

I hope that I did not lost all those hours to "include" .py in axis via buttons ....

Mike

P.S.
I have choosen as username : cnc
Last edit: 15 Apr 2011 09:39 by Mike_Eitel. Reason: File to big

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

More
15 Apr 2011 11:49 #8927 by andypugh
That looks quite elaborate.

I don't have access to an EMC2 machine just now (lunch break). What is it that isn't working? I suspect that the buttons are meant to call python files which create G-Code, and you are not seeing the G-code appear in the window?

Or have I misunderstood?

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

More
15 Apr 2011 11:56 #8928 by Mike_Eitel
Yes Andy

Problem is that the phyton progarm is strting as soon as I press abutton.
Everithing is fine.... BUT the transfer to Axis button is missing, you just see a QUIT button.

I looked into the code and found an "If statement"

I replaced the line for quit by the same command as it would treat normaly...
But no reaction . Nothing is transfered into Axis.

I hope somebody can tell me how to get the python into Axis, when it's called via the M1xx statements.

MIKE

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

More
15 Apr 2011 12:00 #8929 by BigJohnT
Have you looked at the simple g code generators on the wiki site? They send g-code to Axis.

John

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

More
15 Apr 2011 12:00 #8930 by BigJohnT
Just looked at your M101 and yes you have...

John

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

More
15 Apr 2011 12:10 #8932 by Mike_Eitel
Yes John for sure

Very nide programs.... And I seached the web, but could not find more than those in the wiki pages.

They run fine and transfer to axis, as long as not started via M1xx

I fear that it's some kind of "environment" problem that can not be soved.
To be honest, I can modify the code, but do not understand who a phyton program is "embeddet" into Axis....

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

More
15 Apr 2011 12:10 #8933 by BigJohnT
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

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

More
15 Apr 2011 12:12 #8934 by Mike_Eitel
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.

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

More
15 Apr 2011 12:16 #8935 by BigJohnT
No, I started it in a terminal so I could do a little debugging.

John

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

More
15 Apr 2011 12:24 #8936 by Mike_Eitel
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

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

Time to create page: 0.078 seconds
Powered by Kunena Forum