Results 1 to 4 of 4

Thread: Kipware M Bad Character

  1. #1
    Registered
    Join Date
    Oct 2006
    Location
    Australia
    Posts
    92
    Downloads
    0
    Uploads
    0

    Kipware M Bad Character

    Is anyone using Kipware M? I wrote a simple facing and pocketing program with
    it, posted the code to Mach3 which all went fine, then when I hit cycle start I got the message "bad character in line 1" I don't know enough about G code (yet) to know what is wrong, I tried to copy the code into here but it didn't work?
    Will
    Got it in here !


    10000
    facing and pocket
    (PROGRAM DESCRIPTION)
    G00 G91 G28 Z0
    G28 X0 Y0
    G54
    M01


    N0001
    facing
    (TOOL DESCRIPTION)
    (OPERATION DESCRIPTION)
    G00 G91 G28 Z0
    T20M06
    G90S4000M03
    G54
    G00G90G43Z+20H20
    M08
    G54
    G00G90X-21.54Y16.46
    G00G90Z5.
    G01Z0.F300.
    G01G91Z-0.5F300.
    G01G91X20.27
    G01G91X151.27F300.
    Y33.
    X-151.27
    Y32.81
    X151.27
    G00G91Z2.54
    G90X-21.54Y16.46
    G01G91Z-2.54F1270.0
    G01G91Z-0.4
    G01G91X20.27
    G01G91X151.27F300.
    Y33.
    X-151.27
    Y32.81
    X151.27
    G00G91Z2.54
    G90X-21.54Y16.46
    Z5.
    G00 G91 G28 Z0 M09
    M01
    Last edited by wbleeker; 03-07-2012 at 01:32 AM. Reason: correction


  2. #2
    Registered
    Join Date
    Feb 2006
    Location
    United States
    Posts
    47
    Downloads
    0
    Uploads
    0
    At least one problem I see here is you have comment text that is not enclosed in parenthesis -- see red highlight. Also you have two lines - see green highlight - that appear to be line numbers -- but none of the other lines are numbered. I would delete them.

    As to why this might be happening - I don't use Kipware but I assume you have some kind of entry for the machine you are targeting - make sure that is selected correctly.


    10000
    (facing and pocket)
    (PROGRAM DESCRIPTION)
    G00 G91 G28 Z0
    G28 X0 Y0
    G54
    M01


    N0001
    (facing)
    (TOOL DESCRIPTION)
    (OPERATION DESCRIPTION)
    G00 G91 G28 Z0
    T20M06
    G90S4000M03


  3. #3
    Registered
    Join Date
    Oct 2006
    Location
    Australia
    Posts
    92
    Downloads
    0
    Uploads
    0
    Thanks for that Jeff, the bit about the comments came to mind while I was thinking about the problem, I also sent the code to Kipware and they told me that the + symbol shouldn't be in the code too? I just don't know how it got there, the software wrote the code I just filled in the boxes. Another thing I am not sure about,I have Kipware set to Metric and put Metric dimensions in the boxes, should I see G21 in the code somewhere?
    Will
    I won't get a chance to actually run the code for a couple of days


  4. #4
    Registered
    Join Date
    Feb 2006
    Location
    United States
    Posts
    47
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by wbleeker View Post
    Thanks for that Jeff, the bit about the comments came to mind while I was thinking about the problem, I also sent the code to Kipware and they told me that the + symbol shouldn't be in the code too? I just don't know how it got there, the software wrote the code I just filled in the boxes. Another thing I am not sure about,I have Kipware set to Metric and put Metric dimensions in the boxes, should I see G21 in the code somewhere?
    Will
    I won't get a chance to actually run the code for a couple of days
    I guess technically the G21 is optional assuming your machine controller is set to metric. However, good practice is to always have a have a safety block at the beginning of your gcode to set/reset your controller to a known state. A G21 would be part of that safety block. Do a search on gcode safety block and you will see there are typically 9 or 10 items in the typical safety block.

    Jeff


Similar Threads

  1. Need Help!- character display
    By hedgehog in forum Fanuc
    Replies: 0
    Last Post: 10-24-2010, 10:39 AM
  2. Kipware Software by Kentech
    By MarkT in forum G-Code Programing
    Replies: 0
    Last Post: 08-09-2010, 12:50 PM
  3. Need Help!- What's the ASCII character(s) used for EOB?
    By PMBottas in forum General CNC (Mill and Lathe) Control Software (NC)
    Replies: 11
    Last Post: 06-25-2010, 11:12 PM
  4. character code not found
    By mikean45 in forum Fanuc
    Replies: 0
    Last Post: 02-18-2010, 11:34 PM
  5. Replies: 5
    Last Post: 12-25-2006, 04:40 AM

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.