Codesys and CANopen manager sensors with same NodeID

Anonymous
2019-06-25
2024-07-22
  • Anonymous - 2019-06-25

    Originally created by: palej

    If I have Codesys project with CANopen manager and I add a CANopen slave node to the CAN with node id 19, the system is clear to me.

    But if I add two sensors (they are identical) devices with same factory preset nodeid 19, how do I change the nodeID of either of them?

    I do not have any idea. Devices support LSS-service (but I dont have idea how to implement nodeid change with or without it).

    Should I code it or should the canopen manager change the nodeid somehow. Now I have set the new node id with SDO (there are manufacturer set parameter to bet set so it changes the nodeid), but doesn't it change both sensor nodes if they are on the same CAN.

    Any ideas are welcome.

    Of course I could change it by adding first device to the CANand change it and after that I could add the second one to the CAN bus. But I want to change the dynamically when both are in the CAN bus same time so it should be same situation as in future production line.

     
  • Wiljan - 2019-06-26

    Do you have a link to the manual for the sensors?

     
  • Maximilian-K - 2019-08-23

    Were you able to figure this out? The easiest way to do this would be to connect one node at a time to a network and use LSS to set the node IDs. You can send messages over CAN with some sort of USB to CAN tool such as a PCAN-USB adapter and the PCAN-View software. If you need guidance using LSS to configure the Node ID let me know, it is pretty simple once you do it once.

    -Max

     
  • Kalyani-K - 2019-09-03

    Maximilian_K hat geschrieben:
    Were you able to figure this out? The easiest way to do this would be to connect one node at a time to a network and use LSS to set the node IDs. You can send messages over CAN with some sort of USB to CAN tool such as a PCAN-USB adapter and the PCAN-View software. If you need guidance using LSS to configure the Node ID let me know, it is pretty simple once you do it once.
    -Max

    Hi! I would like to know LSS better. Can you throw some light please?
    Thanks in advance!

     
  • Maximilian-K - 2019-10-08

    Kalyani,

    LSS is a communication object in CANopen similar to a PDO or SDO. It's specific purpose is to configure the node IDs and baudrates of canopen slaves (and maybe some other settings).

    Here is a good document explaining the procedure:
    http://www.microcontrol.net/download/appnotes/an1204.pdf

    Here is some info from CiA (not as user friendly):
    https://www.can-cia.org/can-knowledge/canopen/cia305/

    Let me know if this helps.

     
    • taqamert - 2024-07-22

      Maximilian-K,

      The links you added are not working right now, but what I need is exactly what you described. Where can I access this information?

       

Log in to post a comment.