MESA 5i23 7i44 7i49 7i37 8i20

More
08 Oct 2015 19:11 #63568 by kenny
Replied by kenny on topic MESA 5i23 7i44 7i49 7i37 8i20
At yesterdays night I partialy solved my problem.
Motor at X axis is moved and turn, but totally chaotic... ;)

Hal oscilloscope is very, very powerfull tool. B)

My problem was: not linked signal "pid.0.enable" from E-stop section. Then PID section was not enabled (not worked) and motors was not turn. Easy. :(

Yesterday I was "optimizing" parameters PID and resolver section on axis X, but not succes.

Is there any procedure to setting comutate motors, parametrize resolver and basic setting PID? (step by step)
I dont need fine tuning, I need basic + - starting parameters.

I have HW digitally signal generator, oscilloscope, power supply in my workroom (swamp) :)

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

More
08 Oct 2015 19:31 #63569 by andypugh

Is there any procedure to setting comutate motors, parametrize resolver and basic setting PID? (step by step)
I dont need fine tuning, I need basic + - starting parameters.


The first thing to do it to get the motor turning smoothly in one direction and at the same speed in the other direction.

To do this disconnect the PID from the 8i20.current pin. Then set this pin to various values from the command line.
Only when the motor turns smoothly, and at the same speed in both directions, can you start the PID tuning.
The resolver module gives very good velocity data, so checking that 0.2 amps and -0.2 amps gives the same speed is fairly easy.

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

More
09 Oct 2015 16:10 #63600 by kenny
Replied by kenny on topic MESA 5i23 7i44 7i49 7i37 8i20
Ok, but still I dont understand how I make correct comutation on the BLDC servo.
These components was working OK, but previous owner destroyed HDD with EMC2... :angry:

Facts:
1) I have ten poles BLDC motor TGN3-0205 ( www.tgdrives.cz/en/servomotors/tgn-series/tgn3/ )
2) This motor have multi-pole resolver.
3) PID I was switch OFF and dont use it temporarily.

These parameters are alright for my HW?

setp bldc.0.scale -559240
setp bldc.0.poles 10
setp bldc.0.lead-angle 0
setp bldc.0.encoder-offset 0

And where parameters I must tuned?

Thank You.

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

More
09 Oct 2015 16:23 - 09 Oct 2015 16:23 #63602 by andypugh

Ok, but still I dont understand how I make correct comutation on the BLDC servo.

Do you understand how commutation is meant to work on a brushless motor?

These parameters are alright for my HW?

setp bldc.0.scale -559240
setp bldc.0.poles 10
setp bldc.0.lead-angle 0
setp bldc.0.encoder-offset 0


I have no way to know what is right for your motor. I think that as your motor and resolver have the same number of poles you probably want to use

setp bldc.0.scale 1677216 (or -1677216)
setp bldc.0.poles 2
setp bldc.0.lead-angle 0
setp bldc.0.encoder-offset (adjust to suit)

In any case you want bldc.rotor-angle to go from 0 to 1 ten times per rev. Once that part is working then it comes down to positive or negative scale and encoder offset.
Last edit: 09 Oct 2015 16:23 by andypugh.

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

More
09 Oct 2015 18:38 #63610 by kenny
Replied by kenny on topic MESA 5i23 7i44 7i49 7i37 8i20
Last information from TG-drives manufacturer:

My motor have one pole resolver.
One turn shaft is one sin (cos) wave on the output resolver.

Zero point settings from TG-drives manufacturer:
W phase to +
V phase to -
U phase no connect
Then resolver is in zero position.

How can I this informations correctly implement to my HAL?

Thank

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

More
09 Oct 2015 19:12 - 09 Oct 2015 19:26 #63612 by andypugh

Last information from TG-drives manufacturer:
My motor have one pole resolver.


That doesn't fit with the earlier statement:

