CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Tue Dec 10, 2019 8:46 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Tue Jun 25, 2019 8:49 am 
Offline

Joined: Wed Oct 31, 2018 6:57 pm
Posts: 5
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.


Top
   
PostPosted: Wed Jun 26, 2019 5:21 pm 
Offline

Joined: Wed Oct 26, 2016 7:34 pm
Posts: 6
Do you have a link to the manual for the sensors?


Top
   
PostPosted: Fri Aug 23, 2019 9:57 pm 
Offline

Joined: Sat Feb 27, 2016 5:01 am
Posts: 18
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


Top
   
PostPosted: Tue Sep 03, 2019 4:29 pm 
Offline

Joined: Mon Feb 18, 2019 1:18 pm
Posts: 16
Maximilian_K wrote:
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!


Top
   
PostPosted: Tue Oct 08, 2019 7:15 pm 
Offline

Joined: Sat Feb 27, 2016 5:01 am
Posts: 18
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.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 5 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited