![]() | |
| 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
| |||
| |||
HLC - High Level Control (like a more flexable programming language) I'm totaly new to G-Code, but I'm a programmer, I need to... do somthing like this. 10 g00 X0 20 g00 x-11.9844 30 'and here's really what I need 40 g00 y=y+1 50 if y=11.9844 then goto HOME_IT 60 goto 10 :HOME_IT g00 x0 y0 z0 ******************************** It does not need to be exactly like the above code, I just need a way to use variables, loops and functions. It would be nice to be able to define constants, and/or macros also. Like I said I'm totaly new to G-Code. Is there a tool I can use to do this ? is it built in ? Where is a tutoral, How do I do it ? Thanks, |
|
#2
| |||
| |||
| 070504-1952 EST USA deleteallusers: The following would apply to HAAS and Fanuc. Nxxxx is a line number and is not required unless you need or want it. (Inside parens) is a comment. There were some non-obvious problems on older HAAS machines, still no way to put a paren inside a comment. G00 and G01 are motion commands. Asserted once is all that is necessary for a sequence of linear moves. Variables addresses are identified a # and number. So your increment operation is #500 = #500 + 1 IF THEN works IF [#500 GT 100] GOTO 300 otherwise here N300 On the HAAS website www.haasautomation.com bottom of page site map, then customer service, manual updates, MIL 96-8000. Go to the section on MACROS starting around page 80. edit MACROS in CNC are simply an extension of the G-code instructions. There is no such thing as a computer language MACRO in HAAS. end edit . |
|
#4
| |||
| |||
| Indramat MTCNC uses word jumps if you specifically want words. Fanuc will do a line number jump. Indramat G00 X0 G00X-11.9844 G00Y+@100 @100=@100-@101 BSR.HOME_IT .HOME_IT G00X0Y0Z0 Fanuc G00X0 G00X-11.9844 G00Y+#500 IF[#25EQ11.9844]GOTO99 N99 G00X0Y0Z0 |
![]() |
| 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 |
| Wierd NC Code and G-Code | Tazzer | General CAM Discussion | 10 | 01-09-2012 01:07 PM |
| To hand Code? or to CAD Code? | automizer | Polls | 81 | 11-26-2011 09:30 PM |
| learning g code or cad-cam code output? | slow_rider | G-Code Programing | 3 | 02-27-2010 08:48 PM |
| G-code for beginners - want to learn G-code | FPV_GTp | G-Code Programing | 7 | 11-17-2008 11:25 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 |