CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum
Deutsche Version English version russian version 
It is currently Tue May 23, 2017 5:57 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 9 posts ] 
Author Message
PostPosted: Sun Apr 23, 2017 4:45 pm 
Offline

Joined: Tue Nov 01, 2016 10:06 pm
Posts: 6
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


Top
   
PostPosted: Mon Apr 24, 2017 5:02 am 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 1932
Hi,

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

BR
Edwin


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


Top
   
PostPosted: Mon Apr 24, 2017 3:56 pm 
Offline

Joined: Tue Nov 01, 2016 10:06 pm
Posts: 6
Edwin, it works fine - thank you!

Best wishes,
Thomas


Top
   
PostPosted: Mon Apr 24, 2017 7:36 pm 
Offline

Joined: Tue Nov 01, 2016 10:06 pm
Posts: 6
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


Top
   
PostPosted: Mon Apr 24, 2017 8:48 pm 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 1932
Hi Thomas,
no you need to enable generic device configurations views.
BR
Edwin


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


Top
   
PostPosted: Mon Apr 24, 2017 9:31 pm 
Offline

Joined: Tue Nov 01, 2016 10:06 pm
Posts: 6
That's it - thank you!

Best wishes,
Thomas


Top
   
PostPosted: Tue Apr 25, 2017 12:02 pm 
Offline

Joined: Tue Nov 01, 2016 10:06 pm
Posts: 6
hmm, after changing the parameter to -1 as you described the rotation has same direction.


Top
   
PostPosted: Wed Apr 26, 2017 12:59 pm 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 1932
Hi,

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

BR
Edwin


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


Top
   
PostPosted: Fri Apr 28, 2017 12:55 pm 
Offline

Joined: Tue Nov 01, 2016 10:06 pm
Posts: 6
...all is working now - Edwin, thank's again!

Best wishes,
Thomas


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

All times are UTC+01:00


Who is online

Users browsing this forum: A. Akkerman and 5 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