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

SM Drive configuration error

samw
2022-11-07
2022-12-30
  • samw - 2022-11-07

    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:
    Windows 11 VM
    Realtek USB Gb Ethernet
    JMC iSHV57 EC servo motor
    CAT 5e cable

    Dear All

    I am new to PLC programming and motion control software so I'd like to apologise in advance for any silly questions or incorrect use of tech lingo. However I do have experience in programming with Arduino, LabView and some python and c/c++.

    Recently an integrated motor iSHV57 by JMC caught my attention. It is basically a full feature servo motor but without the big controller box tagging to it. Around the same time I came across CoDeSys's SoftPLC. The combination of the two and the networking capability of EtherCAT got me very excited because now we can develop a clean set up with just a laptop and ethernet cables daisy chained to a whole bunch of motors. Well that was the idea one week ago and here I am still stuck in the very noob level of communicating with the motor.

    I have spent some time to get my head around the codesys/windwos stack integration. The codesys download page indicates lots of software or runtime requirements which confused me a bit but if I am not mistaken CODESYS V3.5 covers everything and do not require additional installation? I have followed the Codesys's start up instruction and ran some simple codes on the SoftPLC and I had no issues.

    However when I move up to the SoftMotion this was a complete kettle of fish. I have spent almost a week on a bug on the setup or configuration of the "SoftMotion CiA402 Axis". The comunnication between the PLC and motor appear to be fine, the green circle always light up next to them. (Pls see attached codesys device tree.png) The motion axis on the other hand always has a red triangle no matter what setting I try. And a error message SM Drive Configuration Error always pop up in the status page. (see attached "SMDrive Status error.png). I have tried out too many parameters on the motor that now I am completely lost. The error message does not help narrow down where the problem is at all. I have compiled a list of screen caps of the status of the PLC, the motor and the axis as a zip file. I hope somebody here could at least point me to some parameters that I should check.

    Massive thank you to the hero who can solve this!

     
  • gseidel - 2022-12-09

    Hi there,

    the Softmotion drive device is red because it is in wCommunication state 80 (waiting for synchronization).

    You are using a non-realtime capable SoftPLC (Control Win V3), so this is the root of the problem.

    You have two options: either use a realtime capable PLC (e.g. the RTE) or use SoftMotion Light to move your drive.

    Best regards,

    Georg

     
    πŸ‘
    1
    • samw - 2022-12-30

      Thank you so so much gseidel this fixes the problem. The DC synchron also need to be disabled for anyone who is having the same issue.

      Now I can get the motor to do some basic movements but having issues trying to spin the motor back and forth. I put a new post titled 'SoftMotion Function Block stuck on busy' I hope you could take a look thanks!

      Wishing you a happy new year!

       

Log in to post a comment.