Download Geo Brick LV User Manual
Transcript
Geo Brick LV User Manual Alternately, a more refined manual phasing method can be implemented. Knowing a good value which would lock the motors onto a phase (using the above procedure), the following example locks (in small incremental steps) the motor onto one phase then steps it back into the other phase: Manual Phasing Example 2: #define Mtr1PhasePos Mtr1PhasePos->X:$B4,0,24,S #define Mtr1PhaseErrBit Mtr1PhaseErrBit->Y:$C0,8 M171 ; Motor 1 Phase Position Register, Suggested M-Variable M148 ; Motor 1 Phasing Search Error Bit, Suggested M-Variable Open plc 1 clear I5111=100*8388608/I10 while(I5111>0) Endw P129=I129 P179=I179 I129=0 I179=0 ; Delay ; Store Ixx29, and Ixx79 ; Set ADC offsets to zero I5111=100*8388608/I10 while(I5111>0) Endw CMD"#1o0" I5111=100*8388608/I10 while(I5111>0) Endw ; Delay ; Issue #nO0 ; Delay while (I129!>1500) I129=I129+10 I179=0 I5111=100*8388608/I10 while(I5111>0) Endw Endw while (200 < ABS(M166))endw I5111=1000*8388608/I10 while(I5111>0) Endw ; Force motor to Phase A ; by pushing current incrementally ; Delay while (I179!>1500) I179=I179+10 I129=I129-10 I5111=100*8388608/I10 while(I5111>0) Endw Endw while (200 < ABS(M166))endw I5111=1000*8388608/I10 while(I5111>0) Endw ; Force motor to Phase B ; by pushing current incrementally ; Delay Mtr1PhasePos=0 I5111=250*8388608/I10 while(I5111>0) Endw CMD"#1K" I5111=100*8388608/I10 while (I5111>0) Endw I129=P129 I179=P179 Mtr1PhaseErrBit=0 I5111=500*8388608/I10 while (I5111>0) Endw Dis plc 1 Close ; ; ; ; ; ; ; ; 172 ; Wait for motor to settle ; Delay ; Wait for motor to settle ; Delay Set phase position register to zero 1/2 second delay Kill Motor Delay Restore Ixx29 and Ixx79 to original values Clear Phasing search error bit Delay Run PLC once Motor Setup