High Country Tek emc-3L User Manual

Page 72

Advertising
background image

Byte # Name
Byte Name is the suffix of the variable name to access a byte in Bubble Logic. For instance eec1.status would
be used to access byte 1 of the defined message EEC1 shown above.
Range: 16 Alpha/Numeric characters only with no spaces.

J1939 Program Variables
Note: Some of the following variables require the prefix “J1939.” To call the variable, i.e. “J1939.EEC1.NORSP”
would return state of the No Response bit for the EEC1 message. They are identified by an *. in the description.

*.Name.NORSP

True when a message has not been received in the “Maximum Time” period


Name.Byte#Name

Set/Get the current value of that byte of the J1939 CAN message

Range: 0 to 255

*.Name.disable

True will prevent messages from being sent. This variable defaults to false.


*.Name.srcaddr

Message that are sent from the DVC7/10 will have this number as the J1939

source address. If this value is 0 (the default) the source address will be the

DVC80

macid

value.


Message Example
Message Name:

EEC1

Control

Receive Data (from ECM)

Maximum Time: 50ms Engine Speed Dependent
PDU Format (PF):

240

PDU Specific (PS):

4

PGN #:

= (PF*256)+PS

Priority

3 Not Required for Receive Data

Data Length

8

Message Data


EEC1.Status

- Name to access byte 1 of message

EEC1.Driveer_DMD

- Name to access byte 2 of message

EEC1.Engine_Torque - Name to access byte 3 of message
EEC1. Eng_SPD_L

- Name to access byte 4 of message

EEC1. Eng_SPD_H

- Name to access byte 5 of message

J1939.EEC1. NoRSP

- Name to access No Response Status bit


Code Example
This example will test the validity of the engine RPM message from EEC1 and if valid, set the engineRPM
variable to the scaled real engine RPM or if not valid, set the engineRPM variable to 0 and the error_status
variable to 1.

dim

engineRPM

as

uint

dim

error_status

as

uint

if

(j1939.eec1.norsp = 0)

then

engineRPM = ((eec1.engine_spd_h * 256) + eec1.engine_spd_l) / 8

else

engineRPM = 0
error_status = 1

end

if

P/N: 021-00163, Rev. A.0 - for V5.2 Tools

Page | 72

Advertising
This manual is related to the following products: