Servo controller!

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

jgu1
Posts: 1105
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1010 times
Been thanked: 255 times
Contact:

Servo controller!

Postby jgu1 » Sun Oct 06, 2019 8:40 pm

Hi all!

I have to use a servo controller played with the 8 channel controller. I not managed to figured out how to use this component, help needed please.
Will somebody look at my testprogram.

Thank´s in advance.

Br Jorgen
Attachments
Servotest.fcfx
(10.47 KiB) Downloaded 20 times

viktor_au
Posts: 122
Joined: Fri Jan 26, 2018 12:30 pm
Location: South Australia
Has thanked: 21 times
Been thanked: 31 times
Contact:

Re: Servo controller!

Postby viktor_au » Sun Oct 06, 2019 10:47 pm

Hello Jorgen

Please have a look at the attached file. I have modified it a bit.
Pay attention to:
1. Servo initialisation.
2. Servo_Controller1::EnableServo(0) // channel 0, not 1
3. ServoMotor->Properties->Link To... // should be Unconnected
3. Servo_Controller -> Set position (not move to position)

Matrix team has provided a good example:
https://www.matrixtsl.com/wiki/index.php?title=Component:_Servo_Controller_(Mechatronics)
I am not sure why you did not check it.
Attachments
Servotest2.fcfx
(11.02 KiB) Downloaded 27 times
These users thanked the author viktor_au for the post (total 2):
jgu1 (Mon Oct 07, 2019 7:54 am) • medelec35 (Mon Oct 07, 2019 8:56 am)
Rating: 10.53%
 

jgu1
Posts: 1105
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1010 times
Been thanked: 255 times
Contact:

Re: Servo controller!

Postby jgu1 » Mon Oct 07, 2019 7:54 am

Hi Victor!

Thank you for the correction, I see I almost was there :wink:

Yes I know the example from the helpmeny, but this i an old one from FC5, I suppose. I would like to use the Servo controller from FC8

You managed to get it work, exactly like I wish in simulation and all. Perfect Victor, thank´s.
I imagine it´s still hot in Australia? Here in Denmark the winter is on it´s way. This morning only 2degree Cel. :(

Br Jorgen.
These users thanked the author jgu1 for the post:
Benj (Mon Oct 07, 2019 1:41 pm)
Rating: 5.26%
 

viktor_au
Posts: 122
Joined: Fri Jan 26, 2018 12:30 pm
Location: South Australia
Has thanked: 21 times
Been thanked: 31 times
Contact:

Re: Servo controller!

Postby viktor_au » Mon Oct 07, 2019 9:04 am

Glad it works Jorgen.

All good.

Sometimes it is easy to help somebody else than to find my own mistakes.
These users thanked the author viktor_au for the post:
Benj (Mon Oct 07, 2019 1:41 pm)
Rating: 5.26%