![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| Machine Problems, Solutions , Wireless DNC, serial port Need help with your Machine or need a Machining solutions for , Serial Port, Cable problems between PC and all others DNC problems disucss them here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| ||||
| ||||
Hi there, I did not know where to post this question so I thought here was as good a place as any. My problem is that sometimes I need to time a job thats cutting, I can note the start time but sometimes I can't note the end time. Is there any way that I can set the controller to time the job? I have read something about how to do this but can't get to grips with it. (Fanuc 18i-M controller) Mark... |
|
#3
| |||
| |||
IF the machine has custom macro B, a simple macro can be written to store the system variable for time (#3012) at the start of the program (i.e. #500=#3012), store it at the end of the program (i.e. #501=#3012), then take the difference (i.e. #502=#501-#500). I think that might get what you're looking for. HTH
__________________ Paul Sevin - Ovation Engineering, Inc. http://www.ovationengineering.com |
|
#4
| |||
| |||
| Dear Wjman, psevin has given the exact reply. When you write #500 = #3012, it will record the Clock Time at that moment in the macro #500. If the Right Hand corner of you screen shows 9:23:40, the macro #500 will store a value of 92340. Similarly it will store the clock time in #501. (You can use anyother macro like #100 or #1 etc. However, #500 serie Macros do not wipe out after Power Off, whereas others do. Now you can do manual calculation to find out the cutting Time. Or you can write another complex Macro Program to do Cycle time calculation and give you Cycle Time readily. However, note that, we need to use these Macro feature, only where it is really necessary. Because these Macro Programs consume valuable time of the CNC Processor. smabhyan
__________________ smabhyan |
|
#6
| ||||
| ||||
| Guys, I tried your suggestion today, It worked great. I had to use #510 - #512 as #500-#506 are used in every program I use, but the end result was the same. I understand smabhyan's explanation regarding the complex macro . So without getting too complicated I will use the method suggested by you guys. Thanks for your answers. Much appreciated. Mark... P.S. That's what forums like these are about.
__________________ If in doubt ask! |
|
#7
| |||
| |||
Hi, I created a timer to calculate a working time in macro O1000 (sub-pro) In the main program: you can add on one line in the begining to set starting time in #500 and call #1000 in end before M30. After run this program, you can check #505 - for hours, #506 - for minutes, #507 - for seconds Any questions, you can e-mail to me "yihong.wu99@gmail.com" or "jwu@optimamfg.com" for Example: O1 (Main program) #500=#3012 (set staring time in #500) --------- --------- --------- M98 P1000 ( to calcute working time) M30 O1000 (MACRO FOR A TIMER BY Yi-Hong WU 07/23/2007) #501=#3012(TO GET ENDING TIME) #2=0 IF[#500GT#501]GOTO500 N1#1=#500 N100#100=FIX[#1/10000] #101=FIX[[#1-#100*10000]/100] #102=#1-#100*10000-#101*100 IF[#2EQ1]GOTO2 #103=#100 #104=#101 #105=#102 #1=#501 #2=1 GOTO100 N2#106=#100 #107=#101 #108=#102 N3IF[#108GE#105]GOTO200 #108=60+#108 #107=#107-1 N200#507=#108-#105 IF[#107GE#104]GOTO300 #107=60+#107 #106=#106-1 N300#506=#107-#104 #505=#106-#103 GOTO600 N500#3000=141(OVERSIZE VALUE) N600 (#500 - FOR STARTING TIME) (#501 - FOR ENDING TIME) (#505 - FOR HOUR) (#506 - FOR MINUTE) (#507 - FOR SECOND) M99 |
|
#9
| |||
| |||
| 070724-0909 EST USA On a HAAS machine there is a millisec timer at #3001. This is quantized to 20 milliseconds. Maximum count is equivalent to 497 days per the manual. This is resettable to zero at any time, increments only in 20 millisecond increments. The 497 days appears to come from the use of a 32 bit counter of 1/100 second increments. Thus, if Fanuc has this capability you can zero the timer at the start of the cycle and simply read its value at the end of the cycle, or save values at different points in the cycle. An example output from a HAAS machine is at my web site www.beta-a2.com about 2/3 down on a very long E232 web site page. This shows output formatted results from times at various points in a machine cycle. Also measures part to part time. . |
![]() |
| 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 |
| DNC Feeding your Fanuc Controller | Gerry Newe | Fanuc | 5 | 07-06-2010 10:15 PM |
| Parameters No. for file transfer on a Fanuc O-mate controller | Niall | Fanuc | 8 | 06-03-2009 09:14 AM |
| CRC programing with an old Fanuc 11M controller | Moparmatty | G-Code Programing | 4 | 02-08-2005 10:10 AM |
| GMF Fanuc L-100 Robot R-F controller | whiteriver | Fanuc | 5 | 01-28-2005 11:16 AM |
| Anyone here ever used a Fanuc Position Mate controller? | Tarak | Fanuc | 1 | 10-18-2003 09:34 PM |