Hello,
Our customer added a calculation event "average fuel rate" and put the following expression on that event to calculate the average fuel rate from total fuel used and engine total hours. Both parameters are sent via J1939 and they confirmed that both parameters were displayed on the monitor correctly, but the calculation event remained 0.
Exoression
[J1939_Engine_Total_Fuel_Used/J1939_Engine_Engine_Total_Hours_of_Operation]
Please find the attached picture and could you advise if there is any wrong in the configuration?
Best regards,
Toshiki
Calculation event does not work
- T Takehara
- Posts: 49
- Joined: Thu Sep 09, 2010 8:56 pm
Calculation event does not work
- Attachments
-
- calcurate average fuel rate.png (50.22 KiB) Viewed 158 times
- stalley
- Enovation Controls Development
- Posts: 618
- Joined: Tue Mar 18, 2014 12:57 pm
Re: Calculation event does not work
Hello Toshiki,
Look at the properties of the text gauge used to display the Average Fuel Rate. If it only displays integers and the result of the calculation event is less than one, the gauge will show zero. It is best to have the gauge show one or two decimal places and change the Smallest Increment property to 0.01.
If your customers try this and the result of the calculation event still results in 0, please let me know what version of PowerVision Configuration Studio they are using.
Best Regards,
Look at the properties of the text gauge used to display the Average Fuel Rate. If it only displays integers and the result of the calculation event is less than one, the gauge will show zero. It is best to have the gauge show one or two decimal places and change the Smallest Increment property to 0.01.
If your customers try this and the result of the calculation event still results in 0, please let me know what version of PowerVision Configuration Studio they are using.
Best Regards,
Sara Talley
Software Engineer
Enovation Controls
Software Engineer
Enovation Controls
- T Takehara
- Posts: 49
- Joined: Thu Sep 09, 2010 8:56 pm
Re: Calculation event does not work
Hello,
The result of calculation event is more than one because the numerator of total fuel used is larger than denominator of total hours (I.e. 1087 L/60.47 h = 17.98 l/h). They also set the decimal places as 1 (0.0 l/h).
The version of PowerVision they use is 2.7.10475 but their configuration was originally created by version 2.2 or 2.3.
That configuration was upgraded many times according to the latest version then.
It is appreciated if you advise how to make a calculation event with CAN data.
Best regards,
Toshiki
The result of calculation event is more than one because the numerator of total fuel used is larger than denominator of total hours (I.e. 1087 L/60.47 h = 17.98 l/h). They also set the decimal places as 1 (0.0 l/h).
The version of PowerVision they use is 2.7.10475 but their configuration was originally created by version 2.2 or 2.3.
That configuration was upgraded many times according to the latest version then.
It is appreciated if you advise how to make a calculation event with CAN data.
Best regards,
Toshiki
- stalley
- Enovation Controls Development
- Posts: 618
- Joined: Tue Mar 18, 2014 12:57 pm
Re: Calculation event does not work
Hello Toshiki,
The calculation event looks ok. How or when is the calculation event fired?
The calculation event looks ok. How or when is the calculation event fired?
Sara Talley
Software Engineer
Enovation Controls
Software Engineer
Enovation Controls
- T Takehara
- Posts: 49
- Joined: Thu Sep 09, 2010 8:56 pm
Re: Calculation event does not work
Hello,
The customer wants to fire the calculation event whenever the "total fuel used" and the "total hours" are sent from ECU via CAN.
Both CAN data are correctly sent to the PV780 and are displayed on the monitor.
They tried to uncheck the checkbox of "Fire on change" but it still does not work.
Do you have any idea what the possible causes are?
Best regards,
Toshiki
The customer wants to fire the calculation event whenever the "total fuel used" and the "total hours" are sent from ECU via CAN.
Both CAN data are correctly sent to the PV780 and are displayed on the monitor.
They tried to uncheck the checkbox of "Fire on change" but it still does not work.
Do you have any idea what the possible causes are?
Best regards,
Toshiki
- stalley
- Enovation Controls Development
- Posts: 618
- Joined: Tue Mar 18, 2014 12:57 pm
Re: Calculation event does not work
Hello Toshiki,
I am sending a simple example config that is my recommendation for how to accomplish getting the average value to display. You can't use the on change in this situation.
The variable, timer event and activity program are in the ~Demo group. Variables are displayed on the screen.
I am sending a simple example config that is my recommendation for how to accomplish getting the average value to display. You can't use the on change in this situation.
The variable, timer event and activity program are in the ~Demo group. Variables are displayed on the screen.
- The timer event causes the activity program, Calculate Average, to be run every 500msec.
- The calculation should only be executed when the fuel and engine hours parameters are being received, that is the AND(ISVALID(),ISVALID()) decision in the activity program.
- If the average is not being calculated, the variable is set to 0 to indicate it is not being updated.
- Attachments
-
- Demo - Ave.zip
- (678.25 KiB) Downloaded 27 times
Sara Talley
Software Engineer
Enovation Controls
Software Engineer
Enovation Controls