Chapter 5
Example Application 5-1
© 2012 HMS Industrial Networks AB
Doc.Id. HMSI-168-25
Example Application
Scenario
A system controller (PLC) on Modbus requires some data that is collected by an
ECU on J1939. There is also a piece of data that is determined by the system con-
troller that would be beneficial for some of the ECUs that are on the J1939 net-
work. The controller also monitors active diagnostics from ECU-1.
The data required by the system controller is contained in the PGN 4608 message
as 2 12-bit values. The values are packed into the first 3 bytes of the message as
shown in Figure 5-2 below.
The data from the system controller is to be produced using PGN 256. The data is
a 16-bit value and will be placed into the first 2 bytes of the message data.
Figure 5-1 Example Application Network Diagram
Bit
Byte
7
6
5
4
3
2
1
0
0
Value #1 bits 0-7
1
Value #2 bits 0-3
Value #1 bits 8-11
3
Value #2 bits 4-11
Figure 5-2 Example PGN 4608 Message Data Format
System
Controller
JMI
ECU-1
ECU-2
ECU-3
Mo
db
us
J1
939
PGN 4608
PGN 256
DM1