162
Jetter AG
7 SAE J1939 STX API
By calling up the function
SAEJ1939GetDM1 ()
, the JVM-407B requests the
current diagnostics error code (PGN 65226).
#Include
"SAEJ1939.stxp"
Var
bySAEJ1939Channel : Byte;
own_Source_Address : Byte;
stdm1stat_pow : TJ1939DM1STAT;
stdm1msg_pow :
Array
[
10
]
of
STJ1939DM1MSG;
MyTimer : TTimer;
End_Var
;
Task
main
autorun
// Initializing CAN 1
bySAEJ1939Channel :=
1
;
own_Source_Address :=
20
;
SAEJ1939Init (bySAEJ1939Channel, own_Source_Address);
TimerStart (MyTimer,
T#2s
);
Loop
When
(TimerEnd (MyTimer))
Continue
;
// Requesting diagnostics error codes DM1 POW
stdm1stat_pow.lBuffer := sizeof (stdm1msg_pow);
SAEJ1939GetDM1 (bySAEJ1939Channel,
0x00
, stdm1stat_pow,
stdm1msg_pow);
TimerStart (MyTimer,
T#2s
);
End_Loop
;
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: ......