CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Mon May 20, 2019 12:00 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 8 posts ] 
Author Message
 Post subject: SoftMotion Servo Example
PostPosted: Thu May 14, 2015 1:41 pm 
Offline

Joined: Fri Nov 30, 2012 9:03 am
Posts: 14
Hi All,
I have some SG90 9 g Micro Servo's which should rotate approximately 180 degrees (90 in each direction). I can get the servo to move ok with the supplied SFC, however i have some questions:

1) I cannot find the "SM Drive_Servo: Configuration" page to set the -ve/+ve limits which is shown in the docu, i can only find a "commissioning" section which says "This page is only available in online config mode" ?? See attachment.

2) At the moment i modify steps to move between absolute 90 deg/-90 deg, however the servo only physically moves 90 deg total, however when i monitor the actual value in codesys it moves betwen +90 / -90, its like the PWM scaling is out. From motor specs, Position "0" (1.5 ms pulse) is middle, "90" (~2ms pulse) is all the way to the right. "-90" (~1ms pulse) is all the way to the left.

Thanks for any tips.


You do not have the required permissions to view the files attached to this post.


Top
   
PostPosted: Thu May 14, 2015 6:10 pm 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 3284
Hi,
would recommend to enable the configuration page you need to go to tools-options-device editor-> enable generic device Editor

the online config mode is to give the possibilty to move the drives - manual move for comissioning.
See the screenshots how to enable and how to move the servo by this online configuration mode.

My experiance with these servos are that most of them do not move the range they should do,
if they are specified with +/-90° we see very often only +/-65 or even less movement range.
Maybe I'm wrong and this is only the case with my 3-4 different types I have used till now. (->most of them really cheap quality, obviously)

BR
Edwin


You do not have the required permissions to view the files attached to this post.


Top
   
PostPosted: Fri May 15, 2015 11:33 am 
Offline

Joined: Fri Nov 30, 2012 9:03 am
Posts: 14
Thanks Edwin for the information.
I followed the instruction here https://learn.adafruit.com/adafruit-16-channel-pwm-servo-hat-for-raspberry-pi/library-reference and installed Adafruits python s/w to control the servo. I am able to get the full range of movement using their s/w i.e. -90 --> 0 --> +90. I calculated what the pulse-width looks like to achieve the 3 positions. It is similar to what is shown in the servo motor data sheet http://datasheet.sparkgo.com.br/SG90Servo.pdf. I do not understand how i can enter the same data (i.e these pulse times) into codesys. I know I can enter the postion setpoint and the servo configuration negative/positive positions, however i am not sure how these relate to the pulse times (which lead to the correct final positions). Are we sure this library is working correctly ?
Kind Regards


You do not have the required permissions to view the files attached to this post.


Top
   
PostPosted: Fri May 15, 2015 3:53 pm 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 3284
Hi,
you are right seems to be a bug / feature what ever, we will fix/extend this to next version.
BR
Edwin


Top
   
PostPosted: Tue Aug 30, 2016 3:46 am 
Offline

Joined: Thu Aug 18, 2016 4:32 pm
Posts: 29
Edwin Schwellinger wrote:
Hi,
you are right seems to be a bug / feature what ever, we will fix/extend this to next version.
BR
Edwin


Did this bug/feature end up with a resolution? I am having issues with this as well.


Top
   
PostPosted: Mon Jun 12, 2017 7:47 pm 
Offline

Joined: Wed May 10, 2017 6:09 am
Posts: 1
allen00se wrote:
Edwin Schwellinger wrote:
Hi,
you are right seems to be a bug / feature what ever, we will fix/extend this to next version.
BR
Edwin


Did this bug/feature end up with a resolution? I am having issues with this as well.


How Long will it take to get the Problem fixed? Is there a little workaround for quick help available?


Top
   
PostPosted: Tue Jun 13, 2017 4:57 am 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 3284
Hi,
3.5SP11 release... July.
BR
Edwin


Top
   
PostPosted: Thu May 03, 2018 7:08 pm 
Offline

Joined: Wed May 13, 2015 2:13 pm
Posts: 3
Hello, the problem is still in progress

servo motors do not rise above 60 degrees

I m using version v3.5 sp12


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

All times are UTC+01:00


Who is online

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