We are using Codesys v3.5 SP15 with EtherCAT Master Soft Motion.
When we configure the Distributed clock to SM-Syncrhon, all it is Ok.
But when we configure to DC-Syncrhon, we get error. The SM_DRIVE_GenericDSP402 indicate FB Error: SMC_ERROR.SMC_DI_GENERAL_COMMUNICATION_ERROR
The status xDistributedClockInSync is False
The error in the status field of the SM_Drive_ETC_GenericDSP402 says "Configuration Error" when the problem occurs.
But our drive using the Beckoff SSC stack indicate all status to syncrhonized.
When I parse the forum, I try by add EtherCAT_Master_SoftMostion.FramAtTaskStart = FALSE.
By this, I get communication fex second (1 or 2s maximum), then I get another error: SMC_DI_FIELDBUS_LOST_SYNCRONICITY
Is there any documentation about error signification and the way to resolve them?
Our Drive all work properly using Beckoff TwinCAT in SM and DC Synchron.
The PLC task is configured to 2ms, the Cycle execution time is about 200 to 300Β΅s.
Please, could have some idea to investiguate our problem?
Regards
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hallo,
on which device do you run the EthercatMaster?
Control RTE?
If you want to run it with SM-Synchron you need a really accurate / realtime capable system
DC-Synchron needs in any case for drives FramAtTaskStart=TRUE ( this is what the SoftMotion EthercatMaster sets by default for the drives)
'The SM_DRIVE_GenericDSP402 indicate FB Error: SMC_ERROR.SMC_DI_GENERAL_COMMUNICATION_ERROR'
This is another issue - seems that the drive does not work with the generic DS402 driver - check the logger and Ds402 Statemachine...
'By this, I get communication fex second (1 or 2s maximum), then I get another error: SMC_DI_FIELDBUS_LOST_SYNCRONICITY2'
-> FramAtTaskStart=TRUE should fix this - if your plc is hard realtime capable
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
Please find enclose the device on which EtherCAT Master run.
Ok for FramAtTaskStart=TRUE for DC-Syncrhon.
So in this case, I get first error The SM_DRIVE_GenericDSP402 indicate FB Error: SMC_ERROR.SMC_DI_GENERAL_COMMUNICATION_ERROR'
My Drive is in SwitchOnDisabled state (Controlword received = 0x0000)
On the EtherCAT master, on the state field, it is indicated "Configuration Error"
PLease tell me if you want see other status?
Please find some screenshot.
Hello,
I'm hesitate to try.
I checked into my slave, I get well the DC_Synchro 0 interrupt every configured time (2ms).
All status en variables inside our ECAT Stack (from ETG SSC v5.12) are ok. No flag indicate to me the syncrho is nok (Watchdog etc..). All error Flag are Ok.
So which is the criteria for the EtherCAT Master Soft Motion to define a DC Synron error? (black box for me)
Regards
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi eschwellinger I get the same error code: SMC_DI_GENERAL_COMMUNICATION_ERROR and SM_Drive_ETC_GenericDSP402: There is a configuration error. What parameters can I check to fix this problem? Do I have to manually start up SoftMotion? I have checked the drop down menu on Device the SoftMotion is Enabled.
I think my issue is slightly different as I use a SoftPLC don't need hard real time. I have been trying to fix this bug for a week already. Now I am completely lost and don't know where to look anymore.
I hope you could offer some guidance. I have attached a few photos hope they are useful for debugging. The hardware and software info are listed below. Many thanks for your help.
I believe the error is related to synchronisation, see attached photo. Is there a way to get around the problem? I don't need perfect synchronisation. Many thanks!
Dear Sgronchi I don't need hard real time, I already set the synchronisation to DC and not SM. Will uncheck the enable box in the distributed clock in one of the slave option have any effect? Is it possible to use the Soft Motion function blocks without the RTE runtime? I could modify the PDOs in the EhterCAT I/O mapping and control the motor that way as a work around but obviously this is not an ideal solution.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello
We are using Codesys v3.5 SP15 with EtherCAT Master Soft Motion.
When we configure the Distributed clock to SM-Syncrhon, all it is Ok.
But when we configure to DC-Syncrhon, we get error. The SM_DRIVE_GenericDSP402 indicate FB Error: SMC_ERROR.SMC_DI_GENERAL_COMMUNICATION_ERROR
The status xDistributedClockInSync is False
The error in the status field of the SM_Drive_ETC_GenericDSP402 says "Configuration Error" when the problem occurs.
But our drive using the Beckoff SSC stack indicate all status to syncrhonized.
When I parse the forum, I try by add EtherCAT_Master_SoftMostion.FramAtTaskStart = FALSE.
By this, I get communication fex second (1 or 2s maximum), then I get another error: SMC_DI_FIELDBUS_LOST_SYNCRONICITY
Is there any documentation about error signification and the way to resolve them?
Our Drive all work properly using Beckoff TwinCAT in SM and DC Synchron.
The PLC task is configured to 2ms, the Cycle execution time is about 200 to 300Β΅s.
Please, could have some idea to investiguate our problem?
Regards
Hallo,
on which device do you run the EthercatMaster?
Control RTE?
If you want to run it with SM-Synchron you need a really accurate / realtime capable system
DC-Synchron needs in any case for drives FramAtTaskStart=TRUE ( this is what the SoftMotion EthercatMaster sets by default for the drives)
'The SM_DRIVE_GenericDSP402 indicate FB Error: SMC_ERROR.SMC_DI_GENERAL_COMMUNICATION_ERROR'
This is another issue - seems that the drive does not work with the generic DS402 driver - check the logger and Ds402 Statemachine...
'By this, I get communication fex second (1 or 2s maximum), then I get another error: SMC_DI_FIELDBUS_LOST_SYNCRONICITY2'
-> FramAtTaskStart=TRUE should fix this - if your plc is hard realtime capable
Hello,
Please find enclose the device on which EtherCAT Master run.
Ok for FramAtTaskStart=TRUE for DC-Syncrhon.
So in this case, I get first error The SM_DRIVE_GenericDSP402 indicate FB Error: SMC_ERROR.SMC_DI_GENERAL_COMMUNICATION_ERROR'
My Drive is in SwitchOnDisabled state (Controlword received = 0x0000)
On the EtherCAT master, on the state field, it is indicated "Configuration Error"
PLease tell me if you want see other status?
Please find some screenshot.
Thank a lot.
Hello
Please anybody has an idea?
This comes blocant for us.
Regards
not sure - this is a Windows CE device - I would give Control RTE installed on Windows IPC give a try - https://store.codesys.com/codesys-control-rte-sl.html?___store=en
Maybe I'm wrong but it is worth to give it a try.
Last edit: eschwellinger 2021-03-12
Hello,
I'm hesitate to try.
I checked into my slave, I get well the DC_Synchro 0 interrupt every configured time (2ms).
All status en variables inside our ECAT Stack (from ETG SSC v5.12) are ok. No flag indicate to me the syncrho is nok (Watchdog etc..). All error Flag are Ok.
So which is the criteria for the EtherCAT Master Soft Motion to define a DC Synron error? (black box for me)
Regards
Hello,
I have the same Problem, using Codesys Control WIn V3x64!
has anyone an idea?!
Best Regards!
you need to use Control RTE instead as plc - this needs hard realtime using drives, SoftMotion and Ethercat distributed clocks.
Hi eschwellinger I get the same error code: SMC_DI_GENERAL_COMMUNICATION_ERROR and SM_Drive_ETC_GenericDSP402: There is a configuration error. What parameters can I check to fix this problem? Do I have to manually start up SoftMotion? I have checked the drop down menu on Device the SoftMotion is Enabled.
I think my issue is slightly different as I use a SoftPLC don't need hard real time. I have been trying to fix this bug for a week already. Now I am completely lost and don't know where to look anymore.
I hope you could offer some guidance. I have attached a few photos hope they are useful for debugging. The hardware and software info are listed below. Many thanks for your help.
Software:
CODESYS V3.5 SP18 Patch 3+ (64bit)
CODESYS Control Win V3 x64 Ver. 3.5.18.30
CODESYS Gateway V3 - x64 Ver. 3.5.18.30
Hardware:
Realtek USB Gb Ethernet
Intel Ethernet Connection I219
JMC iSHV57 EC servo motor
CAT 5e cable
CAT 6 cable
I believe the error is related to synchronisation, see attached photo. Is there a way to get around the problem? I don't need perfect synchronisation. Many thanks!
If you have synchronization enabled, you NEED realtime behaviour thus you need RTE runtime. Otherwise synchronization does not work and errors out.
Dear Sgronchi I don't need hard real time, I already set the synchronisation to DC and not SM. Will uncheck the enable box in the distributed clock in one of the slave option have any effect? Is it possible to use the Soft Motion function blocks without the RTE runtime? I could modify the PDOs in the EhterCAT I/O mapping and control the motor that way as a work around but obviously this is not an ideal solution.
Hello samw, Did you find a solution to your problem? I have the same issue. I don't need hard real time..
Hi did you check my other post? A guy explained the issue quite clearly. Hope this helps.