![]() | |
| 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
| |||
| |||
| Hi, does anyone know of any application which can copy NC code generated for one particular Z level to be copied into different Z levels automatically without me having to do it manually in notepad (which i do now) ? I do not want to use program nesting or program repeat and i want all the Z levels in one single program. Thanks |
|
#2
| |||
| |||
If the control you're using the code with has the User Macro option, Fanuc, Yasnac and Haas all use a similar syntax and the following code can be modified to suite and will result in a program that will keep repeating X,Y code at various Z levels until down to full depth. Regards. Bill #1=0 (Z cut in variable - initial value of Z start level) #2=-5.0 (Cut in amount each Z level) #3=-23.0 (Full depth) N10 #1 = #1 + #2 IF [#1 LT #3] TH #1 = #3 G01 Z#1 F100 X300.0 F500 Y200.0 -------- -------- -------- etc IF [#1 GT #3] GOTO10 Remainder of program --------- --------- |
|
#3
| |||
| |||
| I do not want to use custom macro in this case and hence this requirement. What Editor/Comms package are you talking about which can do this job ? [QUOTE=angelw;870794]An Editor/Comms package that I wrote has that feature. You specify the start and finish block that you want to copy, the Z level increment for each copy, and the total Z depth. The routine copies the code using the Z level increment. If the full depth is not evenly divisible by the Z increment, the last Z level is at full depth. |
|
#4
| |||
| |||
| Regards, Bill |
|
#5
| |||
| |||
| Editor1.zip Pictures Z Level1 through to Z Level4 shows the sequence to copy code to various Z levels and is as follows: 1. Highlight code to be copied. (Z Level1 picture) 2. Select Level Repeat from the Tool Bar Menu. Z Level Calculator form will appear (Z Level2 picture) 3. Complete the various Text Box inputs and Mouse Click Calculate and the expanded Z Levels will be displayed in the main Text Box (Z Level3 picture) 4. When satisfied, Mouse Click Paste + Exit. The Code in the Z Level Calculator form will be copied to the main Editor Window (Z Level4 picture) Picture DNC1 is a general view of the Editor during a DNC (Drip Feed) session. The cursor keeps pace with the code being currently executed by the machine tool and indicates the next block. Regards, Bill |
| Sponsored Links |
![]() |
| 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 |
| Auto Tool Zero VBA Code gives Syntax Error | kiltjim | Mach Wizards, Macros, & Addons | 2 | 02-02-2009 05:32 PM |
| Need Help!- Copying Blocks | billiards | HURCO | 4 | 10-26-2008 05:58 PM |
| Auto cad 3d draw to g-code | jorgeneo560 | Autodesk Software (Autocad, Inventor etc) | 5 | 08-03-2008 12:27 AM |
| Dongle copying | JR1050 | General CAM Discussion | 23 | 12-27-2007 11:32 AM |
| When I hit "Cut Auto" the code generates | seanreit | BobCad-Cam | 0 | 11-27-2007 07:05 PM |