Delta Tau GEO BRICK LV User Manual

Page of 271
Geo Brick LV User Manual
 
Motor Setup 
 186 
  Ixx08=108+(ChNo-1)*100 
  Mxx71=171+(ChNo-1)*100 
  PhaseErrBit=148+(ChNo-1)*100 
  I5111= 100*8388608/I10 while(I5111>0) endw 
  // Compute position offset from user force phase test input 
  PhaseOffset=P(PhaseTest)%P(MtrSF) 
  PhaseOffset=PhaseOffset*I(Ixx70) 
  PhaseOffset=PhaseOffset%I(Ixx71) 
  I5111= 100*8388608/I10 while(I5111>0) endw 
  // Compute present phase position 
  PresPhasePos=M(ActPos)/(I(Ixx08)*32) 
  PresPhasePos=PresPhasePos%P(MtrSF) 
  PresPhasePos=PresPhasePos*I(Ixx70) 
  PresPhasePos=PresPhasePos%I(Ixx71) 
  I5111= 100*8388608/I10 while(I5111>0) endw 
  // Correct for Mxx71 to apply power-on phasing, and clear phase error search bit 
  M(Mxx71)=(PresPhasePos-PhaseOffset)%I(Ixx71) 
  M(PhaseErrBit)=0 
  I5111= 100*8388608/I10 while(I5111>0) endw 
 EndIf 
Endw  
Dis plc 1 
close 
//=========================================================================================//