How to connect buttons and files.

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.

More
15 Apr 2011 16:37 #8958 by BigJohnT

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

More
15 Apr 2011 17:04 #8961 by mhaberler
I suggest you look at gladevcp. This will do a lot more than pyvcp, including an MDI widget.

-Michael

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

More
15 Apr 2011 17:08 #8962 by BigJohnT
Mike,

The developers tell me what your trying to do is not possible as the M1nn commands are a child of milltask and when you open a pyvcp program with file/open they become a child of Axis...

John

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

More
15 Apr 2011 19:29 #8974 by Mike_Eitel
THX John that you asked the developers.

I was 95% sure that there was something like that.. So will have a look ( in the next week) into the othe two proposed tools....

Anyway, I learned a lot trying to go the "easy way"...

As soon as I have solved it, I'll publich.

THIS FORUM IS A NEVER ENDING SOURCE OF SOLUTIONS, living from very nice and helpfull supporters :

Good night and THX to all
Mike :) :)

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

More
15 Apr 2011 20:20 #8976 by andypugh
Mike_Eitel wrote:

THIS FORUM IS A NEVER ENDING SOURCE OF SOLUTIONS)

It is worth noting that the mailing list and the IRC are generally rather better, as they catch a larger audience in the case of the mailing list, and/or work in real time in the case of IRC.

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

More
16 Apr 2011 10:22 #8983 by Rick G
Hello Mike,

Good luck with your project and let us know how it all works out.

I agree with you on the Forum, it has been more beneficial to me then any other source.

Rick G

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

Time to create page: 0.191 seconds
Powered by Kunena Forum