Just Having Fun

77nomad

Member
Join Date
Jan 2017
Location
Mi.
Posts
87
I recently came across a scale slot car drag racing track used for $4500. The racer in me was like cooool. The programmer in me was like, I can make that way cheaper!

So I sat down and started about writing logic. Where I hit the wall was I don't know how to save the elapse times. I know how to set up a register and use a timer to count to 60s and add one to the register to create a run time for say a machine or motor. But this is a much higher resolution. Reaction time alone would be less than a second and measured to the thousandth. Say, I have a PEC covered and the timer starts on the green light output and times until the PEC is no longer blocked.

Later I'll need to do the same for four more sets of PECs and later use the last two to calculate MPH. Maybe I'm just too bored, maybe I have the wrong hardware. I'll probably use a Micro 1100 or a 5/03 as I have a few laying around. I know this isn't exactly a run of the mill project but it is something I can teach my kids about what dad does at work.

Any advise is always appreciated.

-Damon
 
A PLC with Fast DC inputs, or maybe try a high speed counter input.

Also, a PLC with a timer resolution of 0.001 seconds, unless the high speed counter input can time.
 
A faster PLC will help, but will always have IO and program scan time delays.

Using a high speed input card or high speed counter card will give you the best results because the hardware can capture the time data at the card - the PLC just retrieves the result afterwards.
 

Similar Topics

Until my new AB 1747-UIC cable failed :( Not impressed, only a couple of weeks old, went to do an update and not recognised by windows any more...
Replies
4
Views
1,616
I have an Allen Bradley temperature switch that I am trying to use in studio 5000. I am getting the message "Unable to interpret the IODD file"...
Replies
0
Views
47
I copied a panel in factory talk HMI for an identical system. The label names are still the same as the original panel but I am trying to change...
Replies
1
Views
126
Hi All, Firstly… Merry Christmas to all of you! Secondly, as some of you may have noticed I made some modifications to our backend to address...
Replies
29
Views
7,073
Hi Everyone, I am supporting a system which runs on a SLC 500 (1747-L532). A fault has developed whereby the output state of some digital outputs...
Replies
10
Views
992
Back
Top Bottom