DIsplay Key reset to zero

Discuss issues and ideas you have to configuring displays with PowerVision
mikwin
Posts: 7
Joined: Thu Jan 19, 2012 3:20 pm

DIsplay Key reset to zero

Post by mikwin » Wed Aug 07, 2013 7:25 pm

Hi everybody, I'm sending, thru J1939 network, a bit=1 (or 0) call J1939.DVC.DVC_Key Reset to the PV450 screen.
I want when I receive the Bit = 0, a fire event will clear the display key value #1 to = 0.
How I can do that?

I have tried to place a calculation events under J1939 Port Manager / J1939.DVC.DVC_Key_reset like:
'If(J1939_DVC_DVC_Key_reset = 0 ,J1939_Transmit_DMC_Start = 0,1)' where 'J1939_Transmit_DMC_Start' is the display Key #1, but key #1 stay @ 1!

Thanks in advance!
ksaenz
Enovation Controls Development
Enovation Controls Development
Posts: 263
Joined: Thu Aug 19, 2010 7:53 am

Re: DIsplay Key reset to zero

Post by ksaenz » Thu Aug 08, 2013 7:58 am

Hello mikwin,

You have to put the calculation event under J1939_Transmit_DMC_Start because calculation events change the value of the paernt variable. Your calculation event would look like this:

Code: Select all

If( J1939_DVC_DVC_Key_reset = 0, 0, 1 )
Or simply like this:

Code: Select all

J1939_DVC_DVC_Key_reset
You then have to fire that calculation event whenever J1939_DVC_DVC_Key_reset changes, you can use the "fire event on change" option under J1939_DVC_DVC_Key_reset.

Regards,
ksaenz