Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Timer Query Command?
#1
Hi,

I looked at the serial command document and cannot find a command that will return the current value of a running Timer. Is there a way I can query a timer value?

Ingo
Reply

#2
Action 132, flag, 2 returns the value of the flag as 0 or >0
The DA command (Do Action) allows you to do any action
The RA command will return the value
eg
DA841002 means Do Action Get Flag 10. Theparameters are in hexadecimal notation
RA00 means value is 0, any value >00 means the flag is set

There will be a F? command in a future fimrware release being planned
Reply

#3
I actually meant the value of Timer01. If I have a response currenly being executed which has a statement like Do LightOff in 60 using Timer01, I want to know what the value of Timer01 is to see if it really counts down from 60 and what the instantaneous value is at any moment.

If I query Timer01\'s value every second it must return 60, 59, 58 etc....

If I follow your RS232 logic then I would assume there will be a command like T?01 but there isn\'t. Will there be one in the future?
Reply

#4
Sorry for mixing up Timers and Flags

There is an Action for checking Timer status
Action 86, NN will check the status of Timer NN

So the Rs232 command
DA5601 means check Timer 1
RA00 means timer off
RAXX where XX>0 means Timer on (running)
Reply

#5
So where RAx  > 0   is the x the remaining time left or just a random value?

I thought from discussions I\'ve had seperately with Ingo that he\'s trying to get at the value of the number of seconds/ticks left.

Julian

 
Reply

#6
The Action just gives the status of the timer whether it is running or not, and not the remainng time. There is no action to tell the remaining timer on a timer
Reply

#7
Now that\'s what I was looking for, the remaining time of Timer X.

How about this, a future command like this: T?00 with returm value of T?00FEFE. The only problem I see is with the 4 digits making up the timer duration. This command will query the remaining time of timer 00 and returns a max of FEFE.


Explain the previous Flag comand again, if I were to check flag 7 what would be different from the statement below?
Quote:DA841002 means Do Action Get Flag 10. Theparameters are in hexadecimal notation
 
Reply

#8
Ah.. I found it, looking at the Action Codes I can see that 02 means \'check\'.
Reply

#9
Remember that action 132 will tell you only if the timer is running and not how many seconds remain
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

Powered By MyBB, © 2002-2026 Melroy van den Berg.