background image

 
 

 

UMAX140610. LIN 

– J1939 CAN Protocol Converter with PWM Output. Version 1 

 

Page: 44-81 

 
The appropriate arithmetic or logical operation is performed on the two inputs, InA and InB, 
according the associated function. The list of selectable function operations is defined in the 
table below. 
 

Table 26. Math Function Operators 

Value  Meaning  Notes 

=

 

True when InA Equals InB

 

!=

 

True when InA Not Equal InB

 

>

 

True when InA Greater Than InB

 

>=

 

True when InA Greater Than or Equal InB

 

<

 

True when InA Less Than InB

 

<

=

 

True when InA Less Than or Equal InB

 

OR

 

True when InA or InB is True

 

AND

 

True when InA and InB are True

 

XOR

 

True when InA/InB is True, but not both

 

+

 

Result = InA plus InB

 

10 

-

 

Result = InA minus InB

 

11 

x

 

Result = InA times InB

 

12 

/

 

Result = InA divided by InB

 

13 

MIN

 

Result = Smallest of InA and InB

 

14 

MAX

 

Result = Largest of InA and InB

 

 

For Function 1, InA and InB are Inputs 1 and 2 respectively.  
For Function 2, InA is the result of Function 1, and InB is Input 3.  
For Function 3, InA is the result of Function 2, and InB is Input 4.  
 
Exclusively 

within

 

a Math Block, there is a third control parameter: “

Math Input X Function 

Number

”. This parameter allows for the result of any Function (1, 2 or 3) to be the input to any 

Math Input Y within the same Math Block. Therefore, “

Math Input X Source

” must be a Math 

Block and “

Math Y Input Number

” must be the same number as being configured. When 

these three parameters match, if “

Math Input X Function Number

” is set to 1, 2, or 3, the 

respective input will be the result of the Function selected. By default, it is set to 0 

– in which 

case this parameter is ignored and uses the Math Block output result. These functions can 
only be used 

within

 the Math Block. They cannot be used for other Math Blocks or logic 

Blocks. 
 
For a valid result, the control source for an input must be a non-zero value, i.e. something 
other than 

‘Control Source Not Used.’

 Otherwise, the corresponding function is ignored, and 

the “Output Data” for the math function block is the result of the earlier function scaled 
according to the output limit setpoints. For example, if Input 4 is not used, the math output 
would be the result of the Function 2 operation.  
 
For logical operators (6, 7 or 8), any SCALED input greater than or equal to 0.5 is treated as a 
TRUE input. For logic output operators (0 to 8), the result of the calculation for the function will 
always be 0 (FALSE) or 1 (TRUE).  
 
Error data (i.e. input measured out of range) is always treated as a 0.0 input into the function.  

Содержание LIN - J1939 CAN

Страница 1: ...N AX140610 In Europe Axiomatic Technologies Oy H yt m ntie 6 33880 Lemp l Finland Tel 358 103 375 750 Fax 358 3 3595 660 www axiomatic fi In North America Axiomatic Technologies Corporation 5915 Walla...

Страница 2: ...emory Access Protocol ECU EEPROM Electronic control unit Electrically Erasable Programmable Read Only Memory EMI Electromagnetic Interference LED Light emitting diode LIN Local Interconnect Network Au...

Страница 3: ...ncy 15 3 2 3 Digital ON OFF 15 3 2 4 Common Parameters 16 3 3 LIN Interface 20 3 3 1 LIN Common 20 3 3 2 LIN Signal 21 3 3 3 LIN Slave Response 23 3 3 4 LIN Unconditional Frame 23 3 3 5 LIN Event Trig...

Страница 4: ...Assistant Software 57 4 2 Function blocks in EA 58 4 3 Setpoint File 60 4 4 Configuration Example 61 4 4 1 User Requirements 62 4 4 2 Configuration Steps 63 5 FLASHING NEW FIRMWARE 74 6 TECHNICAL SPE...

