148
Jetter AG
7 SAE J1939 STX API
STX Function SAEJ1939Init()
Calling up the
SAEJ1939Init ()
function initializes one of the CAN busses
(not CAN 0 as this is reserved for CANopen®) for use with the J1939 protocol.
From then on, the JVM-407B has got the SA (Source Address) assigned by
the function parameter mySA. Thus, it has got its own device address on the
bus.
Function SAEJ1939Init (
CANNo:Int,
mySA:Byte,
) :Int;
The
SAEJ1939Init ()
function comprises the following parameters:
Parameter
Description
Value
CANNo
CAN channel number
1 ... CANMAX
mySA
Own source address
0 ... 253
This function transfers the following return values to the higher-level program.
Return value
0
OK
-1
Error when checking parameters
-3
Insufficient memory for SAE J1939
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.
Initializing the CAN-Bus 1. The JVM-407B has got Node SA 20 (0x14). The
JVM-407B can now send messages with the set SA (and only these
messages).
Result := SAEJ1939Init(1, 20);
Address Claiming
has not been implemented.
Introduction
Function declaration
Function parameters
Return value
Parameter CANNo
How to use this function
Address Claiming
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: ......