ECM NH3CAN Instruction Manual Download Page 12

12 

5.0 

Writing to the NH

3

CAN Module (SDO Write) 

 
 
Configuration  of  the  NH

3

CAN  module  is  performed  by  writing  to  the  Object  Dictionary  (OD) 

and  by  issuing  ECM  CANopen  OS  Commands  (OS  Command).  Both  of  these  actions  are 
implemented  using  a  Service  Data  Object  Expedited  Write  (SDO  Write).  The  format  is  as 
follows: 
 

SDO Write Tx

 

CAN id 

byte 0 

byte 1 

byte 2 

byte 3 

byte 4 

byte 5 

byte 6 

byte 7 

0x600+NID 

Size 

OD lo  OD hi 

Sub 

Data0 

Data1 

Data2 

Data3 

 
Size = 0x2F (1 byte write) 
           0x2B (2 byte write) 
           0x23  (4 byte write) 
 
OD lo = low byte of OD address 
OD hi = hi byte of OD address 
Sub = Subindex of OD address 
Data0 always contains the Least Significant Byte (LSB) of the data to be written to the OD. 
 
A SDO Write will generate the following reply: 
 

SDO Write Rx

 

CAN id 

byte 0 

byte 1 

byte 2 

byte 3 

byte 4 

byte 5 

byte 6 

byte 7 

0x580+NID 

0x60 

OD lo 

OD hi 

Sub 

 

 

 

 

 
Example: Write a 2 byte integer = 0x204 to OD address 0x5017 subindex 0 in the module with  
                NID = 0x10 
 

SDO Write Tx

 

CAN id 

byte 0 

byte 1 

byte 2 

byte 3 

byte 4 

byte 5 

byte 6 

byte 7 

0x610 

0x2B 

0x17 

0x50 

0x00 

0x04 

0x02 

 

 

 
The module will reply as follows: 
 

SDO Write Rx

 

CAN id 

byte 0 

byte 1 

byte 2 

byte 3 

byte 4 

byte 5 

byte 6 

byte 7 

0x590 

0x60 

0x17 

0x50 

0x00 

 

 

 

 

 

Summary of Contents for NH3CAN

Page 1: ...NH3CAN NH3 CAN Module Instruction Manual REV 1 00 2 5 2015 ECM ECM ECM ECM ENGINE CONTROL AND MONITORING...

Page 2: ...com COPYRIGHT 2015 by ECM ENGINE CONTROL AND MONITORING All Rights Reserved No part of this manual may be photocopied or reproduced in any form without prior written consent from ECM ENGINE CONTROL AN...

Page 3: ...SPANing 15 8 2 Canceling Erasing the ZERO and SPAN 16 8 3 Modifying the Pre Broadcast Averaging of Data 16 8 4 Returning the Pre Broadcast Averaging to Factory Default 17 8 5 Changing the NID 17 8 6 C...

Page 4: ...4...

Page 5: ...2 bytes unsigned 16 and has a range of 0x0000 0xFFFF 0 65535 6 One unsigned long contains 4 bytes unsigned 32 and has a range of 0x00000000 0xFFFFFFFF 0 4294967295 7 One single float contains 4 bytes...

Page 6: ...software CD 13 01 1 Optional Pressure Compensation add P to kit part number 10 Pressure Sensor 0 75 psia 517 kPa 07 01 USA or 1 07 02 metric 11 Pressure Extension Cable 10 04 1m 1 12 Pressure Sensor...

Page 7: ...7 P N 02 12 P N 06 07...

Page 8: ...constant the NH3 value output by the module can be used Typically this takes 5 minutes when the sensor is in the exhaust of a running engine as much as 30min when hanging in free air or in a cold mani...

Page 9: ...ex NMT 0x00 Emergency 0x80 NID TPDO1 0x180 NID TPDO2 0x280 NID TPDO3 0x380 NID TPDO4 0x480 NID SDO Tx 0x580 NID SDO Rx 0x600 NID Heartbeat 0x700 NID LSS 0x7E4 0x7E5 Note this list applies to EACH ECM...

Page 10: ...on the CAN bus See ECM Error codes in Appendix A Approximately 5 seconds after power is applied the unit will start broadcasting CAN messages at a CAN baud rate of 500kbps All messages are related to...

Page 11: ...e see section 8 6 to determine minimum broadcast rate A TPDO contains two data values each data value corresponds to a measured parameter e g NH3 These data values are referred to as PROCESS DATA OBJE...

Page 12: ...yte write OD lo low byte of OD address OD hi hi byte of OD address Sub Subindex of OD address Data0 always contains the Least Significant Byte LSB of the data to be written to the OD A SDO Write will...

Page 13: ...e 7 0x580 NID Size OD lo OD hi Sub Data0 Data1 Data2 Data3 Size 0x4F 1 byte response 0x4B 2 byte response 0x43 4 byte response OD lo low byte of OD address OD hi hi byte of OD address Sub Subindex of...

Page 14: ...s 0x1018 subindex 0x02 4 byte integer unsigned 32 iii Revision Number located at OD address 0x1018 subindex 0x03 4 byte integer unsigned 32 iv Serial Number located at OD address 0x1018 subindex 0x04...

