CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum
Deutsche Version English version russian version 
It is currently Fri Dec 15, 2017 2:45 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Tue Aug 08, 2017 8:01 pm 
Offline

Joined: Tue Aug 08, 2017 5:37 pm
Posts: 3
Hello everyone,
I have a problem that does not give me peace with a motion project. I'm using CoDeSys 3.5 with integrated SM3 library, version 4.2.1.0
I have three axes on EtherCAT fieldbus. If there is no power to one of these (for various reasons), after the return, or even after a restart of the EtherCAT network via its FB, the drives return to work, but the SM axes remain in "errorstop" . By reading the manuals found on the Internet, it looks like you just need to disable the "Enable" of the "MC_Power" block to reset everything, and with the next "Enable" rising edge, the aces are reset. But it does not happen to me, and I can not get them back on track.

After a series of attempts, also trying to use FBs to reset and reset errors, but never succeed. I then discovered that, if the copy softmotion axes objects when work on the variables of support and, after the problem, instead copy the supporting variables on the axes in error, before re-enabling power, these then are reset and operate. But frankly it seems like a dirty solution.

Ideas? Solutions?

Thanks.
Mauro Bottizzo.


Top
   
PostPosted: Tue Aug 08, 2017 8:13 pm 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 2332
Hi,

in case of an ethercat restart, you need to execute the SMC_ReinitDrive fb
This will bring back the drive to operational for SoftMotion.
BR
Edwin


Top
   
PostPosted: Wed Aug 09, 2017 7:21 am 
Offline

Joined: Tue Aug 08, 2017 5:37 pm
Posts: 3
I don't find it. In wich library is located?

Mauro.


Top
   
PostPosted: Wed Aug 09, 2017 5:07 pm 
Offline

Joined: Tue Aug 08, 2017 5:37 pm
Posts: 3
SMC3_ReinitDrive

It's working for both my problems. Thanks.

Mauro.


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

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 3 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