Страница 5: ...re installed in the converter is covered by this user manual It can be done through CAN bus using Axiomatic Electronic Assistant EA software The user manual is valid for application firmware with the...

Страница 6: ...ecific application requirements 2 1 Hardware Block Diagram The converter contains one LIN port one CAN port and a protected power supply An embedded 32 bit microcontroller provides necessary processin...

Страница 7: ...0 Part B and the following J1939 standards Table 2 CAN Standard Implementation ISO OSI Network Model Layer J1939 Standard Physical J1939 11 Physical Layer 250K bit s Twisted Shielded Pair Rev SEP 200...

Страница 8: ...939 16 Once detected the baud rate is stored in non volatile memory and used on the next converter power up The baud rate detection can be disabled for permanently installed units to maintain the desi...

Страница 9: ...us Terminating Resistors The converter does not have an embedded 120 Ohm CAN bus terminating resistor Terminating resistors should be installed externally on both ends of the CAN twisted pair cable ac...

Страница 10: ...Figure 2 Figure 2 The Converter Logical Block Diagram Constant Data CAN Transmit 1 25 J1939 CAN Bus Signal Input Signal Output CAN Receive 1 25 The actual connections between signal inputs and outputs...

Страница 11: ...can use Lookup Table Programmable Logic or Math Function blocks They take two input signals and combine them together in one signal output using different functions They will be described in more det...

Страница 12: ...output of a different signal type 3 1 4 1 Discrete to Continuous Conversion A Discrete signal is converted into a positive Continuous signal of the same value 3 1 4 2 Continuous to Discrete Conversio...

Страница 13: ...n control response is set to Blink Logic Digital Type VPS Range 0 0V to 6V Drop List 0 0V to 6V 1 0V to 13V Control Source 1 CAN Receive Messages Drop List See Table 8 Control Number 1 CAN Receive Mes...

Страница 14: ...are listed in the table below By default the PWM output is configured as 1 Digital PWM type Table 5 Output Type Options Value Meaning 0 Output Not Used 1 Digital PWM 2 Digital Frequency 4 Digital Mixe...

Страница 15: ...ated setpoints are interpreted in percentages Frequency control signal is selected with Frequency Control Source and Frequency Control Number setpoints Associated Mixed Output Frequency Min and Mixed...

Страница 16: ...N or ON to OFF 3 Blinking Logic OFF OFF ON Toggling OFF and ON at the rate defined in setpoint Digital Blink Rate in ms 3 2 4 Common Parameters In order to prevent abrupt changes at the output due to...

Страница 17: ...Constant Continuous Data 1 5 6 Lookup Table Block 1 10 7 Math Function Block 1 4 8 Programmable Logic Block 1 3 9 PWM Output Command 1 10 PWM Output Feedback 1 11 Power Supply Measured 1 12 Temperatu...

Страница 18: ...ride is active the output will be driven to the value in Output at Override Command regardless of the value of the Control input Table 11 Override Response Options Value Meaning 0 Override When ON 1 O...

Страница 19: ...UMAX140610 LIN J1939 CAN Protocol Converter with PWM Output Version 1 Page 19 81 Figure 5 Output Logic Flowchart...

Страница 20: ...unctions available on this coverter 3 3 LIN Interface The converter LIN interface is defined by LIN Signal LIN Unconditional Frame Event Triggered Frame Sporadic Frame Main Schedule Table Collision Sc...

Страница 21: ...function block or Not Connected Input signal source if LIN signal is output data is sent on the LIN bus Output Signal Autoreset Time 1000 1 10000 ms Autoreset time if LIN signal is input data is recei...

Страница 22: ...tput signal the following way Logical signals are received only when they are within the MinValue MaxValue range No conversion is performed BCD signals are received unconditionally No conversion is pe...

Страница 23: ...e according to the LIN standard requirements In the master mode this function block is not used and its output signal is undefined 3 3 4 LIN Unconditional Frame There are 25 LIN Unconditional Frame fu...

