![]() | |
| 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 am looking for some help to configure a macro. I need to display the tool time after each sequence and also what tool is being used. I am totally new to this and have absolutely no idea what I should be doing. I have so far managed to insert some code to request a user name after the program number. This displays ok in the tape file. Does this code look ok to display the tool name? I found it online. CIMFIL/ON,PPRINT TXT=TEXT/CLW TEST=TEXT/'TOOL NAME' OKCOM=INDXF(TXT,TEST) IF (OKCOM.NE.0) THEN MESS=TEXT/OMIT,TXT,1 COL=TEXT/':' COLPOS=INDXF(MESS,COL) LEN=CANF(MESS,1) NMESS=TEXT/RANGE,MESS,COLPOS+1,LEN ELSE DMY=POSTF(13) ENDIF CIMFIL/OFF And this to display the cycle times: CIMFIL/ON,LOADTL RSLT=POSTF(20) TIME=TEXT/POSTF(1,3,0498) INSERT/'(TOOL CYCLE TIME=',TIME,')',EOB RSLT=POSTF(21) RSLT=POSTF(13) CIMFIL/OFF I am using Pro E Gpost. Totally out my depth, any help would be welcome. |
![]() |
| 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 |
| AutoCAD 2 G-Code macro | ger21 | Autodesk Software (Autocad, Inventor etc) | 224 | 11-06-2011 12:02 PM |
| Bar Code MACRO Variables???? | Ziegler | NCPlot G-Code editor / backplotter | 3 | 10-12-2009 11:06 AM |
| Problem- macro code inside of a subroutine | brockmo | Fadal | 7 | 03-12-2009 10:32 PM |
| Fanuc Macro and G-Code Programming | kilogulf59 | Fanuc | 3 | 11-01-2006 11:02 AM |