Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 08:50:33 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  General Mach Discussion
| | |-+  G74 for turning not recognized in Mach3.
Pages: 1   Go Down
Print
Author Topic: G74 for turning not recognized in Mach3.  (Read 289 times)
0 Members and 2 Guests are viewing this topic.
Oldraven
Active Member

Offline Offline

Posts: 24


View Profile
« on: April 27, 2011, 04:07:35 AM »

Hello,

I am struggling with my postprocessor to do some turning with Mach3.
I have generated a g-code with Solidcam and there is the G74 code. Mach3 does not accept this.

I do not understand the G81 code and I think that this is intended for drilling on the mill, not for drilling while turning.
This is the part in my .gpp file for turning;

@turn_drill
        local string for for1 for2  for3
        for1 = '2/2.0(P)'
        for2 = '2/2.0(P*10)'
        for3 = '5.0(P*1000)'

    local numeric save_feed xc_new
    gcode = 74
    if drill_type eq drilling then
        r = 0
        q = abs(drill_lower_z + r)
    endif
    if drill_type eq peck then
        r = r
        q = (down_step)
    endif
    if drill_type <> tapping
        {nb 'G'gcode, ' R'r }
        {nb 'G'gcode, ' Z'drill_lower_z ' Q'q:for3}
        if drill_type eq peck then
               {' R0.'}
        endif
        if feed_unit eq css
            {' F'feed }
        else
            {' F'feed:'5.0(p)' }
        endif
    else
        gcode = 32
        save_feed =feed
        xc_new = 100-p_feed
        feed = feed*xc_new/100
        { nb 'G'gcode ' Z'drill_lower_z}
        if feed_unit eq css
            {' F'feed }
        else
            {' F'feed:'5.0(p)' }
        endif
        ;tbd.. check for a maximum of 10 mm mistake (BIG MISTAKE)
        ;!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
        feed = save_feed
        {nb 'M5'}
        {nb 'G'gcode ' Z'drill_upper_z ' S'(spin*1.3):integer_def_f  ' M4'}
        if feed_unit eq css
            {' F'feed }
        else
            {' F'feed:'5.0(p)' }
        endif
    endif
endp

Someone has been working at this, see the comment.

Can G81 be used for turning?
Any ideas how to solve this?? Please??

Jos Raven
Holland
Logged
RICH
Global Moderator
*
Offline Offline

Posts: 4,709




View Profile
« Reply #1 on: April 27, 2011, 07:40:29 PM »

Here is a link to peck drilling cycles for the lathe.
http://www.machsupport.com/forum/index.php/topic,15205.msg101682.html#msg101682

RICH
Logged
Oldraven
Active Member

Offline Offline

Posts: 24


View Profile
« Reply #2 on: April 28, 2011, 01:28:42 AM »


Thank you Rich,

This is something I can use.
A peck drill on the lathe would be nice.

Regards,

Jos
Logged
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!