Dynomotion

Group: DynoMotion Message: 12728 From: embraced338 Date: 1/21/2016
Subject: KFLOP timestamp

Hi all,


I've got a need to write the machine coordinates to a file, with each entry including a timestamp. This would be called by a custom M command.


I was thinking i could use the functionality that the 'measure' button on KMotionCNC, but I can't find any information about how this button functions.


I also can't find any resources on how to get a timestamp.



Any help in trying to solve these two would be very much appreciated.



Thanks.

Group: DynoMotion Message: 12729 From: Tom Kerekes Date: 1/22/2016
Subject: Re: KFLOP timestamp
Hello,

KFLOP itself doesn't have a date+time-of-day clock.  Only the Time in seconds since it was powered up as Time_sec(). 

Do you need the absolute time?  I can't think of a way currently of doing that without writing a PC program to set a reference time into KFLOP.

Here is a post describing the Measure button:
http://www.cnczone.com/forums/dynomotion-kflop-kanalog/270918-software.html#post1707242

To look at the source code see
int CCoordMotion::MeasurePointAppendToFile(const char *name)

in CoordMotion.cpp

Regards
TK


On 1/21/2016 8:44 PM, embraced338@... [DynoMotion] wrote:
 

Hi all,


I've got a need to write the machine coordinates to a file, with each entry including a timestamp. This would be called by a custom M command.


I was thinking i could use the functionality that the 'measure' button on KMotionCNC, but I can't find any information about how this button functions.


I also can't find any resources on how to get a timestamp.



Any help in trying to solve these two would be very much appreciated.



Thanks.