CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum
Deutsche Version English version russian version 
It is currently Tue Oct 17, 2017 10:43 am

All times are UTC+01:00

Post new topic  Reply to topic  [ 3 posts ] 
Author Message
 Post subject: CanOpen Manager problems
PostPosted: Mon Aug 21, 2017 8:38 am 

Joined: Thu Aug 17, 2017 12:35 pm
Posts: 3
Hello all.

My costumer wanted me to test the CanOpen bus for stability.

The tests for loose connections and the ability for the CanOpen Bus to recover from that failed..

Problem 1.
If i try to plug unplug a contact for a Device sometimes the Manager Hangs..
CanOpen manager is green, Node is red, When i monitor the bus the node sometimes is in operational sometimes in pre operational and sending heartbeats. If i try to send NMT Operational no message goes to the bus. Only way to recover is to cut the power to the PLC and reboot.

After much testing I found a way to make this problem go away.. I configured all my nodes and saved the configuration in the node. I chose the CanOpen manager not to initialize the nodes and instead wrote some code to check if any of my nodes is either stopped or preop and if they were I started them.

As this worked i think there is a bug hidden in the CanOpen manager code so it can become stuck in some state.. Is there any possibility to reset the CanOpen manager from code?

[b]Problem 2.[/b]
If we remove the CanOpen GND the same behaivior as above still comes and i need to restart the PLC.. Kernel state is No error or guarding error. The nodes is sending heartbeats but the manager cannot send anything to the bus..

I am using Codesys V3.5 SP10 Patch 1
The PLC is a brand new IFM Mobile Controller CR0720.

PostPosted: Mon Aug 28, 2017 8:55 am 
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 2158
Add CANOPEN_DEBUG as compiler define... then check the plc logger for more details

PostPosted: Tue Sep 26, 2017 7:59 am 

Joined: Thu Aug 17, 2017 12:35 pm
Posts: 3
The earlier problems has been resolved by a firmware update of the PLC.


I have more CanOpen problems.. The CanOpen manager goes offline sometimes and restarts so if it werent for that I have a remote controller with emergency stop I maybe wouldnt notice this.

Have tried to add CANOPEN_DEBUG to the compiler define.. Every time i have tried that the PLC has crashed.

The bus is set at 500kb/s.
Monitoring with Kvaser CanKing software shows me no error frames (Other than a large bunch when I turn the power on but then it stops.) and a bus load of ~12%

Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 3 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