<< Click to Display Table of Contents >> Navigation: How To > How to set up SDO communication in CANopen |
You want to
a) request a value from an ECU / sensor
b) read a value with the ECU from the display device
c) write a value with the ECU to the display device
- include the CANopen protocol for the CAN port you want to use
- set up IDs for PClient SDO Server Channel and PClient SDO Client Channel in the Terminal and Owner ECU Configuration dialog
- so make it clear:
COB-ID Client ->Server (rx) is the ID that the ECU uses to read / write a value from / to the display device (used for b) and c))
COB-ID Server->Client (tx) is the ID that the display uses to respond a read / write request from the ECU (used for b) and c))
COB-ID Client ->Server (tx) is the ID that the display device uses to read a value from the ECU (used for a))
COB-ID Server->Client (rx) is the ID that the ECU uses to respond a read request from the display device (used for a))
a)
- create the variable you want to read from the ECU (data type must match!)
- open the Variable Manager
- set the ECU as the owner of the variable
- set the ECU index and ECU sub index of the variable according to the index / sub index the variable has in the ECU
- use the JavaScript function requestVariableValueFromOwner to request the value of the variable from the ECU
b)
- create the variable that the ECU wants to read (here the internal index / sub index are used)
- the ECU needs to send a read request message for the variable
c)
- create the variable that the ECU wants to read (here the internal index / sub index are used)
- the ECU needs to send a write request message for the variable