NEWS
LinuxCNC 2.5.2 Release
There are no translations available.

LinuxCNC 2.5.2 Update Released (changelog).
 
LinuxCNC 2.5.1 Release
There are no translations available.

LinuxCNC 2.5.1 Update Released (changelog). If the Package Manager does not prompt you to upgrade see this page.

 
LinuxCNC 2.5.0 Release
There are no translations available.

New major release (changelog). See the instructions to update your system from EMC 2.4 to LinuxCNC 2.5.
 
Home Forum Using LinuxCNC AXIS How to connect buttons and files.

Welcome, Guest
Username: Password: Remember me

TOPIC: How to connect buttons and files.

Re:How to connect buttons and files. 15 Апр 2011 06:19 #8941

  • BigJohnT
  • BigJohnT's Avatar
  • OFFLINE
  • Administrator
  • Posts: 4964
  • Thank you received: 88
  • Karma: 134
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
The administrator has disabled public write access.

Re:How to connect buttons and files. 15 Апр 2011 06:49 #8942

  • Mike_Eitel
  • Mike_Eitel's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 135
  • Thank you received: 1
  • Karma: 2
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
The administrator has disabled public write access.

Re:How to connect buttons and files. 15 Апр 2011 06:59 #8943

  • BigJohnT
  • BigJohnT's Avatar
  • OFFLINE
  • Administrator
  • Posts: 4964
  • Thank you received: 88
  • Karma: 134
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
The administrator has disabled public write access.

Re:How to connect buttons and files. 15 Апр 2011 09:34 #8957

  • Mike_Eitel
  • Mike_Eitel's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 135
  • Thank you received: 1
  • Karma: 2
OK John

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

Mike
The administrator has disabled public write access.

Re:How to connect buttons and files. 15 Апр 2011 09:37 #8958

  • BigJohnT
  • BigJohnT's Avatar
  • OFFLINE
  • Administrator
  • Posts: 4964
  • Thank you received: 88
  • Karma: 134
The administrator has disabled public write access.

Re:How to connect buttons and files. 15 Апр 2011 10:04 #8961

  • mhaberler
  • mhaberler's Avatar
  • OFFLINE
  • Moderator
  • Posts: 197
  • Thank you received: 8
  • Karma: 54
I suggest you look at gladevcp. This will do a lot more than pyvcp, including an MDI widget.

-Michael
The administrator has disabled public write access.
Time to create page: 0.876 seconds
Powered by Kunena Forum
© 2013 LinuxCNC.org
Joomla! is Free Software released under the GNU General Public License.