Omron CK3W-AX2323 Series Startup Manual page 24

Directpwm interface
Hide thumbs Also See for CK3W-AX2323 Series:
Table of Contents

Advertisement

3 DirectPWM Interface Connection Procedure
Sys.WpKey=$0
//Motor setting
Motor[1].ServoCtrl = 1; //Enable the Motor[1]
.
Motor[1].PhaseCtrl = 1; //Enable the commutat
ion task.
Motor[1].pPhaseEnc = Gate3[0].Chan[0].PhaseCa
pt.a; //*11
Motor[1].PhasePosSf = 2048/(256*2000*4/5); //
*12
Motor[1].PwmSf = 13458; //*13
Motor[1].PhaseOffset = 683; //*14
Motor[1].AmpFaultLevel = 1; //*15
Motor[1].pLimits = 0; //Disable the Overtrave
l limit.
Motor[1].WarnFeLimit = 4000; //*16
Motor[1].FatalFeLimit = 8000; //*17
Motor[1].pAmpEnable = Gate3[0].Chan[0].OutCtr
l.a;
Motor[1].pAmpFault = Gate3[0].Chan[0].Status.
a;
Motor[1].pCaptFlag = Gate3[0].Chan[0].Status.
a;
Motor[1].pCaptPos = Gate3[0].Chan[0].HomeCapt
.a;
Motor[1].pEncCtrl = Gate3[0].Chan[0].OutCtrl.
a;
Motor[1].pEncStatus = Gate3[0].Chan[0].Status
.a;
Motor[1].pMasterEnc = EncTable[1].a;
Motor[1].CurrentNullPeriod = 0; //*18
Motor[1].pEnc = EncTable[1].a //*19
Motor[1].pEnc2 = EncTable[1].a //*20
Motor[1].pDac = Gate3[0].Chan[0].Pwm[0].a; //
*21
Motor[1].pAdc = Gate3[0].Chan[0].AdcAmp[0].a;
//*22
Motor[1].AdcMask = $FFFF0000; //*23
Motor[1].MaxDac = 28377 * 3.33 / 16.25; //*24
Motor[1].I2tSet = 28377 * 1.1 / 16.25; //*25
Motor[1].I2tTrip = (Motor[1].MaxDac * Motor[1
].MaxDac -Motor[1].I2tSet * Motor[1].I2tSet)
* 3; //*26
Motor[1].AbsPhasePosOffset = 400; //*27
Motor[1].PhaseFindingDac = 400; //*28
Motor[1].PhaseFindingTime = 1000; //*29
Motor[1].PowerOnMode=0; //*30
Motor[1].InPosBand = 100;
// Setting Coordinate System
&1
#1->x
&1%100;
3-10
CK3M/CK5M Series Startup Guide DirectPWM Interface (O047)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ck3w-ax1313 seriesCk m-cpu1 1 seriesCk3w-ax series

Table of Contents