How to connect buttons and files.

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.

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

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

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

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

More
15 Apr 2011 13:19 #8941 by BigJohnT
Mike_Eitel wrote:

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


I have to assume "to much effort" is referring to there might not be subroutines already written to cover your needs.

It can't be the installing of ngcgui as that only entails adding a couple of lines to your ini file and copying a couple of files to the correct directory. And using it is dead simple. I just don't want anyone reading this thread to get the wrong idea about ngcgui. I'm not pushing it on you at all.

John

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

More
15 Apr 2011 13:49 #8942 by Mike_Eitel
Maybe I'm wrong, and missunderstood but.

I'm not clever enough to write programs like the ones in the wiki. But I'm very happy to use them !!
And I got the impression that using ngcgui leads into real programing....

I'm able / learned to understand and use G-code ... If it gets difficult I use mastercam to convert my Solid Edge projects.

I start to unterstand .ini, .hal and pyvcp. And can realize my special configuration wishes.

I'm able to use the phyton programs for fast demands. Starting them via bouttons was a "nice and sexy" solution...
But naturally I can do it also via file menue, if my dream is not easy to get.... Sniff. Still in hope ;-)

I do not want to say anything against ngcgui etc. , as I admire peoples that can do real codeing, like mocca, but I will not go that way myself.

I try to keep things simple...

Mike

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

More
15 Apr 2011 13:59 #8943 by BigJohnT
Mocca is a whole different thing than ngcgui, it is a user interface like Axis. ngcgui is an add on to Axis and requires no programming what so ever to use. As I mentioned all you have to do is add a couple of lines to your ini and copy a couple of files and ngcgui is added to Axis. If you can cobble up some g code then you can make the g code subroutine for ngcgui.

For example a short one that does OD threading on a lathe:
(info: G76 Profile Roughing)
o<th-od> sub
; this section is used by ngcgui to prompt you for the values used
; in the subroutine
#<tool> = #1 (= 7 Tool)
#<rpm> = #2 (= 250 RPM)
#<diameter> = #3 (Diameter)
#<tpi> = #4 (TPI)
#<inital_depth> = #5 (= 0.005 Inital Depth)
#<thread_depth> = #6 (= 0.045 Thread Depth)
#<spring_pass> = #7 (Spring Passes)
#<z_start> = #8 (= 0.100 Z Start)
#<z_end> = #9 (Z End)
#<x_offset> = #10 (= 0.025 X Offset)
#<q_angle> = #11 (= 29.5 Combine Angle)
#<coolant> = #12 (=8 Coolant)

#<pitch> = [1/#<tpi>]

; this part is the g code to do  the threading
G7 G18 G20 G40 G49
T7 M6 G43
M#<coolant>
S#<rpm> M3
G0 Z#<z_start> X[#<diameter> + #<x_offset>]
G76 P#<pitch> Z#<z_end> I-#<x_offset> J#<inital_depth> K#<thread_depth> Q#<q_angle> L2 E#<thread_depth> H#<spring_pass>
M5 M9
G53 G0 X0 Z0
o<th-od> endsub

The subroutine is the part between the sub and endsub tags and is just g code.

John

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

More
15 Apr 2011 16:34 #8957 by Mike_Eitel
OK John

You convinced me.. I'll have a look into

Mike

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

Time to create page: 0.222 seconds
Powered by Kunena Forum