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
convert SPN and FMI to HEX
- verschuren
- Posts: 79
- Joined: Wed Oct 28, 2015 8:40 am
convert SPN and FMI to HEX
Mario Verschuren
Controls Integration
Controls Integration
- stalley
- Enovation Controls Development
- Posts: 618
- Joined: Tue Mar 18, 2014 12:57 pm
Re: convert SPN and FMI to HEX
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.
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
Software Engineer
Enovation Controls
- verschuren
- Posts: 79
- Joined: Wed Oct 28, 2015 8:40 am
Re: convert SPN and FMI to HEX
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
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
Controls Integration
- stalley
- Enovation Controls Development
- Posts: 618
- Joined: Tue Mar 18, 2014 12:57 pm
Re: convert SPN and FMI to HEX
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.
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.
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
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
Software Engineer
Enovation Controls
- verschuren
- Posts: 79
- Joined: Wed Oct 28, 2015 8:40 am
Re: convert SPN and FMI to HEX
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.
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
Controls Integration