Brother TC-225 Retrofit and Robot integration

More
03 May 2021 19:31 - 03 May 2021 20:26 #207744 by PCW
No, you need _much_ more FF1

(or set the OUTPUT_SCALE to mm/s at 10V) and FF1=1.000

If you reduce the OUTPUT_SCALE to an appropriate number (say about 400)
you would need to reduce the PID terms correspondingly (to say P=220 =11000*400/20000)
etc
Last edit: 03 May 2021 20:26 by PCW.

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

More
03 May 2021 19:44 - 03 May 2021 19:45 #207745 by bevins
/EDIT Didnt respond to last message. Disregard....
Last edit: 03 May 2021 19:45 by bevins.

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

More
03 May 2021 20:29 #207748 by andypugh
Assuming a metric machine based on the 136 in the preview, and the suggestion that this isn't a room-sized machine..
In one of the Halscope traces you have have an error of 0.015mm during a move. That's pretty good. But in others it is more like 0.5mm, which is terrible.

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

More
06 May 2021 14:30 #208120 by timfaber

No, you need _much_ more FF1

(or set the OUTPUT_SCALE to mm/s at 10V) and FF1=1.000

If you reduce the OUTPUT_SCALE to an appropriate number (say about 400)
you would need to reduce the PID terms correspondingly (to say P=220 =11000*400/20000)
etc


Ahh was wondering why my numbers where that high, thought ff1 was in mm/min.

Assuming a metric machine based on the 136 in the preview, and the suggestion that this isn't a room-sized machine..
In one of the Halscope traces you have have an error of 0.015mm during a move. That's pretty good. But in others it is more like 0.5mm, which is terrible.

What do you mean by 136 in the preview? The 0.015mm is my bad had the mouse hovering over a lower error value. Basically it is pretty bad. Will post some beter examples of f.error and feed later.
Now in my understanding the way to reduce the f.error is by increasing P, or are there other parameters that infuence it?

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

More
06 May 2021 15:02 #208129 by PCW
Getting FF1 right is the first thing,
if FF1 is wrong no amount of fussing with P,I,D will fix it
The following user(s) said Thank You: timfaber

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

More
08 May 2021 17:00 #208316 by timfaber

Getting FF1 right is the first thing,
if FF1 is wrong no amount of fussing with P,I,D will fix it


Currently i'm working on tuning the axis, set the right ff1/output scale and am pretty happy with the behavior of the x axis, will post a plot later. now for the y-axis, came across what appear to be hunting but it's in the tuning of the drive. since it also did that with the original control. now there is no documentation to be found on the original drive, so maybe trail en error will be the only way? in the attachments is a plot the y-axis.
Attachments:

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

More
08 May 2021 17:10 - 08 May 2021 17:16 #208317 by timfaber
And here is the x axis plot, cant seem to get the start/stop overshoot out with ff2. but the max f.error is around 0.006mm which seems okay i think...

[EDIT: Wrong attachment]
Attachments:
Last edit: 08 May 2021 17:16 by timfaber.

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

More
22 May 2021 12:06 #209832 by timfaber
I've got some time this weekend to work on the machine, which means new problems :dry:
Now i can't seem to control the rpm of the spindle, it always spins at max rpm. In the attachment pwmgen is 6000, encoder vel is -110 and spindle vel cmd is 60. now there seems to be some scaling error? Why does it translate vel-cmd of 60 to 6000 for pwmgen?

Furthermore, i would like to be able to orient the spindle. Now LaserK3000 has a rather complicated looking hal file for his tc215 to allow orient. I only want to be able the orient the spindle when doing a tool change.

BTW my spindle is a servo with a +-10v drive

also, is there a good way to test parts of my tool change script?
Attachments:

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

More
22 May 2021 13:10 #209835 by PCW
1. If you have forward spindle motion and the velocity is -110 you have the encoder
scale backwards. If you have any feedback (P or I or D terms not 0) you will have a runaway.

2. Encoder velocity is in RPS so -110 RPS is -6600 RPM (there is a encoder RPM velocity pin as well)

3. Can you post your current hal/ini files
The following user(s) said Thank You: timfaber

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

More
22 May 2021 13:26 - 22 May 2021 13:26 #209836 by timfaber

1. If you have forward spindle motion and the velocity is -110 you have the encoder
scale backwards. If you have any feedback (P or I or D terms not 0) you will have a runaway.

2. Encoder velocity is in RPS so -110 RPS is -6600 RPM (there is a encoder RPM velocity pin as well)

3. Can you post your current hal/ini files


Ahh cheers, the P=1 was the problem. Now the spindle works propperly, next up try to orient it.
Any advice on a good example setup or where to read up on orient?
Couldn't make much sense of the linuxcnc.org/docs/2.8/html/man/man9/orient.9.html

INI and HAL files in attachments

File Attachment:

File Name: Brother_20...5-22.hal
File Size:12 KB

File Attachment:

File Name: Brother_20...5-22.ini
File Size:4 KB
Attachments:
Last edit: 22 May 2021 13:26 by timfaber.

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

Moderators: cncbasher
Time to create page: 0.126 seconds
Powered by Kunena Forum