585,668 active members*
4,142 visitors online*
Register for free
Login
IndustryArena Forum > Community Club House > Machinist Hangout > Coding problem - where have I gone wrong
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2014
    Posts
    89

    Question Coding problem - where have I gone wrong

    Hi all, we recently got an old masterwood 327 retrofitted with an 'NCT 204' controller. It still has alot of work, but the basics are functioning. Ive been writing parametric programs to perform the everyday tasks that is required for my job. However the Faunc language (or dialect of gcode for faunc) is new to me and im trying to get my head around it. After completing a program for the most common task this machine will do, I noticed a problem. I feel it is a fault or incorrect order of my code structure which is causing it. However I cannot figure it out. We don't even have a backplotter (yet hopefully) so everything im coding i have to visualize in my head when i do it, then watch a dry run, then test it on a sacrifice board.

    Ive created a simple code which shows the drama im having and a picture of what its doing. - please see below.

    All i'm doing (in this simple code) is routing a square. I am starting to the program off of the work piece, initializing the tool radius compensation, then routing the square and tailing back out to the start point off the work piece. (we machine timber so tailing in and out is standard practice to me rather than plunging). At the corner where I tail in and out, it 'misses' the corner and leaves a spur. I have done this with a tool with a larger radius, and the same thing happens, but the spur is larger with flats.
    Tool data is correct, the square machines perfectly to size - but the corner is missed. I could come in and out from 90deg rather than 45deg which would 'fix' the problem - however I would like this to work from a 45deg tail in and out.

    Any help is much appreciated.

    the code -

    (SQUARES)
    #101=150 (SQUARE SIZE)
    #103=16.5 (WORKPIECE Z)
    #104=01.0 (Z CUT)
    #105=5.0 (Z CLEAR)
    #106=200 (G52 X)
    #107=50 (G52 Y)
    #108=3000 (FEED)
    #109=50 (I/O)
    #150=[0-#103] (Z NEG)
    #151=[#150-#105]
    #152=[#150+#104]
    #159=[0-#109]

    G54 G17 G90 G21
    G0 X0 Y0 Z0
    G56
    T1 (LH 20mm)
    M4 S18000
    M41
    F#108
    G0 Z#151 G43 H1
    G52 X#106 Y#107
    G0 X#159 Y#159
    G41 D1
    G1 Z#152
    G1 X0 Y0
    G1 X0 Y#101
    G1 X#101 Y#101
    G1 X#101 Y0
    G1 X0 Y0
    G1 X#159 Y#159
    G40
    G0 Z#151
    M5
    M40
    M30

  2. #2
    Join Date
    Jun 2014
    Posts
    89

    Re: Coding problem - where have I gone wrong

    Ok don't worry - I have resolved my dilemma. The code structure has to be much more specific than what ive been using for the last 5 years - MW309. Hope this helps anyone else with a similar issue in the future.

    G0 Z#151 G43 H1
    G52 X#106 Y#107
    G0 X#159 Y#159
    G41 D1
    G1 Z#152
    G1 X0 Y0
    G1 X0 Y#101
    G1 X#101 Y#101
    G1 X#101 Y0
    G1 X0 Y0
    G1 X#159 Y#159
    G40
    G0 Z#151

    should be changed to this


    G0 Z#151 G43 H1
    G52 X#106 Y#107
    G0 X#159 Y#159
    G1 Z#152
    G41 G1 X0 Y0 D1
    G1 X0 Y#101
    G1 X#101 Y#101
    G1 X#101 Y0
    G1 X0 Y0
    G40 G1 X#159 Y#159
    G0 Z#151

Similar Threads

  1. Problem with rotary job toolpath. What may be wrong?
    By jaru-eri in forum Mach Software (ArtSoft software)
    Replies: 0
    Last Post: 03-05-2019, 05:04 AM
  2. 18T and coding
    By Darth Yoda in forum Fanuc
    Replies: 8
    Last Post: 02-28-2013, 04:26 PM
  3. Need help with coding
    By whitewishes in forum PIC Programing / Design
    Replies: 1
    Last Post: 08-15-2012, 04:31 AM
  4. New to G-Coding
    By Larry Myers in forum G-Code Programing
    Replies: 4
    Last Post: 09-20-2007, 03:06 PM
  5. G2/G3 Coding
    By jrobson in forum G-Code Programing
    Replies: 24
    Last Post: 09-02-2006, 06:54 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •