Hello Guest it is October 21, 2019, 05:19:28 PM

Author Topic: Estimated Time To Go  (Read 5393 times)

0 Members and 1 Guest are viewing this topic.

Estimated Time To Go
« on: May 17, 2008, 01:31:44 PM »
Is there a way to make a screen with an Estimated Time TO Go Display? Assuming that you first did an Estimate of total time the subtract Elapsed Time and Displaying the result as a constantly updating Estimate of Time To Go? Sounds go but how to do it? Any suggestions?

Thanks
Tom

Offline zealous

*
  •  492 492
  • HI!
    • View Profile
    • Artsoft Solutions
Re: Estimated Time To Go
« Reply #1 on: May 24, 2008, 06:41:01 PM »
Ummm seems VB will not allow me to get the DRO14 and 15 for Estimate and Elapse time, I belive it is because of the time format.. I did what you want in a Flash screen but if you are using a .set screen and VB I don't think you can...You might ask Brian on the Yahoo forum....

If you can get away with displaying the % completed you can do that in VB with a .set screen...in the VB section of the forum has the code you want. I dont know how or dont know if you can format a DRO to time in VB...you would have to use Flash or C++ to do that.
Re: Estimated Time To Go
« Reply #2 on: May 26, 2008, 08:25:38 AM »
Thanks zealous I'll give that a try. Could you post the Flash screen so I could try that also?

Offline zealous

*
  •  492 492
  • HI!
    • View Profile
    • Artsoft Solutions
Re: Estimated Time To Go
« Reply #3 on: May 27, 2008, 05:27:49 PM »
Here you go...
1. Load file
2. Hit "Simulate"
3.Hit "rew file"
4. Run part
***Dont for get to load the Flash screen then restart Mach

The source file is included...
what I do is grab the two DRo and grab each part split by ":" then do the math

This screen also included the "% completed" so far as well......you can use one of the gauges to represent the amount of time leaft or remaining lines of Gcode

I'm in the middle of some encription code so this is a good start...

Code: [Select]
horse.onEnterFrame = function() {
var elapsed_array:Array = _root.DRO814.split(":");
var Estimated_array:Array = _root.DRO815.split(":");
for (var i = 0; i<3; i++) {
remaininga = Estimated_array[0]-elapsed_array[0]+':';///days/hours
remainingb = Estimated_array[1]-elapsed_array[1]+':';///minutes
remainingc = Estimated_array[2]-(elapsed_array[2]);//seconds
}
remaining.text = remaininga+remainingb+remainingc;///all formated
};

If your intrested in all that this screen does look at:
*The video is here:

http://alphagraphicdesigns.com/help/Quantum/MachComponents1.0.1.wmv

Offline zealous

*
  •  492 492
  • HI!
    • View Profile
    • Artsoft Solutions
Re: Estimated Time To Go
« Reply #4 on: May 27, 2008, 07:01:41 PM »
Trouble uploading to Mach forum so....
Here is the file location:
alphagraphicdesigns.com/Download/Mach_Components _w_remain.zip
Re: Estimated Time To Go
« Reply #5 on: May 31, 2008, 03:10:28 PM »
Thanks I'll give it a try. Still dealing with a crashed WinXP so Mach3 is still down the list.