Search found 79 matches

by GabrielR922
Tue Dec 07, 2021 6:19 pm
Forum: C Programs
Topic: Feed control based on spindle load
Replies: 6
Views: 1609

Re: Feed control based on spindle load

Me again. i think the logic for the code was wrong. This seem to work, but need more testing: #define DT 3 double LAST_A; //static double T0; // remember the last time we turned on void disable_machine_overload() { double IPR = KANALOG_CONVERT_ADC_TO_VOLTS(ADC(7)) * 5; // Voltage return from VFD sta...
by GabrielR922
Tue Dec 07, 2021 5:57 pm
Forum: C Programs
Topic: Feed control based on spindle load
Replies: 6
Views: 1609

Re: Feed control based on spindle load

Hi Tom. Need one more help. I need a non-blocking way to control the maximum spindle amperage and disable the machine if it stays above X value for X time. #define DT 3 double LAST_A; void disable_machine_overload() { double IPR = KANALOG_CONVERT_ADC_TO_VOLTS(ADC(7)) * 5; // Voltage return from VFD ...
by GabrielR922
Tue Dec 07, 2021 2:46 pm
Forum: C Programs
Topic: Feed control based on spindle load
Replies: 6
Views: 1609

Re: Feed control based on spindle load

Hi Tom. The final code: int adjust_rpm; //outside funcion, global scope void controlspeed() { double IPR = KANALOG_CONVERT_ADC_TO_VOLTS(ADC(7)) * 5; // Voltage return from VFD if (IPR > 10) // if amperage > 10A { SetFROTemp(0.8); // Set feed 80% adjust_rpm = 1; // set variable to confirm feed was mo...
by GabrielR922
Mon Dec 06, 2021 8:12 pm
Forum: C Programs
Topic: Feed control based on spindle load
Replies: 6
Views: 1609

Re: Feed control based on spindle load

Hi Tom,

the kanalog is reading the "A", amperage from the motor this way:

double IPR = KANALOG_CONVERT_ADC_TO_VOLTS(ADC(7)) * 5;

Can i read the actual feedrate? to return after the adjust?

int actual_feed = "GetFRO()";

if(IPR>15)
{
SetFRO(0.8);
}else
{
SetFRO(actual_feed);
}

Thanks!
by GabrielR922
Mon Dec 06, 2021 7:37 pm
Forum: C Programs
Topic: Feed control based on spindle load
Replies: 6
Views: 1609

Feed control based on spindle load

Hi all. As I work with wood, the grain variation and wood species varies a lot in final hardness and feed requeriments. My machine has spindle load feedback and i converted it to A. The spindle is capable of 15A max load, but sometimes it can go as high as 19A in some grains. Is there a way to contr...
by GabrielR922
Fri Aug 20, 2021 7:10 pm
Forum: Configuration Issues
Topic: Axis jerk, servo tuning and capturing data
Replies: 25
Views: 4840

Re: Axis jerk, servo tuning and capturing data

Hi Tom.

This is what i have from the chinese manufator. The encoder is 24v. The paper shows 5v but it's 24v.

Is there a way to test if kanalog is able to read the return of the encoder?
by GabrielR922
Fri Aug 20, 2021 12:51 pm
Forum: Configuration Issues
Topic: Axis jerk, servo tuning and capturing data
Replies: 25
Views: 4840

Re: Axis jerk, servo tuning and capturing data

Hi Tom.
Here is the scheme for the MPG pendant.

Thanks
by GabrielR922
Wed Aug 18, 2021 11:04 pm
Forum: Configuration Issues
Topic: Axis jerk, servo tuning and capturing data
Replies: 25
Views: 4840

Re: Axis jerk, servo tuning and capturing data

Hi Tom.

The machine is capable of 45m/min. If 17hz is 4m/min it can do 170hz at 40m/min?

Also, bought a pendant that has a 24v encoder. is there a way to wire it to kanalog ?

If not, i may test with 5v even if it is 24v?

Thanks.
by GabrielR922
Wed Aug 04, 2021 5:44 pm
Forum: Configuration Issues
Topic: Axis jerk, servo tuning and capturing data
Replies: 25
Views: 4840

Re: Axis jerk, servo tuning and capturing data

Hi Tom!

The axis pitch is 40mm, 4000 / 40 = 100 rpm. It also has 2 pulleys, 2.5 to 1, 100 * 2,5 = 250rpm.

Is there a way to take away this resonance ?

Thanks!
by GabrielR922
Tue Aug 03, 2021 4:43 pm
Forum: Configuration Issues
Topic: Axis jerk, servo tuning and capturing data
Replies: 25
Views: 4840

Re: Axis jerk, servo tuning and capturing data

Hi Tom, As my knowledge in this is limited, I tried different axis tuning, modifying PID to different values while maintaining error small. And all tunings resulted in marks on the finished part. (tried different tools and holders to verify also, with different speeds I got better results. even fast...