![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| G-Code Programing Discuss G-code programing and problems here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
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
| ||||
| ||||
| 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 |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| G Code Program writing | Tool Guy 1234 | G-Code Programing | 1 | 04-23-2010 06:33 PM |
| Writing a custom M code? | greeder88 | Dynapath | 1 | 06-24-2009 08:52 AM |
| Need Help!- writing code for a laser | tp77 | SmartCAM | 2 | 10-01-2008 02:40 PM |
| writing G code | 300magnum | Australia, New Zealand Club house | 2 | 09-10-2008 10:31 PM |
| imagine writing the code for this!!!! | bearracecars | CNC Plasma and Waterjet Machines | 9 | 02-19-2007 03:46 PM |