- Posts: 235
- Thank you received: 0
Halscope tuning servos Question
7 years 11 months ago #121070
by jamby
Halscope tuning servos Question was created by jamby
BigJohnT
I have been reading your tutorial on "Servo Tuning Tutorial" and I am afraid between it and the "Hal Tutorial" I have been pushed into the group named : Thick as a Brick.
Background:
Mill is a 1985 Alliant knee mill (bridgeport clone),
SEM servo motors w/tacho, westamp boards, anilam A-10
glass scales. Mesa 5i25-7i77
GA-J1900n mobo, Wheezy, realtime-3.4-9-rtai-686-pae,
Linuxcnc from github master.
Axis 2.8.0-pre1.4032-g7626740
Now I open Linuxcnc and goto machine>halscope and start it. Accept Select Sample Rate by pressing OK and the Halscope opens. I pick Channel 1 and the list of channel selections opens. But here's the rub, the list I am seeing under pins, signals, and parameters doesn't seem to include any of the values shown in the tutorial.
I've been unable to find axis.1.joint-vel-cmd or any of the others? Is there some other list that i should be looking to?
Once halscope is set up and in use are you using a trigger or is the machine being used by jog or MDI to create the input?
Thanks
Jim
I have been reading your tutorial on "Servo Tuning Tutorial" and I am afraid between it and the "Hal Tutorial" I have been pushed into the group named : Thick as a Brick.
Background:
Mill is a 1985 Alliant knee mill (bridgeport clone),
SEM servo motors w/tacho, westamp boards, anilam A-10
glass scales. Mesa 5i25-7i77
GA-J1900n mobo, Wheezy, realtime-3.4-9-rtai-686-pae,
Linuxcnc from github master.
Axis 2.8.0-pre1.4032-g7626740
Now I open Linuxcnc and goto machine>halscope and start it. Accept Select Sample Rate by pressing OK and the Halscope opens. I pick Channel 1 and the list of channel selections opens. But here's the rub, the list I am seeing under pins, signals, and parameters doesn't seem to include any of the values shown in the tutorial.
I've been unable to find axis.1.joint-vel-cmd or any of the others? Is there some other list that i should be looking to?
Once halscope is set up and in use are you using a trigger or is the machine being used by jog or MDI to create the input?
Thanks
Jim
Please Log in to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
-
Less
More
- Posts: 4739
- Thank you received: 2
7 years 11 months ago #121074
by Todd Zuercher
Replied by Todd Zuercher on topic Halscope tuning servos Question
Part of your problem is that the tutorial was written long before the joint/axis split in Master that you are using. So all of the pin names mentioned in the tutorial are using the old naming scheme. For example the pin you are looking for "axis.1.joint-vel-cmd" was renamed to "joint.1.joint−vel−cmd".
For the most part, I think most of the pin names you are looking for and can't find will have been renamed with the "axis" at the begining renamed to "joint".
For the most part, I think most of the pin names you are looking for and can't find will have been renamed with the "axis" at the begining renamed to "joint".
Please Log in to join the conversation.
7 years 11 months ago #121092
by jamby
Replied by jamby on topic Halscope tuning servos Question
Todd
Thanks I did find these joint items under "pins" that look like them:
axis.1.joint-vel-cmd : joint.0.vel-cmd
axis.1.f-error : joint.0.f-error
axis.1.motor-pos-cmd : joint.0.motor-pos-cmd
axis.1.motor-fb : joint.0.motor-fb
Note: the joint.0 is for X on my machine joint.1 is Y
I'll continue trying this tomorrow.
Jim
Thanks I did find these joint items under "pins" that look like them:
axis.1.joint-vel-cmd : joint.0.vel-cmd
axis.1.f-error : joint.0.f-error
axis.1.motor-pos-cmd : joint.0.motor-pos-cmd
axis.1.motor-fb : joint.0.motor-fb
Note: the joint.0 is for X on my machine joint.1 is Y
I'll continue trying this tomorrow.
Jim
Please Log in to join the conversation.
7 years 11 months ago #121139
by andypugh
Replied by andypugh on topic Halscope tuning servos Question
You can see a list of old - to - new pin names in the script that does the HAL file conversion:
github.com/LinuxCNC/linuxcnc/blob/master...ipts/update_ini#L370
github.com/LinuxCNC/linuxcnc/blob/master...ipts/update_ini#L370
Please Log in to join the conversation.
7 years 11 months ago #121159
by jamby
Replied by jamby on topic Halscope tuning servos Question
Andy thanks
Okay I went out to the shop and played with the halscope and used these PINs
joint.0.motor-pos-cmd
joint.0.motor-fb
joint.0.vel-cmd
joint.0.f-error
these are for X axis on my machine and the readings below are with 1.0 inch at rapid / 60 ipm and 0.5 inch same fedrat.
Oddly the oscilloscope only responded to + movements.
It took me a while to learn which sliders to use to get the correct, well to match the example in "Servo Tuning Tutorial" but this is as close as I could get
I still can figure out what to do to get a channel back if I push the "Chan Off" button? yes I just had to push it.
I recovered by deleting the autosave file
1.0 inches in X axis at rapid/60 inch per minute. G0 G91 X1
0.5 inches in X axis at rapid/60 inch per minute. G0 G91 X0.5
They look good to me but what do I know?
Thanks guys
Jim
Okay I went out to the shop and played with the halscope and used these PINs
joint.0.motor-pos-cmd
joint.0.motor-fb
joint.0.vel-cmd
joint.0.f-error
these are for X axis on my machine and the readings below are with 1.0 inch at rapid / 60 ipm and 0.5 inch same fedrat.
Oddly the oscilloscope only responded to + movements.
It took me a while to learn which sliders to use to get the correct, well to match the example in "Servo Tuning Tutorial" but this is as close as I could get
I still can figure out what to do to get a channel back if I push the "Chan Off" button? yes I just had to push it.
I recovered by deleting the autosave file
1.0 inches in X axis at rapid/60 inch per minute. G0 G91 X1
Attachment not found
0.5 inches in X axis at rapid/60 inch per minute. G0 G91 X0.5
Attachment not found
They look good to me but what do I know?
Thanks guys
Jim
Please Log in to join the conversation.
7 years 11 months ago #121161
by alan_3301
Replied by alan_3301 on topic Halscope tuning servos Question
do it over with the ferror gain set to 100m or 200m / div
Please Log in to join the conversation.
7 years 11 months ago #121162
by alan_3301
Replied by alan_3301 on topic Halscope tuning servos Question
or if necessary even higher to 5m / div
Please Log in to join the conversation.
7 years 11 months ago #121176
by jamby
Replied by jamby on topic Halscope tuning servos Question
alan_3301
I reran the scope and paid attention to having the trigger set to channel 3 and then to select channel 4 joint.0.f-error so its the active one. Once I ran the machine again and a new plot returned I found I could move the gain slider up and down and see the curve generated from different angles.
Here's the better one.
I also learned to save a file for each axis so I didn't have to keep reloading the channels.
Thanks for the help
Jim
I reran the scope and paid attention to having the trigger set to channel 3 and then to select channel 4 joint.0.f-error so its the active one. Once I ran the machine again and a new plot returned I found I could move the gain slider up and down and see the curve generated from different angles.
Here's the better one.
Attachment not found
I also learned to save a file for each axis so I didn't have to keep reloading the channels.
Thanks for the help
Jim
Please Log in to join the conversation.
7 years 11 months ago #121178
by PCW
Replied by PCW on topic Halscope tuning servos Question
Looks like you need (adjust in this order)
1. Higher FF1 ( adjust for 0 error during constant speed motion )
(if the following error is in the direction of velocity you need more FF1,
if the following error is in the opposite direction of velocity, you need less FF1 )
2. Higher P term ( adjust till its unstable then back off maybe 30% )
Easiest way to adjust things live is via the calibrate menu
1. Higher FF1 ( adjust for 0 error during constant speed motion )
(if the following error is in the direction of velocity you need more FF1,
if the following error is in the opposite direction of velocity, you need less FF1 )
2. Higher P term ( adjust till its unstable then back off maybe 30% )
Easiest way to adjust things live is via the calibrate menu
Please Log in to join the conversation.
7 years 11 months ago #121343
by jamby
Replied by jamby on topic Halscope tuning servos Question
PCW
Well I've been playing with the halscope and I am feeling better about what I am seeing.
My Machine
Because of the old anilam glass scales the axis have a "dither" of about .0004 which the current setting seems to help and since this is a hobby machine I am not nearly as picky as a production machine.
Here's some current scopes:
this is at 20 ipm (short jog)
this is at 7 ipm (short jog)
this is the calibration screen
Thanks
Jim
Well I've been playing with the halscope and I am feeling better about what I am seeing.
My Machine
a 1985 Alliant knee mill (bridgeport clone),
SEM servo motors w/tacho, westamp boards, anilam A-10
glass scales. Mesa 5i25-7i77
GA-J1900n mobo, Wheezy, realtime-3.4-9-rtai-686-pae,
Linuxcnc from github master.
Axis 2.8.0-pre1.4032-g7626740
Because of the old anilam glass scales the axis have a "dither" of about .0004 which the current setting seems to help and since this is a hobby machine I am not nearly as picky as a production machine.
Here's some current scopes:
this is at 20 ipm (short jog)
Attachment not found
this is at 7 ipm (short jog)
Attachment not found
this is the calibration screen
Attachment not found
Thanks
Jim
Please Log in to join the conversation.
Time to create page: 0.133 seconds
