![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| Syil Products Discuss Syil milling machines and conversion kits here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
I'm a G-code newbie and can't figure out how to increment a parameter with it. E.g., I'd like to use the expression #1 = #1 + .001 (i.e. increment parameter 1 by .001), but Mach won't accept it, and the manual even says you can only have a real number on the right side of the =, nothing else (e.g. no expressions). I've posted this question on the Mach forum and can't get a straight answer (e.g. someone suggested I get a copy of Alibre and MeshCAD ???). Is something like this possible? Again, I'm a newbie, but it's pretty surprising if it isn't. Thanks. Involute |
|
#3
| |||
| |||
#1=-0.5 #2=0 G21 G40 G80 G90 G00 Z2 G1 F30 Z[#2] G4 P1000 (Dwell 1 sec) (Calling sub O124) M98 P124 Q5 (Repeat 5 times) #2=0 G00 Z[#2+2] Z[#2] M30 (end program) O124 (this is a sub) G1 Z[#2] F30 #2=[#2+#1] (Step decrease Z by value of #1 i.e. 0.5) G4 P1000 M99 You could also do it with incremental G91 Michel |
![]() |
| 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 |
| Jog Increment | gleas | Larken | 1 | 07-24-2007 12:07 AM |
| Changing Fanuc part counter increment? | gearsoup | Fanuc | 4 | 06-23-2007 07:50 AM |
| Increment the Z. | civilseal | Machines running Mach Software | 6 | 03-06-2007 08:46 PM |
| looking for g code 3d from bobcadcam or simmilar for indexer lpt v5 with g code soft | troyswood | Ability Systems - LPT Indexer and G-Code | 2 | 12-24-2006 09:21 PM |
| Stepper Increment Advantages | CNCadmin | General Metal Working Machines | 2 | 03-09-2004 08:36 PM |