SM_DRIVE_SERVO changing direction of rotation

Anonymous
2017-04-23
2017-04-28
  • Anonymous - 2017-04-23

    Originally created by: Thomas P.

    Hello all,
    can someone explain me how to change the direction of rotation of a SM_DRIVE_SERVO?
    Configuration of the the project is: CodesSys V3.5 SP10 - RPI - Adafruit_PWM_SoftMotion - Servos.
    The different servos are placed in opposite direction on a machinc and I want to drive them all clockwise.

    Thank's for your help!
    Thomas

     
  • eschwellinger

    eschwellinger - 2017-04-24

    Hi,

    you need to change iRatioTechUnitsNum to -1 to have opposite direction in the movements.

    BR
    Edwin

    IMG: direction.jpg

     
  • Anonymous - 2017-04-24

    Originally created by: Thomas P.

    Edwin, it works fine - thank you!

    Best wishes,
    Thomas

     
  • Anonymous - 2017-04-24

    Originally created by: Thomas P.

    I double checked now this for servo-drives connected to the adafruit-i2c-PWM-board and there I don't see the category with the parameters like it could be seen in your pic (SM_Drive_Servo: Paramters). Could it be that this is only working for real servo drives and not for virtual drives or something like that?

    Best wishes,
    Thomas

     
  • eschwellinger

    eschwellinger - 2017-04-24

    Hi Thomas,
    no you need to enable generic device configurations views.
    BR
    Edwin

    IMG: generic.jpg

     
  • Anonymous - 2017-04-24

    Originally created by: Thomas P.

    That's it - thank you!

    Best wishes,
    Thomas

     
  • Anonymous - 2017-04-25

    Originally created by: Thomas P.

    hmm, after changing the parameter to -1 as you described the rotation has same direction.

     
  • eschwellinger

    eschwellinger - 2017-04-26

    Hi,

    sorry I was really wrong,
    you need to change the limits, see screenshot.

    BR
    Edwin

    IMG: direction_PWMServos.jpg

     
  • Anonymous - 2017-04-28

    Originally created by: Thomas P.

    ...all is working now - Edwin, thank's again!

    Best wishes,
    Thomas

     

Log in to post a comment.