Results 1 to 9 of 9

Thread: mastercam code to punch a tape for machine with tape reader

  1. #1
    Registered
    Join Date
    Mar 2004
    Location
    indianapolis ,Indiana
    Posts
    57
    Downloads
    0
    Uploads
    0

    mastercam code to punch a tape for machine with tape reader

    anyone used mastercam to send g-code to punch a tape. would like to know the settings and the editor that you used.


  2. #2
    Registered ObrienDave's Avatar
    Join Date
    Jun 2005
    Location
    USA
    Posts
    285
    Downloads
    0
    Uploads
    0
    Oh Lordy,
    I had forgotten those things were still out there.

    Any ASCII text editor that will save in MSdos TEXT format will work for you.
    I like CimcoEdit that comes with MCam9.
    The trick is using a terminal program to send the file to the punch.
    This can be done directly from Mcam or any editor that supports communications.
    I have used HyperTerm in the past.

    For SERIAL communication it is important that the parameters are set EXACTLY the same at both ends.

    Baud rate, number of data bits, parity, number of stop bits and handshaking MUST match EXACTLY.

    The most common settings are...
    7 data bits, even parity, 1 stop bit, XON XOFF handshaking.
    Once again, these settings are dependent on what your punch can handle.

    The fastest punch I've seen does 120 characters per second.
    So setting the baud rate more than 1200 is pretty much moot.
    Having not used a real tape punch in the last 20 years or so, I can't tell you about anything faster.

    Next thing you need is a serial cable that is properly wired for communications.
    There are many wiring diagrams available on the Internet for serial communications.
    The punches I am familiar with use a DB25 connector.
    Most serial ports on PC's are DB9 connectors.
    This link should help you.

    http://www.zytrax.com/tech/layer_1/c...#null_db9_db25

    From here you should be able to punch a tape with no problems.

    I would, however, recommend that you look into replacing the tape reader with some kind of tape emulator or DNC system.
    It is simple economics.
    Paper tape is 10 characters per inch or 120 characters per foot.
    144000 characters per 1200 foot roll AND costs about $45.00
    1 floppy cost $0.40 and holds 10 rolls of 1200 foot tape or 12 rolls of 1000 foot tape.
    A DNC system doesent need floppies or paper tape.

    This seems like a "no brainer" to me.
    Sure, it will cost you a few thousand for the replacement, but it will be paid back very quickly if you need to run LARGE programs.
    It will save you "OODLES" of time not having to wait 20 minutes to punch one roll of tape.
    And even more time if you make a few mistakes and have to punch the tape over and over again.
    ObrienDave. MasterCam since V6. Gcode since 1983.
    The nose you punch today may belong to the butt you have to kiss tomorrow.


  3. #3
    Registered
    Join Date
    Mar 2004
    Location
    indianapolis ,Indiana
    Posts
    57
    Downloads
    0
    Uploads
    0
    thanks dave very helpful info


  4. #4
    Registered
    Join Date
    Mar 2004
    Location
    indianapolis ,Indiana
    Posts
    57
    Downloads
    0
    Uploads
    0
    hi dave
    i'm getting close but i am getting blank space betweens lines of code
    EX. X0Y0

    G01X1

    M30

    the tape at the machine wont read it.

    ANY IDEAS


  • #5
    Registered
    Join Date
    Mar 2004
    Location
    indianapolis ,Indiana
    Posts
    57
    Downloads
    0
    Uploads
    0
    also is there something i need at start of file like a % etc.


  • #6
    Moderator Switcher's Avatar
    Join Date
    Apr 2005
    Location
    mydxf.blogspot.com
    Posts
    3665
    Downloads
    0
    Uploads
    0
    I think the latest version of NcPlot www.ncplot.com will remove blank lines with 1 click.

    15 day trial.


    .


  • #7
    Registered
    Join Date
    Mar 2004
    Location
    indianapolis ,Indiana
    Posts
    57
    Downloads
    0
    Uploads
    0
    the blank spaces show up after i puch the tape then read it thru the tape punch back to the computer to check the g-code


  • #8
    Community Moderator Al_The_Man's Avatar
    Join Date
    Dec 2003
    Location
    Canada
    Posts
    19119
    Downloads
    0
    Uploads
    0
    What program are you using to read the tape back to the computer? a modem program?
    Many Programs have the option wether you want to add a LF (line feed) at a CR (carriage return).
    if your tape already does it then you could be adding a second one with the above opton set on.
    Al.
    CNC, Mechatronics Integration and Custom Machine Design (Skype Avail).

    “Logic will get you from A to B. Imagination will take you everywhere.”
    Albert E.


  • #9
    Registered Mike Mattera's Avatar
    Join Date
    Mar 2006
    Location
    USA
    Posts
    1011
    Downloads
    0
    Uploads
    0
    You need to supress/strip the Line Feed command, ascii code 010. It probably has an ascii code of 013 for Carrige Return. On coms systems the Ascii does a Line feed and a Carriage Return.

    Check you communications program for charecters to Strip or Supress during the send.

    Mike Mattera
    Tips For Manufacturing Training CD's, DVD's for Mastercam, SolidWorks, Inventor, G-Code Training & More
    http://www.tipsforcadcam.com


  • Similar Threads

    1. Replies: 11
      Last Post: 08-15-2007, 04:06 PM
    2. Fanuc tape reader
      By simoj in forum Fanuc
      Replies: 0
      Last Post: 09-13-2006, 02:46 AM
    3. Fanuc 6M Tape reader conversion
      By Olsson in forum Fanuc
      Replies: 0
      Last Post: 12-08-2005, 07:17 AM
    4. Fanuc 3000C tape reader conversion
      By nlh in forum Fanuc
      Replies: 1
      Last Post: 10-09-2005, 07:06 PM
    5. Mid tape DNC
      By nervis1 in forum Fadal
      Replies: 19
      Last Post: 09-21-2004, 08:32 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.