![]() | |
| 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
| |||
| |||
I'm new to programming with macros so please forgive my ignorance. I need to know how to write a macro that I can input: Variable #1 (how many individual tool programs are there?) Variable #2 (number of cavities to be cut in 1st row) Variable #3 (centerline distance between cavities) Variable #4 (number of cavities to be cut 2nd row) (may be 0) Variable #5 (X translation amount for 2nd row) (may be 0) Variable #6 (Y translation amount for 2nd row) (may be 0) Variable #7 (tool 1 program number) Variable #8 (tool 2 program number) Variable #9 (tool 3 program number) Variable #10 (tool 4 program number) Variable #11 (tool 5 program number) Variable #12 (tool 6 program number) Variable #13 (tool 7 program number) Variable #14 (tool 8 program number) Variable #15 (tool 9 program number) Variable #16 (tool 10 program number) Variable #17 (tool 11 program number) Variable #18 (tool 12 program number) Variable #19 (tool 13 program number) Variable #20 (tool 14 program number) Variable #21 (tool 15 program number) Variable #22 (tool 16 program number) Macro 1. Run individual tool program offset (variable #3) (variable #2) times. 2. Mirror if necessary. 3. Run program offset (variable #5 and #6) (variable #4) times. 4. Mirror if necessary. 5. Move to next tool program I may not use all the tools on every job. The cavities I'm programming have a lot of 3D detail and I use a lot of small cutters with a lot of movement for the detail. The programs might be upwards of 30 cavities on a single plate (cutting two plates at a time) and the programs are just too large to run complete. That's why I want to start using macros. That way I can just post the individual tool programs for one cavity. |
![]() |
| 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 |
| Need Help!- X3 CNC macros | trainfred | Syil Products | 6 | 05-20-2008 07:42 PM |
| Need Help!- macros | bob@apc | Mazak, Mitsubishi, Mazatrol | 2 | 02-04-2008 11:42 AM |
| Macros | cncfreak | General CAM Discussion | 24 | 05-06-2005 05:04 PM |
| macros | toyoda | General CAM Discussion | 0 | 05-30-2004 04:56 AM |
| Macros | MachineSMM | General CAM Discussion | 2 | 06-20-2003 12:41 PM |