Results 1 to 6 of 6

Thread: IGNORING CERTAIN CODES?

  1. #1
    Registered
    Join Date
    Feb 2007
    Location
    USA
    Posts
    20
    Downloads
    0
    Uploads
    0

    IGNORING CERTAIN CODES?

    Hi Scott....is there a way to have NC-PLOT ignore certain G or M codes?
    I have a siemens 3M control on one of my machines and i can use G64 to
    have the machine not decelerate at each programed line (it eliminates dwell marks) and G60 to turn off G64, but NC-PLOT does funny things when it encounters these commands. thanks


  2. #2
    Gold Member MetLHead's Avatar
    Join Date
    Mar 2003
    Location
    USA
    Posts
    749
    Downloads
    0
    Uploads
    0
    I don't think NCPlot is doing anything with G60 or G64, they should be ignored. What kind of funny things do you see? Can you post an example?

    Thanks,
    Scott


  3. #3
    Registered
    Join Date
    Feb 2007
    Location
    USA
    Posts
    20
    Downloads
    0
    Uploads
    0
    sorry for taking so long....here is one of the short programs i am having problems with.
    you will notice it is giving full arcs in the slots and eliminating a line in cutter comp mode.
    then on the right side it is also acting funny, doesn't come out as machined. thanks ahead of time for looking.had to change the .nc file to .txt
    Attached Files Attached Files


  4. #4
    Gold Member MetLHead's Avatar
    Join Date
    Mar 2003
    Location
    USA
    Posts
    749
    Downloads
    0
    Uploads
    0
    Ok, I've taken a look at your program and it is the G60 commands that are causing the problem. If you remove these commands from your program, it plots fine. I will either have to set up a way for certain G-Codes to be ignored, or just ignore the G60.

    Thanks,
    Scott


  • #5
    Registered
    Join Date
    May 2007
    Location
    US
    Posts
    779
    Downloads
    0
    Uploads
    0
    You could add to the Machine Configuration menu (Default, Haas Mill, Horizontal Mill, etc.) a machine like Simple G-Code that just ignores any unrecognized codes.

    I sometimes use your program to check a path for a wire EDM program (Older Mitsubishi machines). EDM programs have some strange codes for power settings and stuff that I have to delete or comment out to get the path to display.

    This line for example.
    Code:
    EHH72FHH73HH74(POWER,SETTINGS)
    The EHH72 sets the power level word E, the H is just like # in Fanuc macros.
    The FHH73 is the target feed rate.
    And the HH74 sets the wire radius compensation, there is no word letter for this just that the variable accessed be in a set range (1 to 30) I think.

    And this line.
    Code:
    G02 X0.0000 Y1.5020 I0.0300 J0.0000 AH75
    The A word sets the wire angle to the value in variable 75, the problem here being the H again.

    And instead of an O word they use the letter L for the program number.

    Overall it is not a big problem. I have learned to do my text copy using the CTRL key to skip the problem lines so I just have to delete the AH75 word on one line.


  • #6
    Gold Member MetLHead's Avatar
    Join Date
    Mar 2003
    Location
    USA
    Posts
    749
    Downloads
    0
    Uploads
    0
    Andre,

    I think there's actually a simpler solution to cases like this. On the Mitsubishi controls (non-EDM that is, and may also be true for other brands), if an address letter is followed by another without a value in between, it's value is assumed to be zero. For example:

    G28XYZ

    The Mits controls actually interpret this as G28 X0 Y0 Z0. Having NCPlot do the same thing would cause it to interpret your sample line:

    EHH72FHH73HH74(POWER,SETTINGS)

    as:

    E0 H0 H72 F0 H0 H73 H0 H74(POWER,SETTINGS)

    Which, is basically meaningless to NCPlot as there are no G-Codes, but it would not generate an error message.

    This would also allow other control specific keywords to be used without errors. I do think that I will eventually want the ability to create control specific configuration files, but I think this would be a good compromise in the meantime.

    Thanks,
    Scott


  • Similar Threads

    1. Ignoring Feed Speeds
      By xichanceix in forum DeskCNC Controller Board
      Replies: 1
      Last Post: 12-17-2007, 09:55 PM
    2. M-codes and G-codes 4 Matsuura ES-1000V
      By maximusek in forum G-Code Programing
      Replies: 2
      Last Post: 11-27-2007, 07:41 AM
    3. mach-3 ignoring my origin. goes to home instead
      By mxpro32 in forum Mach Mill
      Replies: 1
      Last Post: 09-26-2007, 01:43 PM
    4. MDI Codes Anyone know about them?
      By manyhobies in forum Coding
      Replies: 5
      Last Post: 08-03-2007, 04:16 PM
    5. g-codes
      By pimp215 in forum General Metalwork Discussion
      Replies: 11
      Last Post: 03-07-2005, 02:43 PM

    Posting Permissions



    About CNCzone.com

      We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

    Follow us on

    Facebook Dribbble RSS Feed


    Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.