Страница 24: ...function block Signal 15 Number 0 0 130 Number of the 15 th LIN Signal function block Signal 15 Offset 0 0 63 bit Offset of the LIN signal defined by the 15 th LIN Signal function block The LIN Signal...

Страница 25: ...IN Unconditional Frame function block Collision Resolving Schedule Table function blocks are numbered starting from 0 When the Collision Resolving Schedule Table Number is equal to 0 the function bloc...

Страница 26: ...itional frame 1 has the maximum priority and unconditional frame 5 minimum When Unconditional Frame 1 5 Number is equal to 0 the frame is undefined 3 3 7 Main Schedule Table There is one Main Schedule...

Страница 27: ...ined 3 3 8 Collision Schedule Table There is one Collision Schedule Table function block available to the user It is used by the master node to resolve collisions in the event triggered frames Collisi...

Страница 28: ...ry frame number Entry 5 Delay 0 0 10000 ms 5 th schedule entry delay 3 4 Lookup Table Function Block Figure 14 Lookup Table Function Block Lookup Tables are used to give an output response of up to 10...

Страница 29: ...the default value of 0 0V For most Data Responses the default value at point 0 0 is 0 0 However should the minimum input be less than zero for example a CAN message that is reflecting temperature in...

Страница 30: ...tion block which uses the Lookup Table as an input source not only the PWM Output will also apply a linearization to the data Therefore for a 1 1 control response ensure that the minimum and maximum v...

Страница 31: ...for the desired response Figure 15 Lookup Table Initialization Examples 3 4 4 Point To Point Response By default the X and Y axes are setup for a linear response from point 0 0 to 10 10 where the outp...

Страница 32: ...10 will also be ignored For all data greater than XN 1 the output from the Lookup Table function block will be YN 1 A combination of Ramp To Jump To and Ignore responses can be used to create an appli...

Страница 33: ...over a period of time based on the profile in the Lookup Table Once the profile has finished i e index 10 or Ignored response the output will remain at the last output at the end of the profile until...

Страница 34: ...elow Figure 18 Lookup Table Time Response Clutch Fill Profiles In a time response the interval time between each point on the X axis can be set anywhere from 1ms to 24 hours 86 400 000 ms One final no...

Страница 35: ...UMAX140610 LIN J1939 CAN Protocol Converter with PWM Output Version 1 Page 35 81 Figure 19 Lookup Table Soft Shift EA Configuration...

Страница 36: ...Logic Function Block This function block is obviously the most complicated of them all but very powerful The Programmable Logic can be linked to up to three tables any one of which would be selected o...

Страница 37: ...her function block such as PWM Output To do this the Control Source for the reactive block would be selected to be the Programmable Logic Function Block In order to enable any one of Programmable Logi...

Страница 38: ...UMAX140610 LIN J1939 CAN Protocol Converter with PWM Output Version 1 Page 38 81 Figure 21 Programmable Logic Flowchart...

Страница 39: ...Value Meaning 0 Equal 1 Not Equal 2 Greater Than 3 Greater Than or Equal 4 Less Than 5 Less Than or Equal For example a condition for a transmission control shift selection as shown in Figure 18 in t...

Страница 40: ...be selected as listed in the table below Table 23 Condition Logical Operator Options Value Meaning 0 Default Table 1 Cnd1 And Cnd2 And Cnd3 2 Cnd1 Or Cnd2 Or Cnd3 3 Cnd1 And Cnd2 Or Cnd3 4 Cnd1 Or Cn...

Страница 41: ...Can also be used with two or three relevant conditions If any condition is evaluated as True the table is selected Error or N A results are treated as False If Cnd1 True Cnd2 True Cnd3 True Then Use T...

Страница 42: ...kup Table does not have an X Axis Source selected then the output of the Programmable Logic block will always be Not Available so long as that table is selected However should the Lookup Table be conf...

Страница 43: ...control the user can also adjust the Math Input X Scaler By default each input has a scaling weight of 1 0 However each input can be scaled from 1 0 to 1 0 as necessary before it is applied in the fu...

