Hello Guest it is March 28, 2024, 09:10:50 AM

Author Topic: Mach3 CB timers()  (Read 4912 times)

0 Members and 1 Guest are viewing this topic.

Offline BR549

*
  •  6,965 6,965
    • View Profile
Mach3 CB timers()
« on: December 10, 2012, 02:26:11 AM »
Has anyone user the Timer() functions lately. I am getting some strange times from it .

Can someone run this CB code and see what time you get.

SetTimer(10)
Sleep(10000)
MsgBox"" &GetTimer(10)

I should get a time of close to 10 sec BUT I get a return time of .38486666666 secs

Thanks (;-) TP

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Mach3 CB timers()
« Reply #1 on: December 10, 2012, 03:07:48 AM »
OK NEVER mind I found the problem.  I outsmarted myself.

(;-) TP

Offline sebba

*
  •  42 42
    • View Profile
Re: Mach3 CB timers()
« Reply #2 on: May 31, 2015, 04:30:01 AM »
hello,

I'm getting similar values from GetTimer(xx), not seconds...
What was the problem?

Thanks

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Mach3 CB timers()
« Reply #3 on: June 01, 2015, 01:06:36 PM »
I have no idea . THAT was 3 years ago.

The Timers return milisecs

(;-) TP

Offline sebba

*
  •  42 42
    • View Profile
Re: Mach3 CB timers()
« Reply #4 on: June 04, 2015, 02:06:33 AM »
thanks for your reply

but... I don't get a value in milisecs...
GetTimer return a value of 3.0yyyy for an interval of 33 seconds

Quote
Thu - 09:03:47 ---Wait for spindle to reach the requested speed... 0
Thu - 09:04:20 ---Spindle Error! Requested Speed Not Aquired!! Program Execution Aborted! - Line: 9 - 3.02204

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Mach3 CB timers()
« Reply #5 on: June 04, 2015, 04:18:27 PM »
OK i take that back I just tested it here. It has a resoultion of 13 decimals but displays as seconds.

Mach3 V.062

« Last Edit: June 04, 2015, 04:20:05 PM by BR549 »