convert SPN and FMI to HEX

Discuss issues and ideas you have to configuring displays with PowerVision
verschuren
Posts: 79
Joined: Wed Oct 28, 2015 8:40 am

convert SPN and FMI to HEX

Post by verschuren » Thu Jan 21, 2016 9:14 am

Hi,

I have a client that would like to read the SPN in a HEX format. Do you have an example on how to convert this, so I can add a text gauge to the DM1 and DM2 page?

Dec: 37659 --> Hex: 931B

Thanks!

Mario
Mario Verschuren
Controls Integration
stalley
Enovation Controls Development
Enovation Controls Development
Posts: 618
Joined: Tue Mar 18, 2014 12:57 pm

Re: convert SPN and FMI to HEX

Post by stalley » Thu Jan 21, 2016 4:02 pm

Hello verschuren,

One of the properties of a text gauge is the Display Format. Select the text gauge, select Show Advanced in the lower right corner, you should select Display Format and you will get a dropdown box of different formats.
Sara Talley
Software Engineer
Enovation Controls
verschuren
Posts: 79
Joined: Wed Oct 28, 2015 8:40 am

Re: convert SPN and FMI to HEX

Post by verschuren » Fri Jan 22, 2016 7:25 am

Hi Sara,

What if the SPN is a text string or is there another variable that gives me the same SPN number?

Now it shows string variable: DM1.Header.SPN
Mario Verschuren
Controls Integration
stalley
Enovation Controls Development
Enovation Controls Development
Posts: 618
Joined: Tue Mar 18, 2014 12:57 pm

Re: convert SPN and FMI to HEX

Post by stalley » Mon Jan 25, 2016 9:02 am

Hello vershcuren,

I would recommend changing the DM1 and DM2 screens to use the DM1 and DM2 lists. It will be a little tedious, but there are several benefits, including being able to display the SPN and FMI in hex.

Where your config displays a Text Widget for the SPN and FMI, change it to a Text Gauge.
  • Show Advanced
    Select List Binding
    Enable List Binding
    List: Dm1List
    Column: SPN
    Offset Style: RelativeToCurrent
    Offset: 0
    Rows/Page: 1
    Change the Display Format property to Hex
This should work for your DM1s, if you display them one at a time like the Standard Murphy configs do. If your config does something different you will need experiment to get the adjustments for your config.

Are your DM2s in a table like the Standard Murphy PV780 config? or is it more like the Standard Murphy PV450 config? If the DM2 display is similar to the DM1 that shows one fault per screen, you can do it very similar to the DM1.

I'm here to help if you have more questions or get stuck.
Sara Talley
Software Engineer
Enovation Controls
verschuren
Posts: 79
Joined: Wed Oct 28, 2015 8:40 am

Re: convert SPN and FMI to HEX

Post by verschuren » Mon Feb 01, 2016 10:42 am

Thanks Sara,

That worked great. My DM1 table is a copy of the DM2 table in diagnostics. I used a Standard PV450 config on my PV480 and changed it as needed for my config. I still have the DM1 popup as well.
Mario Verschuren
Controls Integration