Page 15: ...The procedure is as follows i SDO Write to OD address 0x5000 of the current NH3 value output by the module ii SDO Write to OD address 0x5001 of the true correct NH3 value iii OS Command to ZERO SPAN N...

Page 16: ...in the sensor s connector Thus the NH3 sensor reverts to the factory calibration CANid byte 0 byte 1 byte 2 byte 3 byte 4 byte 5 byte 6 byte 7 0x600 NID 0x2F 0x23 0x10 0x01 0x12 8 3 Modifying the Pre...

Page 17: ...0x50 0x08 0x00 0x01 8 4 Returning the Pre Broadcast Averaging to Factory Default The averaging values can be reset to factory default 375 by issuing the ECM OS Command 0x15 see Appendix B CANid byte 0...

Page 18: ...the NID has been successfully changed the module enters pre operational mode and does not broadcast data The module can be returned to broadcast mode 1 of 3 ways i Power cycle the module by disconnect...

Page 19: ...x1800 subindex 0x05 The format of the SDO Write to the LambdaCAN module is as follows CANid byte 0 byte 1 byte 2 byte 3 byte 4 byte 5 byte 6 byte 7 0x600 NID 0x2B 0x00 0x18 0x05 Broadcast rate lo Broa...

Page 20: ...D 0x08 has 4 TPDOs enabled Minimum Broadcast Rate ms 3 1 4 2 4 4 4 4 x 0 3125 8 125ms Since the broadcast rate is valid only in increments of 1ms round 8 125ms up to the next integer value 9ms Therefo...

Page 21: ...t CANid lo Transmit CANid hi 0x00 0xC0 Example Enable TPDO1 for the module with NID 0x10 EnableOD Address 0x1800 Transmit CANid 0x180 0x10 0x190 CANid byte 0 byte 1 byte 2 byte 3 byte 4 byte 5 byte 6...

Page 22: ...s hi Configure the 2nd PDO by performing a SDO Write follows CANid byte 0 byte 1 byte 2 byte 3 byte 4 byte 5 byte 6 byte 7 0x600 NID 0x23 ConfigOD Address lo ConfigOD Address hi 0x02 0x20 0x00 PDO OD...

Page 23: ...FF Device Software 0x6100 61FF Device Software Internal 0x6200 62FF Device Software User 0x6300 63FF Device Software Data set 0x7000 70FF Additional Modules 0x8000 80FF Monitoring 0x8100 81FF Monitori...

Page 24: ...1wire parameter sensor type 0x0025 Pulse Red 2x 2s 1 wire data format not compatible old rev 0x0031 Pulse Red 3x 2s Vsw 6 for 7sec 0x0032 Pulse Red 3x 2s Vsw 32V 0x0041 Pulse Red 4x 2s VS too high 0x...

Page 25: ...0 0x02 Status The values that may be returned are listed below Status 0x00 Last command completed No error occurred No reply 0x01 Last command completed No error occurred The reply can now be read 0x0...

Page 26: ...00 old value and 0x5001 desired value defZeroSpanSuccessful 0x00 defSenModNotReady 0xFD defZeroSpanDataInvalid 0xFE defOWZeroSpanWrFail 0xFF SpanNH3 0x10 Set span for NH3 requires write to OD 0x5000 o...

Page 27: ...ert mode password required None HtrPidEnable 0xE1 Enable heater PID control None HtrPidDisable 0xE2 Disable heater PID control None RvsEnable 0xE3 Enable RVS measurement None RvsDisable 0xE4 Disable R...

Page 28: ...0 5 seconds by the NH3CAN module During normal operation the module is in operational mode NMT state 0x05 CAN id byte 0 byte 1 byte 2 byte 3 byte 4 byte 5 byte 6 byte 7 0x700 NID NMT state NMT state...

Page 29: ...ure deg C 100 0x200C single float C1R PDO Data Cell1 raw bits 0x200D single float C2R PDO Data Cell2 raw bits 0x200E single float ERFL PDO Data Error bit flags 0x200F single float ERCD PDO Data ECM CA...

Page 30: ...ection 4 0 and section 8 6 The module must be properly configured in EIB mode or Stand alone mode depending on how it will be used To convert from one mode to the other requires software reprogramming...

Page 31: ...d start the Configuration Tool software Click on the Module tab Select the CAN adapter being used Then start the communication 3 Click on the Set to EIB Mode Wait for Done Message Stop communication a...

Page 32: ...can be on the EIB with a display To convert a module from EIB to Stand alone Mode The process is similar to the previously described procedure Note that in EIB mode the module will not show up in the...

Page 33: ...bility and fitness for purpose whether express implied or arising by operation of law trade usage or course of dealing are hereby disclaimed The warranty is void if the display head is opened LIMITATI...

Page 34: ...34 Los Altos CA 94023 0040 USA 408 734 3433 Fax 408 734 3432 www ecm co com ECM ECM ECM ECMENGINE CONTROL AND MONITORING...

Page 35: ...M300 SIM400 To which this declaration relates are in conformity with the essential requirements of the following standards EN61326 1997 A2 2001 Class A Annex A EN61010 1 2001 Electrical Safety And the...

Reviews: