I am newbie for state programming and scripting.I've to write program for FWMurphy display.
My main need is on writing program for FW Murphy PV450 display.
I've read the available manuals like:
1. User's guide for FWMurphy configuration tool : 00-02-0734-PV750-SWconfig2.1-IOM.pdf
2. Murphy Configuration Tool 2.1 – Scripting User’s Guide : 1010664-scripting-users guide.pdf
However I still find difficult to write a program.
Are sample codes available for PV450 display/ is there any demo available on it? and can you share it?
Or please suggest any other option available.
Writing program for FW Murphy PV450 display
- ShrutiK
- Posts: 34
- Joined: Sun Feb 06, 2011 2:03 am
- jpurdum
- Enovation Controls Development
- Posts: 153
- Joined: Mon Jun 21, 2010 11:19 am
Re: Writing program for FW Murphy PV450 display
Hello Shruti -
One of the first things we suggest is for people to use the Murphy Standard configs that are included as an example - and many people just start with that config and make modifications.
Let me talk with some folks and see if we can come up with a good set of small example configs that we could make available on the forum for everyone.
john p. (jpurdum)
One of the first things we suggest is for people to use the Murphy Standard configs that are included as an example - and many people just start with that config and make modifications.
Let me talk with some folks and see if we can come up with a good set of small example configs that we could make available on the forum for everyone.
john p. (jpurdum)
- ShrutiK
- Posts: 34
- Joined: Sun Feb 06, 2011 2:03 am
Re: Writing program for FW Murphy PV450 display
Thanks John! That would be really great.
I found the standard config files are mostly displaying the J1939 values.But the problem arises when you deal with "Userdefined Variables".
Presently I'm facing a problem.PFA the details. Please share your views/suggestions.
Thanks & regards,
Shruti
I found the standard config files are mostly displaying the J1939 values.But the problem arises when you deal with "Userdefined Variables".
Presently I'm facing a problem.PFA the details. Please share your views/suggestions.
Thanks & regards,
Shruti
- ksaenz
- Enovation Controls Development
- Posts: 263
- Joined: Thu Aug 19, 2010 7:53 am
Re: Writing program for FW Murphy PV450 display
ShrutiK,
I think the attached demo configuration accomplishes what you are trying to do.
I added 4 variables with calculation events:
UserDefinedVariable.Minutes
UserDefinedVariable.Distance5min
UserDefinedVariable.Distance10min
UserDefinedVariable.Distance15min
And one state machine with a transition going back to itself with a recurring timer. The timer is set to 5,000 ms for testing so you'll need to change it for your application.
The state machine calls the 4 calculation events on exit.
Also in this demo I turned on the simulation ("UserDefinedVariable.SettingSimData"=1) for testing purposes.
I think the attached demo configuration accomplishes what you are trying to do.
I added 4 variables with calculation events:
UserDefinedVariable.Minutes
Code: Select all
mod("UserDefinedVariable.Minutes"+5,30)
Code: Select all
if(mod("UserDefinedVariable.Minutes",5)=0,"J1939.Engine.Total Vehicle Distance","UserDefinedVariable.Distance5min")
Code: Select all
if(mod("UserDefinedVariable.Minutes",10)=0,"J1939.Engine.Total Vehicle Distance","UserDefinedVariable.Distance10min")
Code: Select all
if(mod("UserDefinedVariable.Minutes",15)=0,"J1939.Engine.Total Vehicle Distance","UserDefinedVariable.Distance15min")
The state machine calls the 4 calculation events on exit.
Also in this demo I turned on the simulation ("UserDefinedVariable.SettingSimData"=1) for testing purposes.
- Attachments
-
- Save Vehicle Distance every 5 minutes.db3
- (2.98 MiB) Downloaded 61 times