160
Jetter AG
7 SAE J1939 STX API
STX function SAEJ1939GetDM1()
Calling up the function
SAEJ1939GetDM1 ()
requests the current diagnostics
error codes (also see SAE J1939-73 No. 5.7.1). The corresponding PGN
number is 65226. This function must constantly be recalled in cycles.
Function SAEJ1939GetDM1 (
CANNo:Int,
bySA:Byte,
ref
stJ1939DM1stat:TJ1939DM1STAT
ref
stJ1939DM1msg:TJ1939DM1MSG
) :Int;
The
SAEJ1939GetDM1 ()
function comprises the following parameters:
Parameter
Description
Value
CANNo
CAN channel number
1 ... CANMAX
bySA
Source Address of message
sender
0 ... 253
The own SA cannot be
used
stJ1939DM1stat
lStatus
lMsgCnt
lBuffer
Lamp Status
Number of received
messages
Size of variable
stJ1939DM1msg
stJ1939DM1msg
lSPN
byOC
byFMI
Error code
Error counter
Error type
This function transfers the following return values to the higher-level program.
Return value
0
OK
-1
Error when checking parameters
This parameter specifies the number of the SAEJ1939 interface. CANNo = 1
is assigned to the first interface. The number of SAEJ1939 interfaces depends
on the device. For information on the maximum number of SAEJ1939
interfaces (CANMAX) refer to the chapters
Technical Specifications
and
Quick
Reference
in the corresponding manual.
Introduction
Function declaration
Function parameters
Return value
Parameter CANNo
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: ......