Dear Sir or Madam,
My customer wants to use the PV750 with ES2F sender to display the fuel level. Since I have made a configuration data for PV450 to be able to display the fuel level, I tried to make the configuration data for PV750 like I have done for PV450. However, the message "ERR: The identifier VariableIDs.IO_Analog_Input is not recognized" was appeared and could not save the configuration data. The attached is the scripts to calculate the fuel level I used. The procedure that I tried to make the configuration data is as below.
First of all, in "Environment Setup" tab, I changed the "Input Channel 1" on the Input/Output Channels tab as below,
1) I clicked a check box "Auto Create"
2) I changed an operation mode as Resistive
Secondly, in "Programming" tab, I created the new script "Fuel Level Calculator" in Scripts tab and enter the script attached. Then, I created the new nuemeric variable "Input.Analog1.Fuel Level" in the User Variables tab and changed the type as %. Finally, at the "Input/Output Port Manager" in programming tab, I changed the item of "Fire on change " as Fuel level calculator.
After configuring, I tried to save the data but the above error message was displayed.
The PowerVision I used is ver. 2.3.11175.
Could you please let me know how I should setup the configuration for the PV750 to use with ES2F sender? If there is some method to achieve it, please kindly advise me.
Your kind attention to the above would be very much appreciated.
Best regards,
Toshiki Takehara
PV750/ES2F sender
- T Takehara
- Posts: 49
- Joined: Thu Sep 09, 2010 8:56 pm
PV750/ES2F sender
- Attachments
-
- Scripts.docx
- (25.79 KiB) Downloaded 40 times
- T Takehara
- Posts: 49
- Joined: Thu Sep 09, 2010 8:56 pm
Re: PV750/ES2F sender
Dear Sir or Madam,
The configuration data was somehow saved correctly. I attached the .murphyConfig file, could you please check if this file works for PV750 with ES2F sender?
Best regards,
Toshiki Takehara
The configuration data was somehow saved correctly. I attached the .murphyConfig file, could you please check if this file works for PV750 with ES2F sender?
Best regards,
Toshiki Takehara
- Attachments
-
- PV750 Test.zip
- (5.36 MiB) Downloaded 15 times
- ksaenz
- Enovation Controls Development
- Posts: 263
- Joined: Thu Aug 19, 2010 7:53 am
Re: PV750/ES2F sender
Hello Toshiki Takehara,
I think I know what happened.
You copied the script from a PV450 configuration to a PV750 configuration and their analog inputs are different.
Because the PV450 only has one analog input, when you auto-create a variable it is called IO.Analog Input but the PV750 has three analog inputs so it calls them IO.Input Channel 1, IO.Input Channel 2, and IO.Input Channel 3 and looks like you already corrected that.
The next difference is the pull-up resistor which will change the raw value used to calculate fuel level. The PV750 has different pull-up resistors for each input and they are different from the PV450 input. The table that you are using is calibrated to the PV450 analog input.
Here is a table for the PV750 analog input 1 with 110 Ohm pull-up resistor and no gain:
Notice that the number of points is different too.
You can use these values to test it:
33 Ohms = 100%
103 Ohms = 50%
240 Ohms = 0%
Regards,
ksaenz
I think I know what happened.
You copied the script from a PV450 configuration to a PV750 configuration and their analog inputs are different.
Because the PV450 only has one analog input, when you auto-create a variable it is called IO.Analog Input but the PV750 has three analog inputs so it calls them IO.Input Channel 1, IO.Input Channel 2, and IO.Input Channel 3 and looks like you already corrected that.
The next difference is the pull-up resistor which will change the raw value used to calculate fuel level. The PV750 has different pull-up resistors for each input and they are different from the PV450 input. The table that you are using is calibrated to the PV450 analog input.
Here is a table for the PV750 analog input 1 with 110 Ohm pull-up resistor and no gain:
Code: Select all
// Fuel sender table
uint[][] es2f = {
{ 198,100}, // tolerance
{ 208,100},
{ 273, 90},
{ 320, 80},
{ 340, 75},
{ 362, 70},
{ 398, 60},
{ 435, 50},
{ 471, 40},
{ 509, 30},
{ 528, 25},
{ 550, 20},
{ 590, 10},
{ 629, 0},
{ 639, 0}, // tolerance
}; // raw, percent
uint es2f_points = 15;
You can use these values to test it:
33 Ohms = 100%
103 Ohms = 50%
240 Ohms = 0%
Regards,
ksaenz
- T Takehara
- Posts: 49
- Joined: Thu Sep 09, 2010 8:56 pm
Re: PV750/ES2F sender
Hello Ksaenz,
Thank you very much for confirming my configuration file and kind explanation.
I revised the scripts in my configuration file as attached. Because we do not have any test devices to check the actual performance of fuel level, is it possible for you to check if the PV750 with the attached data can indicate the correct fuel level by using ES2F sender?
Your kind help to this matter would be much appreciated.
Best regards,
Toshiki Takehara
Thank you very much for confirming my configuration file and kind explanation.
I revised the scripts in my configuration file as attached. Because we do not have any test devices to check the actual performance of fuel level, is it possible for you to check if the PV750 with the attached data can indicate the correct fuel level by using ES2F sender?
Your kind help to this matter would be much appreciated.
Best regards,
Toshiki Takehara
- Attachments
-
- PV750 Test.zip
- (5.36 MiB) Downloaded 23 times
- ksaenz
- Enovation Controls Development
- Posts: 263
- Joined: Thu Aug 19, 2010 7:53 am
Re: PV750/ES2F sender
Hello Toshiki Takehara,
The script is correct but you are still a few steps away from showing fuel level coming from the analog input.
I connected AN1 (Connector E Pin 5) and VGND (Connector E Pin 1) to a resistor box set for 33 Ohms and I expected to see 100 % in the fuel level gauge but that did not happen.
The fuel level gauges in the configuration are still linked to the J1939 variable, you need to link them to the variable where your script writes the fuel level.
The input channel 1 pull-up resistance is still set to open, you need to change it 110.
The gain adjustment 2X box is still checked, you need to uncheck it.
This part is not related to fuel level but I noticed simulated data is turned on, if you want to see real data you need to turn it off.
After making these changes I can see fuel level coming from the analog input.
Regards,
ksaenz
The script is correct but you are still a few steps away from showing fuel level coming from the analog input.
I connected AN1 (Connector E Pin 5) and VGND (Connector E Pin 1) to a resistor box set for 33 Ohms and I expected to see 100 % in the fuel level gauge but that did not happen.
The fuel level gauges in the configuration are still linked to the J1939 variable, you need to link them to the variable where your script writes the fuel level.
The input channel 1 pull-up resistance is still set to open, you need to change it 110.
The gain adjustment 2X box is still checked, you need to uncheck it.
This part is not related to fuel level but I noticed simulated data is turned on, if you want to see real data you need to turn it off.
After making these changes I can see fuel level coming from the analog input.
Regards,
ksaenz
- T Takehara
- Posts: 49
- Joined: Thu Sep 09, 2010 8:56 pm
Re: PV750/ES2F sender
Hello Ksaenz,
Thank you very much for your reply.
Because I did not change any parameters in the page designer screen, the fuel level gauges in the configuration are still linked to the J1939 variable. I will assign it to the variable I made and try to change the above points as you explained to me.
Best regards,
Toshiki Takehara
Thank you very much for your reply.
Because I did not change any parameters in the page designer screen, the fuel level gauges in the configuration are still linked to the J1939 variable. I will assign it to the variable I made and try to change the above points as you explained to me.
Best regards,
Toshiki Takehara