How to connect buttons and files.
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.
- Mike_Eitel
- Topic Author
- Offline
- Platinum Member
- Posts: 1150
- Thank you received: 184
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.
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.
- Mike_Eitel
- Topic Author
- Offline
- Platinum Member
- Posts: 1150
- Thank you received: 184
You convinced me.. I'll have a look into
Mike
Please Log in or Create an account to join the conversation.
www.linuxcnc.org/component/option,com_ku...d,8285/lang,english/
John
Please Log in or Create an account to join the conversation.
-Michael
Please Log in or Create an account to join the conversation.
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.
- Mike_Eitel
- Topic Author
- Offline
- Platinum Member
- Posts: 1150
- Thank you received: 184
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.
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.THIS FORUM IS A NEVER ENDING SOURCE OF SOLUTIONS)
Please Log in or Create an account to join the conversation.
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.