Страница 44: ...ameter allows for the result of any Function 1 2 or 3 to be the input to any Math Input Y within the same Math Block Therefore Math Input X Source must be a Math Block and Math Y Input Number must be...

Страница 45: ...n Parameters Name Default Value Range Units Description Math Function Enabled 0 False Drop List True or False Math Output Minimum Range 0 0 104 104 Converts calculation from a percentage value to the...

Страница 46: ...l Continuous Constant Signal 0 Any value Continuous constant signal 3 8 CAN Interface The converter CAN interface functionality is defined by Miscellaneous CAN Receive CAN Transmit function blocks CAN...

Страница 47: ...lso manually change the ECU address using the ECU Address configuration parameter The user selects the new ECU address from the list of available ECU addresses in the ECU Address Setup dialog window s...

Страница 48: ...gnal type Receive PGN 0xFF80 X1 Any J1939 PGN value2 Signal message PGN value Enable Specific Address False False True Only CAN messages from the selected address will be accepted if Yes Specific Addr...

Страница 49: ...converting the CAN signal data to the function block output signal It is assumed that CAN signal code with all bits set to 1 represents an undefined signal Discrete signals can take any value except t...

Страница 50: ...t Destination Address 0xFF 0 255 Destination address of the PDU1 PGN messages Length 0 0 8 CAN message data frame length Priority 6 0 7 CAN message priority Transmit on LIN Unconditional Frame Number...

Страница 51: ...Bit position of the 2 nd CAN output signal Signal 2 Data Resolution 1 Any value Signal Units bit Resolution of the 2 nd CAN continuous output signal Signal 2 Data Offset 0 Any value Signal Units Offs...

Страница 52: ...in Byte LSB together with the Signal 1 5 Data Size have the same meaning as in the CAN Receive function block The user should be careful not to overlap the output signals The following rules apply whe...

Страница 53: ...When disabled all diagnostic behaviour associated with the output or event in question is ignored i e this type of fault will not disable the output In the case of a power supply error or temperature...

Страница 54: ...t of the DM1 message Active Diagnostic Trouble Codes A Diagnostic Trouble Code DTC is defined by the J1939 standard as a four byte value which is a combination of SPN Suspect Parameter Number first 19...

Страница 55: ...clearly identified as having happened even if the conditions that caused it went away In addition to all the active DTCs another part of the DM1 message is the first byte which reflects the Lamp Stat...

Страница 56: ...Below Normal Operating Range Moderately Severe Level FMI 16 Data Valid But Above Normal Operating Range Moderately Severe Level FMI 21 Data Drifted Low FMI 20 Data Drifted High If the FMI used is anyt...

Страница 57: ...d by ECUs on the network The EA baud rate is displayed in the bottom right corner of the EA screen and can be changed in the Options menu If the converter is the only one ECU on a temporary network se...

Страница 58: ...user manual is required to work with this converter Figure 28 General ECU Information Screen 4 2 Function blocks in EA Each converter function block is presented by its own setpoint group in the Setp...

Страница 59: ...UMAX140610 LIN J1939 CAN Protocol Converter with PWM Output Version 1 Page 59 81 Figure 29 LIN Signal 1 Function Block in EA...

Страница 60: ...r will perform an internal reset of all function blocks after each change of the configuration parameters If the new configuration parameter affects the CAN network identification the converter will r...

Страница 61: ...ersions of the application firmware It is recommended that the user manually inspect all configuration parameters after flashing if the setpoint file was created by a different version of the applicat...

Страница 62: ...dule is designed to work on a LIN bus at a standard baud rate of 10417 bit sec defined in SAE J2602 The light intensity command frame has the following format Frame ID 0x23 Data Length 5 byte Checksum...

Страница 63: ...2 Configuration Steps As a first step create a block diagram of the required converter configuration using the converter function blocks Figure 32 Then configure each individual function block see Fi...

