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!
DIsplay Key reset to zero
- mikwin
- Posts: 7
- Joined: Thu Jan 19, 2012 3:20 pm
- ksaenz
- Enovation Controls Development
- Posts: 263
- Joined: Thu Aug 19, 2010 7:53 am
Re: DIsplay Key reset to zero
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:
Or simply like this:
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
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 )
Code: Select all
J1939_DVC_DVC_Key_reset
Regards,
ksaenz