Results 1 to 2 of 2

Thread: writing code and proving out

  1. #1
    Registered
    Join Date
    Nov 2005
    Location
    usa
    Posts
    233
    Downloads
    0
    Uploads
    0

    writing code and proving out

    When writing code like this, are there tools or formula's that would make it easier? Is there a way to back plot against a solid file while writing?

    Are the apt/cl commands that can be cross reference to the macro formula like this?

    #101=0
    #100=#101*[360/28]
    G0X[3.768*SIN[#100]]Y-[3.768*COS[#100]]
    #101=#101+1
    IF[#101EQ28]GOTO370
    GOTO90

    Thank You

    %
    O1000
    N10 G00 G17 G40 G49 G80 G90 Z0
    N20 G54 X0 Y0
    N30 M1

    N50 T1 M6 (EM .500 DIA X 1.0FL X 1.5OL)
    N60 G0 X1.0 Y0.0 M3 S1000
    N70 G43 Z2.0 M8
    (ROUGH SLOTS )
    N75 G1 Y-3.668 F3.0
    N80 #101=0
    N90 #100=#101*[360/28]
    N100 G0X[3.768*SIN[#100]]Y-[3.768*COS[#100]]
    N110 G1Z0.48F200.
    N120 Z0.225F#9
    N130 Z0.48F200.
    N140 X[3.653*SIN[#100]]Y-[3.653*COS[#100]]
    N150 Z0.225F#9
    N160 Z0.49F200.
    N170 X[3.538*SIN[#100]]Y-[3.538*COS[#100]]
    N180 Z0.225F#9
    N190 Z0.54F200.
    N200 X[3.423*SIN[#100]]Y-[3.423*COS[#100]]
    N210 Z0.225F#9
    N220 Z1.33F200.
    N230 X[3.308*SIN[#100]]Y-[3.308*COS[#100]]
    N240 Z1.F#9
    N250 Z0.63F200.
    N260 Z0.225F#9
    N270 Z1.33F200.
    N280 X[3.2225*SIN[#100]]Y-[3.2225*COS[#100]]
    N290 Z0.9F#9
    N300 Z.77F200.
    N310 Z0.225F#9
    N320 X[3.66*SIN[#100]]Y-[3.66*COS[#100]]F#1
    N330 G0Z4.
    N340 #101=#101+1
    N350 IF[#101EQ28]GOTO370
    N360 GOTO90
    N370 M30
    %


  2. #2
    Registered dcoupar's Avatar
    Join Date
    Mar 2003
    Location
    USA
    Posts
    2,502
    Downloads
    0
    Uploads
    0
    You might want to try the Cimco Editor to see if the backplot comes out right. I tried it a year ago when I was developing a macro, and IIRC, it worked just fine. I think you can download a trial version here:

    CIMCO Integration / Download


Similar Threads

  1. G Code Program writing
    By Tool Guy 1234 in forum G-Code Programing
    Replies: 1
    Last Post: 04-23-2010, 07:33 PM
  2. Writing a custom M code?
    By greeder88 in forum Dynapath
    Replies: 1
    Last Post: 06-24-2009, 09:52 AM
  3. Need Help!- writing code for a laser
    By tp77 in forum SmartCAM
    Replies: 2
    Last Post: 10-01-2008, 03:40 PM
  4. writing G code
    By 300magnum in forum Australia, New Zealand Club house
    Replies: 2
    Last Post: 09-10-2008, 11:31 PM
  5. imagine writing the code for this!!!!
    By bearracecars in forum General Waterjet
    Replies: 9
    Last Post: 02-19-2007, 04:46 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.