Hi Tom,
One more question. When I first tested this, Ch6 was counting in the wrong direction. I added the following line to my init to make it count the same direction as CH1:
ch6->InputGain0=-1;
So just to be sure I dont end up missing something here, or getting a double negative and somehow end up with a runaway. Before I enable the axis again, can you confirm this is what I need:
ch1->InputMode=ENCODER_MODE;
ch1->OutputMode=DAC_SERVO_MODE;
ch1->Vel=1020000;
ch1->Accel=3500000;
ch1->Jerk=200000000;
ch1->P=2;
ch1->I=0.025;
ch1->D=0;
ch1->FFAccel=0;
ch1->FFVel=0;
ch1->MaxI=500;
ch1->MaxErr=300;
ch1->MaxOutput=1000;
ch1->DeadBandGain=0;
ch1->DeadBandRange=2;
ch1->InputChan0=6;
ch1->InputChan1=2;
ch1->OutputChan0=1;
ch1->OutputChan1=3;
ch1->MasterAxis=-1;
ch1->LimitSwitchOptions=0x10;
ch1->SoftLimitPos=1188720; // set limit to +9.75 inches
ch1->SoftLimitNeg=-1188720; // set limit to -9.75 inches
ch1->InputGain0=-1;
ch6->InputGain0=-1;
ch1->InputGain1=1;
ch1->InputOffset0=0;
ch1->InputOffset1=0;
ch1->OutputGain=-1;
ch1->OutputOffset=0;
ch1->SlaveGain=1;
ch1->BacklashMode=BACKLASH_LINEAR;
ch1->BacklashAmount=48; // 48 for 0.0004" 12.192 COUNTS PER TENTH
ch1->BacklashRate=2000;
ch1->invDistPerCycle=1;
ch1->Lead=0;
ch1->MaxFollowingError=150; // reduced from 300 to hopefully trip if loosing counts
ch1->StepperAmplitude=250;
//Pole zero 45, 180
ch1->iir[0].B0=14.849600;
ch1->iir[0].B1=-28.946699;
ch1->iir[0].B2=14.106600;
ch1->iir[0].A1=1.804700;
ch1->iir[0].A2=-0.814233;
ch1->iir[1].B0=1.000000;
ch1->iir[1].B1=0.000000;
ch1->iir[1].B2=0.000000;
ch1->iir[1].A1=0.000000;
ch1->iir[1].A2=0.000000;
//Low pass 500
ch1->iir[2].B0=0.123861;
ch1->iir[2].B1=0.123861;
ch1->iir[2].B2=0.000000;
ch1->iir[2].A1=0.752278;
ch1->iir[2].A2=0.000000;