How to connect buttons and files.
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.
- Mike_Eitel
- Topic Author
- Offline
- Platinum Member
- Posts: 1159
- Thank you received: 185
Thr effect is only occuring when started that way.
Please Log in or Create an account to join the conversation.
John
Please Log in or Create an account to join the conversation.
- Mike_Eitel
- Topic Author
- Offline
- Platinum Member
- Posts: 1159
- Thank you received: 185
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.
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.
- Mike_Eitel
- Topic Author
- Offline
- Platinum Member
- Posts: 1159
- Thank you received: 185
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.
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: 1159
- Thank you received: 185
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: 1159
- Thank you received: 185
You convinced me.. I'll have a look into
Mike
Please Log in or Create an account to join the conversation.