8i20 setup current limits etc.
- M4MazakUser
- Offline
- Elite Member
Less
More
- Posts: 173
- Thank you received: 5
26 Nov 2022 11:36 #257677
by M4MazakUser
Replied by M4MazakUser on topic 8i20 setup current limits etc.
bldc.N.rotor-angle float out (default: 0)
Rotor angle after encoder zeroing etc. Useful for angle/current drives which add their own phase offset such as the 8i20. This value has a range of 0 to 1 and measures electrical revolutions. It will have two zeros for a 4 pole motor, three for a 6-pole etc
so i should be sending it this??
or do you mean this? bldc.N.encoder-offset
ill try it out when im back at the workshop with a zero lead angle.
Rotor angle after encoder zeroing etc. Useful for angle/current drives which add their own phase offset such as the 8i20. This value has a range of 0 to 1 and measures electrical revolutions. It will have two zeros for a 4 pole motor, three for a 6-pole etc
so i should be sending it this??
or do you mean this? bldc.N.encoder-offset
ill try it out when im back at the workshop with a zero lead angle.
Please Log in or Create an account to join the conversation.
- M4MazakUser
- Offline
- Elite Member
Less
More
- Posts: 173
- Thank you received: 5
28 Nov 2022 08:20 - 28 Nov 2022 08:23 #257828
by M4MazakUser
Replied by M4MazakUser on topic 8i20 setup current limits etc.
Thanks heaps, moving on to the next problem now
The issue was the angle should have been 0, and I changed the encoder input to bldc to negative to reverse the phase rotation. -important to realise that there is phase rotation direction, and encoder direction. The encoder-offset turned out to be the figure i got from connecting the motor to a 12v battery. U to +, v w to negative.
after all this, I did a quick torque mode tune and it was great!
Next issue is the x axis brake dosent want to let go. May be a broken wire...
The issue was the angle should have been 0, and I changed the encoder input to bldc to negative to reverse the phase rotation. -important to realise that there is phase rotation direction, and encoder direction. The encoder-offset turned out to be the figure i got from connecting the motor to a 12v battery. U to +, v w to negative.
after all this, I did a quick torque mode tune and it was great!
Next issue is the x axis brake dosent want to let go. May be a broken wire...
Last edit: 28 Nov 2022 08:23 by M4MazakUser. Reason: Oops
Please Log in or Create an account to join the conversation.
- M4MazakUser
- Offline
- Elite Member
Less
More
- Posts: 173
- Thank you received: 5
29 Nov 2022 08:34 #257951
by M4MazakUser
Replied by M4MazakUser on topic 8i20 setup current limits etc.
Awesome progress today!
z and x axis both working, ready to be connected to the slideways. The "iq" settings work flawlessly.
I found this morning that a small amount of water must have gotten into the bottom of the x axis servo motor during its ordeal. The brass flecks in the brake had corroded, causing it to lock to the plates inside it. A quick disassemble and cleanup fixed it and revealed that it was indeed 24vdc, not 90vdc. It's printed on the plate that you can read when you separate it from the motor.
going to reassemble the spindle on Thursday, - kluberlube and very expensive new bearings. - high precision anular contact. 5 of them 130mm od. And I need to hook up the turret to ladder and the limit switches.
z and x axis both working, ready to be connected to the slideways. The "iq" settings work flawlessly.
I found this morning that a small amount of water must have gotten into the bottom of the x axis servo motor during its ordeal. The brass flecks in the brake had corroded, causing it to lock to the plates inside it. A quick disassemble and cleanup fixed it and revealed that it was indeed 24vdc, not 90vdc. It's printed on the plate that you can read when you separate it from the motor.
going to reassemble the spindle on Thursday, - kluberlube and very expensive new bearings. - high precision anular contact. 5 of them 130mm od. And I need to hook up the turret to ladder and the limit switches.
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
- saquzi
- Offline
- Junior Member
Less
More
- Posts: 34
- Thank you received: 0
03 Mar 2023 23:31 - 03 Mar 2023 23:33 #265812
by saquzi
Replied by saquzi on topic 8i20 setup current limits etc.
Just borrowing the topic.. Issue with the settings of the 8i20. How all of them should be set if i want the maximum amps out of the thing?
I currently have original fanuc servo (10s, 8i20 should be plenty for it) on the Z-axis, and i can't seem to get enough power from it with the 8i20. Have been fiddling couple of hours with all the settings, searched the forum but haven't found any real answers for my questions. Best result I got was that the servo lifted the Z-axis just enough so that i could have removed the wood block from under it so it would drop from its own weight..
Some of the setting i have tried (nvmaxcurrent also tried with 3000, and tried to set the current maxlim 30000 etc and plenty of other combos without great success). Just would like to know, what settings for max 30a output, and maybe how to restrict that if necessary (should adjust the amps only on current-maxlim/minlim/scalemax?)
INI
[JOINT_2]
TYPE = LINEAR
HOME = 0.0
FERROR = 10.0
MIN_FERROR = 8.0
MAX_VELOCITY = 25.0
MAX_ACCELERATION = 750.0
P = 160
I = 20
D = 10
FF0 = 0
FF1 = 0
FF2 = 0.01
BIAS = 0
DEADBAND = 0.000015
MAX_OUTPUT = 3000
ENCODER_SCALE = -1000
OUTPUT_SCALE = 3276700
OUTPUT_MIN_LIMIT = -3276700
OUTPUT_MAX_LIMIT = 3276700
HAL
setp hm2_7i97.0.8i20.0.3.nvmaxcurrent 30000
setp hm2_7i97.0.8i20.0.1.current-scalemax 25
setp hm2_7i97.0.8i20.0.1.current-maxlim 25
setp hm2_7i97.0.8i20.0.1.current-minlim -25
Something else I am missing maybe? I have 315vdc bus voltage.
I currently have original fanuc servo (10s, 8i20 should be plenty for it) on the Z-axis, and i can't seem to get enough power from it with the 8i20. Have been fiddling couple of hours with all the settings, searched the forum but haven't found any real answers for my questions. Best result I got was that the servo lifted the Z-axis just enough so that i could have removed the wood block from under it so it would drop from its own weight..
Some of the setting i have tried (nvmaxcurrent also tried with 3000, and tried to set the current maxlim 30000 etc and plenty of other combos without great success). Just would like to know, what settings for max 30a output, and maybe how to restrict that if necessary (should adjust the amps only on current-maxlim/minlim/scalemax?)
INI
[JOINT_2]
TYPE = LINEAR
HOME = 0.0
FERROR = 10.0
MIN_FERROR = 8.0
MAX_VELOCITY = 25.0
MAX_ACCELERATION = 750.0
P = 160
I = 20
D = 10
FF0 = 0
FF1 = 0
FF2 = 0.01
BIAS = 0
DEADBAND = 0.000015
MAX_OUTPUT = 3000
ENCODER_SCALE = -1000
OUTPUT_SCALE = 3276700
OUTPUT_MIN_LIMIT = -3276700
OUTPUT_MAX_LIMIT = 3276700
HAL
setp hm2_7i97.0.8i20.0.3.nvmaxcurrent 30000
setp hm2_7i97.0.8i20.0.1.current-scalemax 25
setp hm2_7i97.0.8i20.0.1.current-maxlim 25
setp hm2_7i97.0.8i20.0.1.current-minlim -25
Something else I am missing maybe? I have 315vdc bus voltage.
Last edit: 03 Mar 2023 23:33 by saquzi.
Please Log in or Create an account to join the conversation.
- PCW
- Offline
- Moderator
Less
More
- Posts: 17945
- Thank you received: 4814
04 Mar 2023 01:11 #265814
by PCW
Replied by PCW on topic 8i20 setup current limits etc.
nvmaxcurrent would be 3000 for 30 A
(note, you should only set nvparameters once)
(note, you should only set nvparameters once)
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23162
- Thank you received: 4860
04 Mar 2023 12:28 #265842
by andypugh
NV parameters are programmed when the sserial channel is enabled / disabled, so try toggling the sserial-enable pin on and off if the nvram setting does not seem to be sticking.
Replied by andypugh on topic 8i20 setup current limits etc.
To elaborate, this means that once the value has been programmed, and "stuck" you should remove the nvmaxlimit from the HAL file or you will eventually wear out the nvram.nvmaxcurrent would be 3000 for 30 A
(note, you should only set nvparameters once)
NV parameters are programmed when the sserial channel is enabled / disabled, so try toggling the sserial-enable pin on and off if the nvram setting does not seem to be sticking.
Please Log in or Create an account to join the conversation.
- saquzi
- Offline
- Junior Member
Less
More
- Posts: 34
- Thank you received: 0
05 Mar 2023 00:08 #265877
by saquzi
Replied by saquzi on topic 8i20 setup current limits etc.
Yep, got it working powerwise now, lifts the Z-axis and when looking halshow it tooks about 11amps to lift with jogging, 5amps to hold still, 30amps spike when accelerating..
But now I have another question, what really annoys me and tends to be REALLY hazard. So i have 8i20 controlling the XYZ, encoders are original fanuc pulse coders with commutation output also, but I am only using the ABZ encoder. But, the problem is, that if i have not stopped the servos in the right position (poles not matching to encoder reading?(I have the linuxcnc set so it will remember last position in startup)) they will jump, usually when trying to jog in the opposite position.. Few more enable and runaways and they usually locate themself. What is the easiest fix to this, just something wrong in hall, or should i use also the grayscale encoder? or what..
And for the other important question, i have z axis brake driven now from machine enable+delay in hal, but if the linuxcnc trips and lost the sserial communication, z servo will power off BUT the 7i97 will keep the z-axis relay powered until it gets communication again. So what would be the most safest and reliable way to get the axis brake work in pretty much every situation the servo is off?
Current hal and ini attached. I already have all axis homing working ok (switch+index, atleast i think it works as it should, dont have dial indicator for now to test for sure), just have one home switch per axis, no limits.
But now I have another question, what really annoys me and tends to be REALLY hazard. So i have 8i20 controlling the XYZ, encoders are original fanuc pulse coders with commutation output also, but I am only using the ABZ encoder. But, the problem is, that if i have not stopped the servos in the right position (poles not matching to encoder reading?(I have the linuxcnc set so it will remember last position in startup)) they will jump, usually when trying to jog in the opposite position.. Few more enable and runaways and they usually locate themself. What is the easiest fix to this, just something wrong in hall, or should i use also the grayscale encoder? or what..
And for the other important question, i have z axis brake driven now from machine enable+delay in hal, but if the linuxcnc trips and lost the sserial communication, z servo will power off BUT the 7i97 will keep the z-axis relay powered until it gets communication again. So what would be the most safest and reliable way to get the axis brake work in pretty much every situation the servo is off?
Current hal and ini attached. I already have all axis homing working ok (switch+index, atleast i think it works as it should, dont have dial indicator for now to test for sure), just have one home switch per axis, no limits.
Attachments:
Please Log in or Create an account to join the conversation.
- PCW
- Offline
- Moderator
Less
More
- Posts: 17945
- Thank you received: 4814
05 Mar 2023 15:10 #265919
by PCW
Replied by PCW on topic 8i20 setup current limits etc.
The jump sound like you are not doing a BLDC search for index at startup
(you could avoid this by using the Fanuc commutation data for BLDC commutation)
If you lose sserial communications you will have a high sserial error count
you could use this to cause a LinuxCNC fault or simply enable the brake
(you could avoid this by using the Fanuc commutation data for BLDC commutation)
If you lose sserial communications you will have a high sserial error count
you could use this to cause a LinuxCNC fault or simply enable the brake
Please Log in or Create an account to join the conversation.
- M4MazakUser
- Offline
- Elite Member
Less
More
- Posts: 173
- Thank you received: 5
24 Mar 2023 00:59 #267390
by M4MazakUser
Replied by M4MazakUser on topic 8i20 setup current limits etc.
Just as a tell all, I have pretty powerful servos that are near the limit of the 8i20's, I was having trouble setting them up and wasn't able to keep position when rapid traversing. The simple remedy was
change from 1:1 to 2:1 for x and 3:1 for z. It is all belt driven anyway.
This ups the motor torque and with the fanuc motors i have, speed isn't much of an issue.
change from 1:1 to 2:1 for x and 3:1 for z. It is all belt driven anyway.
This ups the motor torque and with the fanuc motors i have, speed isn't much of an issue.
Please Log in or Create an account to join the conversation.
Time to create page: 0.106 seconds