need some AMC analog amplifier Gain tuning help

Moderators: TomKerekes, dynomotion

turbothis
Posts: 310
Joined: Fri Mar 15, 2019 4:07 pm
Location: southern oregon

Re: need some AMC analog amplifier Gain tuning help

Post by turbothis » Fri Mar 08, 2024 8:43 pm

if i dial back the gain pots to where it is still no amount of +/-10v will move the servo any.

User avatar
TomKerekes
Posts: 2546
Joined: Mon Dec 04, 2017 1:49 am

Re: need some AMC analog amplifier Gain tuning help

Post by TomKerekes » Fri Mar 08, 2024 9:56 pm

Again, I don't think it is necessary to sit still.
Regards,

Tom Kerekes
Dynomotion, Inc.

turbothis
Posts: 310
Joined: Fri Mar 15, 2019 4:07 pm
Location: southern oregon

Re: need some AMC analog amplifier Gain tuning help

Post by turbothis » Fri Mar 08, 2024 10:14 pm

for 35$ now i will be watching more DAC info

Image

turbothis
Posts: 310
Joined: Fri Mar 15, 2019 4:07 pm
Location: southern oregon

Re: need some AMC analog amplifier Gain tuning help

Post by turbothis » Fri Mar 08, 2024 10:22 pm

TomKerekes wrote:
Fri Mar 08, 2024 9:56 pm
Again, I don't think it is necessary to sit still.
i got the servo strapped to the table
when i have Kmotion on and ready, then turn on the amp the servo will run away immediately and then following error out.....

the analog output does not even effect the drive

turbothis
Posts: 310
Joined: Fri Mar 15, 2019 4:07 pm
Location: southern oregon

Re: need some AMC analog amplifier Gain tuning help

Post by turbothis » Fri Mar 08, 2024 10:24 pm

Code: Select all

  // Z axis
    
	ch1->InputMode=ENCODER_MODE;
	ch1->OutputMode=DAC_SERVO_MODE;
	ch1->Vel=8000;
	ch1->Accel=5e+07;
	ch1->Jerk=5e+07;
	ch1->P=5;
	ch1->I=0;
	ch1->D=20;
	ch1->FFAccel=0;
	ch1->FFVel=0;
	ch1->MaxI=200;
	ch1->MaxErr=200;
	ch1->MaxOutput=2000;
	ch1->DeadBandGain=1;
	ch1->DeadBandRange=0;
	ch1->InputChan0=1;
	ch1->InputChan1=0;
	ch1->OutputChan0=1;
	ch1->OutputChan1=0;
	ch1->MasterAxis=-1;
	ch1->LimitSwitchOptions=0x114;
	ch1->LimitSwitchNegBit=11;
	ch1->LimitSwitchPosBit=0;
	ch1->SoftLimitPos=1e+09;
	ch1->SoftLimitNeg=-1e+09;
	ch1->InputGain0=1;
	ch1->InputGain1=1;
	ch1->InputOffset0=0;
	ch1->InputOffset1=0;
	ch1->OutputGain=1;
	ch1->OutputOffset=0;
	ch1->SlaveGain=1;
	ch1->BacklashMode=BACKLASH_OFF;
	ch1->BacklashAmount=0;
	ch1->BacklashRate=0;
	ch1->invDistPerCycle=1;
	ch1->Lead=0;
	ch1->MaxFollowingError=50000;
	ch1->StepperAmplitude=250;

	ch1->iir[0].B0=1;
	ch1->iir[0].B1=0;
	ch1->iir[0].B2=0;
	ch1->iir[0].A1=0;
	ch1->iir[0].A2=0;

	ch1->iir[1].B0=1;
	ch1->iir[1].B1=0;
	ch1->iir[1].B2=0;
	ch1->iir[1].A1=0;
	ch1->iir[1].A2=0;

	ch1->iir[2].B0=1;
	ch1->iir[2].B1=0;
	ch1->iir[2].B2=0;
	ch1->iir[2].A1=0;
	ch1->iir[2].A2=0;

User avatar
TomKerekes
Posts: 2546
Joined: Mon Dec 04, 2017 1:49 am

Re: need some AMC analog amplifier Gain tuning help

Post by TomKerekes » Fri Mar 08, 2024 11:42 pm

the analog output does not even effect the drive
Seems like we just keep going in circles.

Its very simple. The DAC voltage must control the level and direction of the motor torque. If it doesn't then the Drive is bad or configured wrong and there is no point in going forward and trying to Servo.

And again even though the DAC voltage can control the level and direction of torque, it may not be possible for it to "sit still" with no input.
Regards,

Tom Kerekes
Dynomotion, Inc.

turbothis
Posts: 310
Joined: Fri Mar 15, 2019 4:07 pm
Location: southern oregon

Re: need some AMC analog amplifier Gain tuning help

Post by turbothis » Sat Mar 09, 2024 1:11 am

TomKerekes wrote:
Fri Mar 08, 2024 11:42 pm
the analog output does not even effect the drive
Seems like we just keep going in circles.

The DAC voltage must control the level and direction of the motor torque. If it doesn't then the Drive is bad or configured wrong .....
you aint kidding. imagine my confusion over here. :lol:
i cant thank you enough for your help! all 6 boards i have bought over the years have been great
on the spindle, i got the servo still by lowering the current all the way down. but then no amount of analog input would drive the servo.
so i then add about 50% current limit ( spindle runs off ) and start sweeping the offset pot to get a spot it settles down to still.
now it works perfect again

Post Reply