Vehicle Speed Calculator
- twang
Vehicle Speed Calculator
Hello,
I got an application about calcuting the vehicle speed and mileage by the transmission shaft speed what is broadcasted by the Transmission.
For different vehicle, they will have different tire sizes and differential ratios etc, can we set these values through display buttons? If yes, will be great for customer common use....
If you have an example to achieve these, can you attach the .db3 file for me ?
Thanks.
Terry
I got an application about calcuting the vehicle speed and mileage by the transmission shaft speed what is broadcasted by the Transmission.
For different vehicle, they will have different tire sizes and differential ratios etc, can we set these values through display buttons? If yes, will be great for customer common use....
If you have an example to achieve these, can you attach the .db3 file for me ?
Thanks.
Terry
- ksaenz
- Enovation Controls Development
- Posts: 263
- Joined: Thu Aug 19, 2010 7:53 am
Re: Vehicle Speed Calculator
Hello Terry,
I attached a configuration that calculates Vehicle Speed from Shaft Speed, Differential Ratio, and Tire Diameter and it lets you adjust the variables.
Regards,
ksaenz
I attached a configuration that calculates Vehicle Speed from Shaft Speed, Differential Ratio, and Tire Diameter and it lets you adjust the variables.
Regards,
ksaenz
- Attachments
-
- Vehicle Speed from Transmission Output Shaft Speed.db3
- (3 MiB) Downloaded 34 times
- twang
Re: Vehicle Speed Calculator
Thanks Kristain.
Could anyone else who can tell me how to calculate mileages?
Could anyone else who can tell me how to calculate mileages?
- ksaenz
- Enovation Controls Development
- Posts: 263
- Joined: Thu Aug 19, 2010 7:53 am
Re: Vehicle Speed Calculator
Hello Terry,
I added a new variable with a calculation event to be fired from a state machine with a recurring timer of 1s.
I also set the new variable to be saved to nv memory every 60s.
Regards,
ksaenz
I added a new variable with a calculation event to be fired from a state machine with a recurring timer of 1s.
I also set the new variable to be saved to nv memory every 60s.
Regards,
ksaenz
- Attachments
-
- Vehicle Speed from Transmission Output Shaft Speed.zip
- Created with PVCS 2.2.10678
- (1.95 MiB) Downloaded 48 times
- twang
Re: Vehicle Speed Calculator
i don't understand the calculator event: "UserDefinedVariable.Vehicle Distance"+("UserDefinedVariable.Vehicle Speed"/3600)
As I know, the tirp distance should be equal Speed* time......
As I know, the tirp distance should be equal Speed* time......
- ksaenz
- Enovation Controls Development
- Posts: 263
- Joined: Thu Aug 19, 2010 7:53 am
Re: Vehicle Speed Calculator
Hello Terry,
You are correct, and in this case, since we are executing the calculation event every second our time is 1/3600 because there are 3600 seconds in an hour and the speed is in kilometer per hour.
Regards,
ksaenz
You are correct, and in this case, since we are executing the calculation event every second our time is 1/3600 because there are 3600 seconds in an hour and the speed is in kilometer per hour.
Regards,
ksaenz
- twang
Re: Vehicle Speed Calculator
Hello,
How to calculator the total trip distance by vehicle speed?
Tks,
Terry
How to calculator the total trip distance by vehicle speed?
Tks,
Terry
- ksaenz
- Enovation Controls Development
- Posts: 263
- Joined: Thu Aug 19, 2010 7:53 am
Re: Vehicle Speed Calculator
If you want to calculate trip distance instead of total distance you can use the same formula but add a calculation event to reset the value to 0.
Regards,
ksaenz
Regards,
ksaenz