CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum
Deutsche Version English version russian version 
It is currently Sat Jun 24, 2017 1:09 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Wed May 07, 2008 9:11 pm 
Offline
Frequent User
Frequent User

Joined: Mon Jul 25, 2005 8:06 pm
Posts: 295
Is there a possibility to cause the CANopen stack to reconfigure a node with new SDO information during runtime? I have a node that I would like to have programmed two different ways based upon a flag that is set by the user. I need to change the Transmit PDO Type and Inhibit timer. I have no problems sending the SDO. The issue is the slave node will not use the new parameters until it enters into pre-operational. Once started again the new parameters will take effect. After changing the slave node parameters manually by using the CanOpenSendSDO FB and setting pre-operational the CoDeSys CANopen stack see's the transition to pre-operational and automatically takes over reconfiguring the node based on the PLC Configuration settings of the node and starts it operational over writting what I have just programmed. Any suggestions?

_________________
Thanks,
Steve Pfeifenroth


Top
   
 Post subject:
PostPosted: Wed May 07, 2008 10:37 pm 
Offline
Frequent User
Frequent User

Joined: Mon Jul 25, 2005 8:06 pm
Posts: 295
I believe I found my own solution thanks to the CANopen for 3S Runtime Systems manual. Since I have the PDO set to cyclic an object dictionary entry for event timer is not found in ODEntries. So I can't change that entry at runtime. But a key point that I was not aware of is sending a NMT start message to the node would cause the device to re-read the OD entries. This worked so I did the following.

Configured two OD entries on the slave node using the CanOpenSendSDO FB.

Used a CAN_Layer1 FB to send the NMT Start node command.

That worked.

_________________
Thanks,

Steve Pfeifenroth


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

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 1 guest


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