Jetter AG
153
JVM-407B
SAE J1939 STX API
Result := SAEJ1939AddRx (
1,
0xFEEE,
0x00,
2
0
SAEJ1939_BYTE,
sizeof(var_Fueltemp),
var_Fueltemp,
struct_TJ1939Rx_EngineTemperatureTbl,
1500,
120);
The device JVM-407B with the own SA of 20 wants to receive and display the
current fuel temperature. The parameters
InhibitTime
and
EventTime
are not
explicitly specified when calling up the function. In this case, the default values
are used. The controller for capturing the fuel temperature has got SA 0. In
practice, the address of the controller can be found in the engine
manufacturer's documentation.
The fuel temperature has the SPN 174 and is a component (byte 2) of the
PGN 65262 Engine Temperature 1.
#Include
"SAEJ1939.stxp"
Var
bySAEJ1939Channel : Byte;
own_Source_Address : Byte;
// PGN 65262 Engine Temperature 1
Fueltemp : Byte;
EngineTemperatureTbl : TJ1939Rx;
End_Var
;
Task
main
autorun
// Initializing CAN 1
bySAEJ1939Channel :=
1
;
own_Source_Address :=
20
;
SAEJ1939Init (bySAEJ1939Channel, own_Source_Address);
// Receiving the fuel temperature value
SAEJ1939AddRx (bySAEJ1939Channel,
65262
,
0x00
,
2
,
1
, SAEJ1939_BYTE,
sizeof(Fueltemp), Fueltemp, EngineTemperatureTbl);
End_Task
;
For information on the data (priority, PGN, SA and data byte structure) refer to
the manual provided by the engine manufacturer.
How to use this function
JetSym STX program
Engine manufacturer's
manual
Summary of Contents for JVM-407B-HMI
Page 1: ...User Manual JVM 407B HMI 60879892 We automate your success...
Page 14: ......
Page 26: ...26 Jetter AG 2 Product description and design Rear view...
Page 34: ......
Page 80: ......
Page 106: ......
Page 144: ......
Page 168: ......
Page 178: ......
Page 182: ......
Page 258: ......
Page 268: ......
Page 274: ......
Page 294: ...294 Jetter AG Appendix Rear view...
Page 299: ......