variable: hm2_5i23.0.resolver.00.angle is changed value between 0 an 1 every change mag. pole of motor (10 per rev.)
variable: hm2_5i23.0.8i20.0.0.angle is changed value between 0 and 1 every one turn shaft of motor


The resolver.angle comes directly from the resolver driver, independent of any scaling factors.
If that is the case then you should use 16777216 or -16777216 as the bldc.scale and 10 as the pole count.

Zero point settings from TG-drives manufacturer:
W phase to +
V phase to -
U phase no connect
Then resolver is in zero position.


Mesa assumes that zero is with U +, V - , W -.

UVWAngleOffset
+--00
+0-301398101
++-602796202
0+-904194304
-+-1205592405
-+01506990506
-++1808388608
-0+2109786709
--+24011184810
0-+27012582912
+-+30013981013
+-033015379114

So, looking at the difference I would expect the required encoder offset to be 12582912, -12582912, 4194304 or -4194304. (some of these are equivalent)
Last edit: 09 Oct 2015 19:26 by andypugh.

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

More
09 Oct 2015 19:30 #63615 by kenny
Replied by kenny on topic MESA 5i23 7i44 7i49 7i37 8i20
Zero in table means NC (no connect) wire?

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

More
09 Oct 2015 19:47 #63617 by andypugh
Well, no voltage on the wire at least.

If you feel like it you could check this with a current-limited PSU and halmeter.

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

More
10 Oct 2015 16:04 - 10 Oct 2015 16:38 #63650 by andypugh
I had a sudden thought this morning ...

Looking at the code on line 627 of the bldc component:
git.linuxcnc.org/gitweb?p=linuxcnc.git;a...6222c928c61a38c#l679

It is apparent that the offset is subtracted before the "poles" calculation.
This means that it would be correct if you measured the offset. (ie, rotate the motor by hand to rawcounts=0, then energise U+ V- W- and note the new rawcounts) but that the table above needs to be divided by 5 for a 10-pole motor.

It might be simplest to measure the offset, really. Though be aware that I am not sure whether to use the number returned by the test, or its negative.

This is a more complete table, and I think it finally explains to me the -950000 offset that my motors need to move, it seems to hint that the 6-pole motors have resolvers aligned to U-V+W-.
UVWAngle2-pole4-pole6-pole8-pole10-pole12-pole
+--0000000
+0-30139810169905023301658254116501941
++-6027962021398101466033116508233013883
0+-9041943042097152699050174762349525825
-+-12055924052796202932067233016466037767
-+0150699050634952531165084291271582549709
-++1808388608419430413981013495256990511650
-0+2109786709489335416311184077798155513592
--+24011184810559240518641354660339320615534
0-+270125829126291456209715252428810485717476
+-+300139810136990506233016858254211650819418
+-0330153791147689557256318564079612815921359
Last edit: 10 Oct 2015 16:38 by andypugh.

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

More
11 Oct 2015 22:50 - 11 Oct 2015 22:52 #63688 by kenny
Replied by kenny on topic MESA 5i23 7i44 7i49 7i37 8i20
I am very happy.
Last night I won the battle with BLDC servo. Because I understand cca 1% of the EMC2. :laugh:
Motor now turn precise and smoothly. juhuuuu

Very, very thank You Andy B)
setp bldc.0.scale 16777216
setp bldc.0.poles 10
setp bldc.0.lead-angle 0
setp bldc.0.encoder-offset 12582912

PGAIN = 60
IGAIN = 30
DGAIN = 0.25
DEADBAND = 0
FF0 = 0
FF1 = 0
FF2 = 0
BIAS = 0
PID tuning I will repeat in the CNC machine.


Questions:
My motors have nominal current is: 3A and maximal current is 12,7A
Where is it set?
And where is set max. (limit) speed for each axis?

Thank you


The last battle started now. I linked hw signals eg. limit, ref, e-stop etc... :(
Last edit: 11 Oct 2015 22:52 by kenny.

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

Moderators: PCWjmelson
Time to create page: 0.128 seconds
Powered by Kunena Forum