Страница 64: ...ration LIN Bus LIN Unconditiona l Frame 1 LIN Main Schedule LIN Signal 1 SelectIntensity RampUp DimDown LIN Signal 2 RedSaturation LIN Signal 4 BlueSaturation LIN Signal 5 ZoneSelection LIN Signal 3 G...

Страница 65: ...UMAX140610 LIN J1939 CAN Protocol Converter with PWM Output Version 1 Page 65 81 Figure 33 Example Configuration LIN Signal 1...

Страница 66: ...UMAX140610 LIN J1939 CAN Protocol Converter with PWM Output Version 1 Page 66 81 Figure 34 Example Configuration LIN Signal 2 Figure 35 Example Configuration LIN Signal 3...

Страница 67: ...rter with PWM Output Version 1 Page 67 81 Figure 36 Example Configuration LIN Signal 4 Configure LIN Signal 5 as ZoneSelection constant signal Set Signal Type to Scalar Size to 8 bit Encoding Type to...

Страница 68: ...1 Figure 37 Example Configuration LIN Signal 5 Now configure LIN Unconditional Frame 1 Set LIN Frame Kind to Publish Frame ID to 0x23 Size to 5 bytes Add all previously configured LIN signals to the f...

Страница 69: ...Protocol Converter with PWM Output Version 1 Page 69 81 Figure 38 Example Configuration LIN Unconditional Frame 1 Set LIN Schedule Table 1 with only one entry LIN Unconditional Frame 1 Set Delay to 50...

Страница 70: ...by configuring the LIN Common function block Set Node Type to Master and Baud Rate to 10417 bit sec Tick Time should be left at the default value of 10 ms Figure 40 Example Configuration LIN Common T...

Страница 71: ...ure that the LED will not switch off in case one or two CAN messages coming every 0 5 seconds are accidentally lost see the figure below Configure CAN Receive 2 and CAN Receive 3 in a similar way as I...

Страница 72: ...UMAX140610 LIN J1939 CAN Protocol Converter with PWM Output Version 1 Page 72 81 Figure 42 Example Configuration CAN Receive 2 Figure 43 Example Configuration CAN Receive 3...

Страница 73: ...ol message on the CAN bus For example a message with all intensity data fields set to 0xFA maximum value will turn the module LED to the intense white color Figure 44 Example Configuration Generating...

Страница 74: ...on Reset parameter flag to Yes This will automatically activate the bootloader on the next ECU reset After accepting the change the next screen will ask the user if the reset is actually required see...

Страница 75: ...lag back to No and resetting the ECU To flash the new firmware the user should click on toolbar icon or from the File menu select the Open Flash File command The Open Application Firmware Flash File d...

Страница 76: ...se all the configuration parameters of the converter other than LIN are stored in a separate EEPROM memory Otherwise the default LIN values will be set only to the new configuration parameters introdu...

Страница 77: ...UMAX140610 LIN J1939 CAN Protocol Converter with PWM Output Version 1 Page 77 81 For more information see the J1939 Bootloader section of the EA user manual...

Страница 78: ...al or Mixed Output 1 Hz to 20 kHz 0 100 Duty Cycle User configurable 6V or 13V amplitude Push pull output Maximum load is 50 mA at 5V or 30 mA at 12V Over current protection 50 mA Digital Level Digita...

Страница 79: ...nector Refer to dimensional drawing Below Electrical Connections 8 pin Deutsch IPD connector P N DT04 08PA A mating plug kit is available as Axiomatic P N AX070112 CAN and I O Connector Pin Descriptio...

Страница 80: ...UMAX140610 LIN J1939 CAN Protocol Converter with PWM Output Version 1 Page 80 81 Figure 51 Unit Dimensions...

Страница 81: ...UMAX140610 LIN J1939 CAN Protocol Converter with PWM Output Version 1 Page 81 81 7 VERSION HISTORY User Manual Version Date Author Modifications 1 August 6th 2021 Jessica Chen Initial release...

Страница 82: ...diagram application and other comments as needed SAFE USE All products should be serviced by Axiomatic Do not open the product and perform the service yourself This product can expose you to chemicals...

Отзывы: