Start
1 {; _) m w* }9 EInclude(variabledefines)) Z, H% Q+ z7 ~! f. S/ N
Include(definedefaults)
' C6 U: l, \' u: J. @RunFunction(shaftdata2)
% P5 x; U5 A5 w, h2 dDefineGaugeAdjustParameters(1,1,2,1)7 s9 U4 I9 A, G# _; J9 X& J
WriteBoolean( PPB_WorkRunOff, 0)
! l* z! V9 S9 a. V# W6 _B_Axis_Angle= 0! ^) M U, M$ S4 ?- `" Z: W
RunPartProgram(testturretmove)
9 y& a! T6 [, J( OWaitPartProgram()
- p2 o2 a$ H) m/ H" p5 WGrindClearanceRadius(1,110.0000)1 v. p- p8 E! @& z% `, ^: b8 m- Y$ N
'WriteBoolean( PPB_ColdStart, 1)
1 j9 t8 k! M. P) [% h; z; f2 \'ReadBoolean( PPB_ColdStart, ColdStart)
% |. S6 K8 X4 [; \( ]1 ^'IF( ColdStart > 0): V, _, F& y/ G/ H+ r$ W1 ^% N* c
'StatusMessage(1,"Gauge Calibration")
' V: x; m9 w4 [1 t/ M) e'MoveAxis(Z2,0.0000,MoveAxis_Set1,2)
6 j7 n8 g9 F e9 u% q: O'WriteBoolean( PPB_GageZeroing, 1)
4 r; ~$ n0 \3 z9 j8 R0 ['ReadReal( PPR_CalDiff, CalDiff)
/ r4 U A- ~' }, y'GaugeSize(1,-368.00,0.0000,0.0000,266.725,0,1,1,GaugeSize_Set1,8)1 ^) U' y# `* F1 m$ P
'WriteBoolean( PPB_GageZeroing, 0)
* U) ]' w" L, c9 j S. }'DefineGaugeAdjustParameters(1,1,2,1); Q# R: v ]+ ~- P: C
'ENDIF! b- a! }" T+ C
'Print("CalDiff=" , CalDiff)) V* g2 e+ O& l; c* W$ D4 R
MoveAxis(Z2,WhlOffset + WWidth - 20,MoveAxis_Set1,2)1 t1 g( D$ A* k w% j# W; n0 H
''
, s9 ^2 q% r6 I'LatRet= 0
$ C. c& i; ^1 h& U, F. D'LocateLateralReturnMeasurement(2,50,60.0000,0.0000,L0 + LHBody - Facestock,0.0000,LatRet,LateralLocation_Set1,6)' c+ D1 g7 W8 Q* G
'Print("Lateral Return =" , LatRet)
" M2 q6 D7 D# M% IReadBoolean( SPB_MC_SingStep, SingleStep)4 N; j# ~8 P8 s/ ]
IF( SingleStep > 0)7 `( l- f, Q( S5 ^' e
MessageBox("STOCK CHECK","Has LH body face already been ground?","If you answer 'yes' stock will be subtracted","from lateral return measurement.","",7,MessageRet)6 l% S4 Z: Q$ Q" {9 w# w; y$ m B0 Y
IF( MessageRet < 0)
; }" j/ l! D6 F7 d2 l+ B9 YPrint("No change to lateral return")
; t- L9 r2 y, V7 O: C/ r0 M# cELSE
5 m$ T1 l& g' w2 M: O% qLatRet= LatRet - LHFaceStock
" d5 S2 i; Y! G" L# B' K. LPrint("Lateral Return =" , LatRet)0 \, I0 y8 o& B, I0 X, R
ENDIF
( L9 ?: u+ x- AENDIF5 x7 H: N- w) _; l/ k! v4 P
|