
11 Example Program
11.3 J1939 Communication Example Programs
86
FX
3U
-J1939 User's Manual
To the next page
* ################################################################
* Message configuration
* Message 1 (Configuration #500 to #505, Data #100 to #103)
* Tx Message
* PGN 45312 (HB100), destination 127 (H7F)
* event oriented transmission type (ttype K1 >> on data change)
* message priority (0 to 7, 6 default, 0 highest)
* interval for time triggered messages (unused) set K100 = 1 sec.
* message data length count = 8 bytes
*
* Message 2 (Configuration #506 to #511, Data #104 to #107)
* Rx Message
* PGN 45568 (HB200), destination 128 (H80) this node
* receive message type
* acceptance filter HFF >> any source address OK
* message data length count = 8 bytes
* ################################################################
* <Set 18 bit PGN >
M0
Online/
Offline
M7
Module
Init.
State
DTOP
D0
SFB
address
K500
H0B17F
K1
* <Set ttype K1 (event trigger) >
TOP
D0
SFB
address
K502
K1
K1
* <Set message priority >
TOP
D0
SFB
address
K503
K6
K1
* <Interval (unused) 1s >
TOP
D0
SFB
address
K504
K100
K1
* <DLC = 8 bytes >
TOP
D0
SFB
address
K505
K8
K1
* <Set 18 bit PGN >
DTOP
D0
SFB
address
K506
H0B280
K1
* <Set ttype "receive" >
TOP
D0
SFB
address
K508
K-1
K1
* <From any source address >
TOP
D0
SFB
address
K509
H0FF
K1
* <Unused for Rx message >
TOP
D0
SFB
address
K510
K0
K1
* <DLC = 8 bytes >
TOP
D0
SFB
address
K511
K8
K1