Writing program for FW Murphy PV450 display

This forum contains common answers to questions and tutorials produced for the community.
ShrutiK
Posts: 34
Joined: Sun Feb 06, 2011 2:03 am

Writing program for FW Murphy PV450 display

Post by ShrutiK » Tue Mar 29, 2011 9:12 am

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.
jpurdum
Enovation Controls Development
Enovation Controls Development
Posts: 153
Joined: Mon Jun 21, 2010 11:19 am

Re: Writing program for FW Murphy PV450 display

Post by jpurdum » Tue Mar 29, 2011 11:40 am

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)
ShrutiK
Posts: 34
Joined: Sun Feb 06, 2011 2:03 am

Re: Writing program for FW Murphy PV450 display

Post by ShrutiK » Wed Mar 30, 2011 3:01 am

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.
DesignProblem_Shruti.doc
My design problem
(56.5 KiB) Downloaded 81 times
Please share your views/suggestions.

Thanks & regards,
Shruti
ksaenz
Enovation Controls Development
Enovation Controls Development
Posts: 263
Joined: Thu Aug 19, 2010 7:53 am

Re: Writing program for FW Murphy PV450 display

Post by ksaenz » Wed Mar 30, 2011 9:34 am

ShrutiK,

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)
UserDefinedVariable.Distance5min

Code: Select all

if(mod("UserDefinedVariable.Minutes",5)=0,"J1939.Engine.Total Vehicle Distance","UserDefinedVariable.Distance5min")
UserDefinedVariable.Distance10min

Code: Select all

if(mod("UserDefinedVariable.Minutes",10)=0,"J1939.Engine.Total Vehicle Distance","UserDefinedVariable.Distance10min")
UserDefinedVariable.Distance15min

Code: Select all

if(mod("UserDefinedVariable.Minutes",15)=0,"J1939.Engine.Total Vehicle Distance","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.
Attachments
Save Vehicle Distance every 5 minutes.db3
(2.98 MiB) Downloaded 61 times