![]() | |
| 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
| |||
| |||
Here is a little subroutine I created today to give live feedback to an operator. Did a pretty good job of improving throughput. Calculates a moving average of the last ten runs. Written for a Super Mini Mill. I heavily comment my stuff to make it easy to understand for our non CNC machinists. Code: %
O40002 (Parts per hour running average)
(Subroutine calcs the number of parts )
(that are being produced per hour )
(This is calculated based on the time taken )
(between calls stored in a)
(10 position ring buffer.)
(** Required Arguments **)
("D" count of parts per run)
(** Macro vars used **)
(670-679 used for ring buffer)
(681 Current position in buffer)
(682 Calculated parts per hour )
(3001 is th HAAS millisec timer)
(Checks to see if buffer position needs to)
(return to zero.)
IF[#681 GT 9] THEN #681 = 0
#[670 + #681] = #3001 (Store timer value)
#681 = #681 + 1 (Increment buffer position)
#3001 = 0 (Reset timer)
#1 = 0 (Loop counter)
#2 = #681 (Ring buffer average starting point)
WHILE[#1 LT 10]DO1
#3=#3 + #[670 + [#2 MOD 10]]
#2 = #2 + 1
#1 = #1 + 1
END1
#4 = #3/10 (Divide by buffer size for average)
#4 = #4/1000 (Convert from milsec)
#4 = #4/#7 (Divide by number of parts/run)
#682 = 3600 / #4 (Store number of parts per hour)
M99
% |
|
#2
| |||
| |||
| Cool. I did something similar, but much more detail years ago for a Fagor 8055 control that would output to a daily file the end of each cycle, the program number completed.
__________________ http://www.kirkcon.com/ |
|
#4
| ||||
| ||||
| I've been machining for many years and I worked out that the average time for a part is double the actual cycle time. So if a part takes 6 minutes of actual machine run time (theoretical 10 parts an hour if you had 0 minutes downtime) then you can do 5 parts an hour. the double-cycle-time average is very close to reality if averaged over an 8 or 10 hour day. reality means having to deal with everything else that's going on including loading parts, measuring parts, changing inserts and keeping track of tool wear, clearing swarf from parts and chucks before loading/unloading, cleaning up/general house keeping, general interruptions like running out of inserts because our storeman is a loser and chasing the workshop for some replacements, talking to one or more of the bosses about current job and upcoming jobs, eating, sh*ting etc. it could also vary if the person is just a button pusher and running only 1 machine and is dedicated. then he could probably manage 8 parts per hour on average based on a 6 minute cycle run time. non-dedicated people usually dont give a sh*t and probably do less than 5 parts an hour average and no amount of active timing will change that (at least not where I work) |
![]() |
| 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 |
| Used Haas parts | JasonR | Haas Mills | 0 | 03-16-2010 10:23 PM |
| Hour meter on Haas VF cnc machines | imholta | Haas Mills | 8 | 01-27-2010 12:21 AM |
| Haas hour meters??? | mniadna | Haas Mills | 3 | 06-08-2009 09:28 AM |
| HAAS TM-1P parts | ssrmr2 | Haas Mills | 4 | 05-28-2008 05:52 AM |
| haas parts? | markct | Haas Mills | 5 | 06-17-2007 09:27 AM |