Control AC servo by analog signal use PID
- thang
- Offline
- Elite Member
Less
More
- Posts: 196
- Thank you received: 11
03 Apr 2018 15:31 #108313
by thang
Control AC servo by analog signal use PID was created by thang
I'm trying to control position an AC servo by analog voltage signal.
My system has: Driver + AC servo configured speed control, 1 combo MESA 5i25+7i74+7i83 for analog signal output.
I'm using PID to control position and connect Hal pin like:
joint.0.motor-pos-cmd -> pid.0.cmd/pid.0.output ->hm2_5i25.0.7i83.0.0.analogout0
hm2_5i25.0.encoder.00.position ->pid.0.feedback->joint.0.motor-pos-fb
There is an error when i manual tuning PID, exactly tuning P, motor always run overshot commanded position then run back, changing P will change motor speed when motor run back. Are there anyone have experience about this bug ?
Here is my configure file:
My system has: Driver + AC servo configured speed control, 1 combo MESA 5i25+7i74+7i83 for analog signal output.
I'm using PID to control position and connect Hal pin like:
joint.0.motor-pos-cmd -> pid.0.cmd/pid.0.output ->hm2_5i25.0.7i83.0.0.analogout0
hm2_5i25.0.encoder.00.position ->pid.0.feedback->joint.0.motor-pos-fb
There is an error when i manual tuning PID, exactly tuning P, motor always run overshot commanded position then run back, changing P will change motor speed when motor run back. Are there anyone have experience about this bug ?
Here is my configure file:
Please Log in or Create an account to join the conversation.
- PCW
- Offline
- Moderator
Less
More
- Posts: 18010
- Thank you received: 4846
03 Apr 2018 17:01 #108325
by PCW
Replied by PCW on topic Control AC servo by analog signal use PID
This is not really a bug, in fact it is expected if FF1 is too high.
If you are using velocity mode control, one of the the most important PID tuning parameters
is FF1. This tutorial has a good outline of velocity mode tuning:
gnipsel.com/linuxcnc/tuning/servo.html
If you are using velocity mode control, one of the the most important PID tuning parameters
is FF1. This tutorial has a good outline of velocity mode tuning:
gnipsel.com/linuxcnc/tuning/servo.html
The following user(s) said Thank You: thang
Please Log in or Create an account to join the conversation.
- thang
- Offline
- Elite Member
Less
More
- Posts: 196
- Thank you received: 11
04 Apr 2018 15:41 #108383
by thang
Replied by thang on topic Control AC servo by analog signal use PID
it worked, great.
Which way i should to do to tuning all parameter, tuning P -> I -> D -> FFn or P -> FFn -> I ->D ?
Which way i should to do to tuning all parameter, tuning P -> I -> D -> FFn or P -> FFn -> I ->D ?
Please Log in or Create an account to join the conversation.
Time to create page: 0.045 seconds