Analog Servo runs at maximum speed at start

More
20 Oct 2020 14:20 #186685 by aleksamc
I try to configure analog servomotor with 7i77 board.
At initial, when I start, output increases up to 10V and servomotor runs at maximum speed.
I set P=0.5 and every other parameters (FF1, I, D) equal to 0.

And also How to use pins EN+ and EN-. It's enable output? EN- it's GND and EN+ is 24V?

Please Log in or Create an account to join the conversation.

More
20 Oct 2020 14:23 #186687 by andypugh
It sounds like the encoder and motor might disagree about which direction is +.
Try making the encoder scale negative.

Please Log in or Create an account to join the conversation.

More
20 Oct 2020 14:42 #186692 by aleksamc
No, problem was in param. P. I changed it to 0.1 and I found that really I didn't change that parameter, it was default. Now it's OK.

But what pin EN+ and EN- (near analog autput) are meanning?

Please Log in or Create an account to join the conversation.

More
20 Oct 2020 14:46 #186694 by PCW

And also How to use pins EN+ and EN-. It's enable output? EN- it's GND and EN+ is 24V?



The ENA+ and ENA- pins act as a switch that can be used to drive the enable input on the drive

If the drive has an active high enable you wire like this:

+Power --> ENA+
ENA- --> Drive_Enable_Input

In this case +Power is applied to the drives enable input when LinuxCNC
enables the analog outputs

If the drive has an active low enable you wire like this:

Drive_Enable_Input--> ENA+
ENA- --> COMMON/Ground

In this case the drives enable input is grounded when LinuxCNC enables the analog outputs
The following user(s) said Thank You: aleksamc

Please Log in or Create an account to join the conversation.

More
20 Oct 2020 16:00 #186703 by aleksamc
PCW and Andypugh, you are always help me and gives almost all answers.

I currently configure axis for moving. Now it's move but I have a lot of question for this. I supposed realy that it's more easier task to configure it.
1) Osciloscope has scale, for example "ferror" and scale it 5/div. Does it's mean 5mm/did? What units are used? If signal is position than mm/inch?
2)Servomotor has big overregulation. On Start it makes jump fwd than moves with low speed (and it seems that speed is not regulated) than when it should stop, it makes jump back.
I have P=0.1, FF1=0.2. All other parameters are 0.

I read the article for tunning servos of tommylight but it seems that it's not so easy as written:))

Please Log in or Create an account to join the conversation.

More
20 Oct 2020 16:14 #186706 by PCW
Ferror is scaled in machine units

Can you post you hal/ini files?

Please Log in or Create an account to join the conversation.

More
20 Oct 2020 16:38 - 20 Oct 2020 17:04 #186709 by aleksamc
Here they are.

If I have setting 50m/div and ferror takes 4 scales (4*50m) How much is it?
4*50*10^(-3)(mm) =0.200mm?

File Attachment:

File Name: cnc.hal
File Size:14 KB

File Attachment:

File Name: cnc.ini
File Size:4 KB


I forgote to write that after some experiments I andersood that param. FF1 gives me troubles. So without it I have error for 200 m/div.
Attachments:
Last edit: 20 Oct 2020 17:04 by aleksamc.

Please Log in or Create an account to join the conversation.

More
20 Oct 2020 19:07 #186728 by PCW
If you have velocity mode servos, FF1 is the most critical tuning parameter

The value for FF1 should be 10/velocity_at_10V so probably about .1 with your current setup
(assuming the velocity is 100mm/sec at 10V)

Halscope plots of ferror and velocity would be helpful to diagnose
what needs to be tuned.

Please Log in or Create an account to join the conversation.

More
20 Oct 2020 19:14 #186730 by aleksamc
I have almost direct connection of servo without gear box. And it maximum speed is
50 rev/sec*100mm/rev=5m/sec ))) it's flashing move.

So, my FF1 should be 10/5000=0.002. I will try this tommorow.

Please Log in or Create an account to join the conversation.

More
22 Oct 2020 10:00 - 22 Oct 2020 10:01 #186887 by aleksamc
I made some configurations and it seems that one axis work fine.
Does it's OK for axis with 1000 resolution encoder and analog intput to have ferror 0.8mm when moving 6000mm/min?

When I move 200mm/min I have error 0.3mm.
Does it's possible to reduce ferror to zero or some stable value that will not depend of speed?
Last edit: 22 Oct 2020 10:01 by aleksamc.

Please Log in or Create an account to join the conversation.

Time to create page: 0.101 seconds
Powered by Kunena Forum