Jetter AG
165
JVM-407B
SAE J1939 STX API
By calling up the function
SAEJ1939GetDM2 ()
, the JVM-407B requests the
current diagnostics error codes (PGN 65227).
#Include
"SAEJ1939.stxp"
Var
bySAEJ1939Channel : Byte;
own_Source_Address : Byte;
stdm2stat_pow : TJ1939DM2STAT;
stdm2msg_pow :
Array
[
10
]
of
STJ1939DM2MSG;
End_Var
;
Task
main
autorun
// Initializing CAN 1
bySAEJ1939Channel :=
1
;
own_Source_Address :=
20
;
SAEJ1939Init (bySAEJ1939Channel, own_Source_Address);
// Required for a cyclical task
TaskAllEnableCycle ();
EnableEvents;
End_Task
;
Task
t_RequestPGN_5000 cycle
5000
Var
Int;
End_Var
;
// Requesting diagnostics error codes DM2 POW
stdm2stat_pow.lBuffer := sizeof (stdm2msg_pow);
Return_value := SAEJ1939GetDM2 (bySAEJ1939Channel,
0x00
,
stdm2stat_pow, stdm2msg_pow);
If
Return_value
Then
Trace ('DM2 Request failed');
End_If
;
End_Task
;
JetSym STX program
Содержание JVM-407B-HMI
Страница 1: ...User Manual JVM 407B HMI 60879892 We automate your success...
Страница 14: ......
Страница 26: ...26 Jetter AG 2 Product description and design Rear view...
Страница 34: ......
Страница 80: ......
Страница 98: ...98 Jetter AG 5 Initial commissioning Initial commissioning in JetViewSoft see page 86 Related topics...
Страница 106: ......
Страница 144: ......
Страница 168: ......
Страница 178: ......
Страница 182: ......
Страница 196: ...196 Jetter AG 10 Programming If Merker1 Then Inc Status_LEDs Delay T 100ms End_If End_Loop End_Task...
Страница 220: ...220 Jetter AG 10 Programming Topic Page Programming 221 Registers 233 Sample programs 238 Contents...
Страница 258: ......
Страница 268: ......
Страница 274: ......
Страница 294: ...294 Jetter AG Appendix Rear view...
Страница 299: ......