SFELPHOTON-1190:minor changes

This commit is contained in:
2024-06-25 06:58:20 +02:00
parent 08872841b5
commit f943790af7
2 changed files with 3 additions and 5 deletions

View File

@@ -147,7 +147,7 @@ open plc PLC_HomingCY
Motor[3].pLimits=0
Motor[3].HomeVel=1
Motor[3].HomeOffset=-1000
Motor[3].HomeOffset=-1500
timer = Sys.RunTime + 2. ;while (Sys.RunTime < timer){} //wait x sec
statusHoming|=1
home3 //homing to +lim, moving to relative position HomeOffset=-1000 and set this position to 0
@@ -164,9 +164,7 @@ open plc PLC_HomingCY
statusHoming|=4
timer = Sys.RunTime + 1.;while (Sys.RunTime < timer){} //wait x sec
Motor[3].pLimits=PowerBrick[0].Chan[2].Status.a //seset limit switches
Motor[3].HomePos-=14000 //set this position to 14000um
//timer = Sys.RunTime + 2.;while (Sys.RunTime < timer){} //wait x sec
//jog3:-1000 // move 1000um out of limit switch
Motor[3].HomePos-=29000 //set this position to 29000um
statusHoming|=8
disable plc PLC_HomingCY
close

View File

@@ -106,7 +106,7 @@ Motor[2].pEncLoss=0
//!encoder_inc(enc=3,tbl=11,mot=11,posSf=1)
!encoder_inc(enc=3,tbl=3,mot=3,posSf=0.25)
!motor_servo(mot=3,ctrl='ServoCtrl',Kp=10,Kvfb=0,Ki=0.0,Kvff=0,Kaff=0,MaxInt=1000,Kfff=0)
!motor(mot=3,dirCur=0,contCur=1000,peakCur=2000,timeAtPeak=1,IiGain=1,IpfGain=3,IpbGain=3,JogSpeed=12.,numPhase=2,invDir=False,servo=None,PhasePosSf=0,PhaseFindingDac=0,PhaseFindingTime=0,SlipGain=0,AdvGain=0,PwmSf=10000,FatalFeLimit=3000,WarnFeLimit=1000,InPosBand=50,homing='hi-limit',FaultMode=0)
!motor(mot=3,dirCur=0,contCur=1000,peakCur=2000,timeAtPeak=1,IiGain=1,IpfGain=3,IpbGain=3,JogSpeed=12.,numPhase=2,invDir=False,servo=None,PhasePosSf=0,PhaseFindingDac=0,PhaseFindingTime=0,SlipGain=0,AdvGain=0,PwmSf=10000,FatalFeLimit=3000,WarnFeLimit=1000,InPosBand=50,homing='hi-limit')
Motor[3].Servo.Kp=20
Motor[3].Servo.BreakPosErr=1
Motor[3].Servo.KBreak=10