Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Problem on DC-Synchron

agirard
2021-03-08
2023-01-03
  • agirard - 2021-03-08

    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

     
  • eschwellinger

    eschwellinger - 2021-03-09

    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

     
  • agirard - 2021-03-09

    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.

     
  • agirard - 2021-03-12

    Hello
    Please anybody has an idea?
    This comes blocant for us.

    Regards

     
  • agirard - 2021-03-18

    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

     
  • eschwellinger

    eschwellinger - 2022-03-29

    you need to use Control RTE instead as plc - this needs hard realtime using drives, SoftMotion and Ethercat distributed clocks.

     
    • samw - 2022-11-09

      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

       
    • samw - 2022-11-09

      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!

       
      • sgronchi - 2022-11-09

        If you have synchronization enabled, you NEED realtime behaviour thus you need RTE runtime. Otherwise synchronization does not work and errors out.

         
        • samw - 2022-12-05

          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.

           
          • atou - 2023-01-02

            Hello samw, Did you find a solution to your problem? I have the same issue. I don't need hard real time..

             
            • samw - 2023-01-03

              Hi did you check my other post? A guy explained the issue quite clearly. Hope this helps.

               

Log in to post a comment.