10 j1939/dvc80, J1939/dvc80 – High Country Tek DVC80 User Manual

Page 100

Advertising
background image

P/N: 021-00154, Rev. A.6 - updated for V4.7 Tools

Page | 100


Code Sample

Code Comments
EngineTrend.EngineRPM = ana_1

First Variable of Engine Trend is set to analog input 1

Dvc70.ActiveB2 = Dig_2

Digital Input 2 toggles activity

Event_2.Truck_moving = 1 + SF10

Set the message to be displayed (in the event that
Event_2.Truck_moving is true) to Message # 1 and scale
the value for the data collected for the Truck_moving
variable to value/10

Dim Day as Uint
Day = DVC70.DayHours / 256

If (Day = 1) then
DVC70.ActiveB2 = true
End if

Variable for storing the day of the week
This calculation results in a Number between 1 and 7 (1 =
Sunday, 2 = Monday etc.)
If today is Sunday, start logging activity.



6.10 J1939/DVC80

The DVC5 controller interfaces directly to the J1939 CAN Bus from the engine. The DVC7 and DVC10
controllers have two ways of interfacing to J1939 CAN Bus messages. First the DVC7/10 can be connected
directly to the J1939 CAN Bus like the DVC5. This is only possible when the DVC7/10 controller does not also
have expansion modules to connect too over the CAN Bus using Device Net. When expansion modules are
used the DVC80 expansion module needs to be configured in your project. This module acts like a bridge
between the DVC7/10 Device Net CAN Bus and the J1939 CAN Bus to the engine. This bridge is necessary
because J1939 and Device Net have different message structures and cannot coexist on the same CAN Bus
wires.
J1939 Only Mode on the DVC5/7/10
For small systems that require only one DVC5/7/10 Master Module and no DVC expansion modules, a feature
has been added to the DVC5/7/10 to allow for communication directly between a DVC5/7/10 and J1939 CAN
Bus systems. The DVC5/7/10 may be used to send and receive messages directly on the J1939 CAN Bus
while conducting normal functions with its Inputs and Outputs. Note that a DVC61 display module needs to be
connected using the RS232 connection not the CAN Bus. The Virtual Display may be used in a normal manner.

The following information should be used as an outline for setting up a DVC5/7/10 to operate in J1939 Only
Mode.

DVC 5/7/10 Application Code
The application program must have a J1939/DVC80 in the project. Only RS232 connected modules such as the
DVC61, the Graphical Display and the Virtual Display can be added to the project as well.

Use the DVC80 Message screens to set up the send and receive messages to be communicated on the J1939
CAN Bus. The MAC ID on the DVC80 setup screen is not used in this configuration. Write your application in
the normal manner to control the operational parameters and processes for system operation. J1939 messages
shall be addressed in the application as if a DVC80 expansion module were present.

DVC5/7/10 Hardware Setup
Connect the incoming J1939 CAN H and CAN L signals to the DVC5/7/10 specific CAN Bus Connector as
outlined on the DVC5/7/10 Connector Pin out sheet. Remember to terminate the CAN Bus at the DVC5/7/10
using the appropriate terminator we supply.

Advertising
This manual is related to the following products: