
adccommunitymod (AutomationDirect) asked a question.
Created Date: December 07,2011
Created By: BrianG
**** This post has been imported from our legacy forum. Information in this post may be outdated and links contained in the post may no longer work.****
I need to determine the elapsed time between two events; breaking the first light beam starts the timer, breaking the second stops the timer. I will then perform some math on the results (converting ft/sec to mph), writing it to V-memory and display the results on a C-more panel. The timer will reset when a restart button is pressed. Seems like the easiest way is to simply set the Preset on the TMRF to twice the longest time period expected. Thus I will set it for 45 seconds. Anyone see any problems with this?
Created Date: December 07,2011
Created by: Bob S BN
Setting a timer to twice expected, or max is acceptible. Just make sure it gets reset for the next go round.
Upon completion of the cycle(breaking of the second beam), you will want to LDD the TAxxx (timer accumulated) value associated with you timer and do your conversion math and OUTD to another memory location with your MPH number, and then reset the timer. Point your CMORE numeric display to the MPH memory location.
Created Date: December 07,2011
Created by: johnaden
Remember that the first sensor is momentary, so use it to latch on the timer. The second sensor will break the latch. At that point, the retentive timer should be holding the time value between both events.
Created Date: December 07,2011
Created by: BrianG
I need to determine the elapsed time between two events; breaking the first light beam starts the timer, breaking the second stops the timer.
I will then perform some math on the results (converting ft/sec to mph), writing it to V-memory and display the results on a C-more panel.
The timer will reset when a restart button is pressed.
Seems like the easiest way is to simply set the Preset on the TMRF to twice the longest time period expected. Thus I will set it for 45 seconds.
Anyone see any problems with this?