I am sorry, but I am not a programmer :)
If understand correctly, then M150 inserts a date (and probably time)
in the file "cnc-job-start-time" and M151 sends e-mail, when the job
is completed.
Is it possible to have M1** command posting the name of opened g-code
and start time in a txt file and another M** command - posting end
time and calculate the time spent? Or, even better - have M1** command
take a value from run-timer HAL pin (see the link that Andy provided:
http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?SimpleCycleTimer ).
What is Your as a programmer's opinion - is it possible?

/vie

2010/8/27 Igor Chudov <ichu...@gmail.com>:
> I was not a member of this list before July or so.
>
> Logging time of starting and stopping is very easy. I already do so
> with M100 commands (shell scripts).
>
> I use M150 int he beginning and M151 at the end:
>
> M150:
>
> #!/bin/bash
>
> #
> # Igor's Custom M150 script -- Remember job start time
> #
>
> test -d $HOME/.cnc || mkdir $HOME/.cnc
> date > $HOME/.cnc/cnc-job-start-time.txt
>
>
> M151:
>
> #!/bin/bash
>
> #
> # Igor's Custom M151 script -- send email about job completion
> #
>
> Work() {
>    (
>        echo 'CNC Job Started on ' $(cat  $HOME/.cnc/cnc-job-start-time.txt )
>        echo 'CNC Job Ended   on ' $(date)
>    ) | Mail -s "CNC_Job Completed" m...@email.com
> }
>
> Work &
>
> On Fri, Aug 27, 2010 at 9:19 AM, Viesturs Lācis
> <viesturs.la...@gmail.com> wrote:
>> Actually there was a long discussion on this topic about the estimated
>> run time and getting approximate progress bar few months ago. Probably
>> You might have them in email, or, if You have joined the list recently
>> try searching archives or let me know - I can try forwarding them.
>>
>> I would like to have the running time logged so that I can bill my
>> customers for the real machine working time, not some mystical
>> approximations. I think that such a feature might be interesting to
>> others who are using EMC on production machines.
>>
>> /vie
>>
>> 2010/8/27 Igor Chudov <ichu...@gmail.com>:
>>> On Fri, Aug 27, 2010 at 9:03 AM, Viesturs Lācis
>>> <viesturs.la...@gmail.com> wrote:
>>>> For a while I have been thinking of something related to this -
>>>> showing (ideally - also saving to some log file) the time the file has
>>>> been running - not the remaining time, but the used time. How can I do
>>>> that?
>>>
>>>
>>> That's a good idea, I would especially like a percentage, like a
>>> progress bar, that I could display.
>>>
>>> i
>>>
>>>>
>>>> 2010/8/27 Igor Chudov <ichu...@gmail.com>:
>>>>> File/Properties... shows you runtime estimation.
>>>>>
>>>>> I use it all the time.
>>>>>
>>>>> On Fri, Aug 27, 2010 at 8:28 AM, Wolfgang Koebler <wk-l...@koebler.com> 
>>>>> wrote:
>>>>>> The Axis gui shows a 3D view of a .ngc program, as soon as it is opened.
>>>>>> That's quite nice. Yet another thing that would come in handy would be
>>>>>> a runtime estimation for the program. Is there something like this ?
>>>>>> Or would it be hard to implement it ?
>>>
>>> ------------------------------------------------------------------------------
>>> Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
>>> Be part of this innovative community and reach millions of netbook users
>>> worldwide. Take advantage of special opportunities to increase revenue and
>>> speed time-to-market. Join now, and jumpstart your future.
>>> http://p.sf.net/sfu/intel-atom-d2d
>>> _______________________________________________
>>> Emc-users mailing list
>>> Emc-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/emc-users
>>>
>>
>> ------------------------------------------------------------------------------
>> Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
>> Be part of this innovative community and reach millions of netbook users
>> worldwide. Take advantage of special opportunities to increase revenue and
>> speed time-to-market. Join now, and jumpstart your future.
>> http://p.sf.net/sfu/intel-atom-d2d
>> _______________________________________________
>> Emc-users mailing list
>> Emc-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/emc-users
>>
>
> ------------------------------------------------------------------------------
> Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
> Be part of this innovative community and reach millions of netbook users
> worldwide. Take advantage of special opportunities to increase revenue and
> speed time-to-market. Join now, and jumpstart your future.
> http://p.sf.net/sfu/intel-atom-d2d
> _______________________________________________
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>

------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to