The parameter might not be on for this option on the controler. What year is the controller, and make of machine is it? I might be able to get the right numbers for you.
Joe
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...
The parameter might not be on for this option on the controler. What year is the controller, and make of machine is it? I might be able to get the right numbers for you.
Joe
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
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
Thanks guys,
I'll give it a go.
Mark...
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!
![]()
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
deleted
Last edited by gar; 07-24-2007 at 01:36 PM.
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.
.
Hi. I don`t know almost nothing about forums. I need a FANUC 18i-M operation panel document for my class. If you may help me, please send me the information.
Excuse my english grammar.
Thanks, JOHN