Start
: [! X9 i. t6 `, ], T8 O6 _Include(variabledefines): B- | _. Z& K9 T9 G2 O
Include(definedefaults)
% e8 ~: H' z" z5 U- |4 FRunFunction(shaftdata2)- V P, f; H M, \
DefineGaugeAdjustParameters(1,1,2,1)# G5 [- h/ Q6 @8 f E$ L) R/ A
WriteBoolean( PPB_WorkRunOff, 0)
# v. U. q2 c. R: d2 dB_Axis_Angle= 05 V; y8 G i6 B, O
RunPartProgram(testturretmove)
& l6 b) ^; m8 g1 @/ a# X0 p* WWaitPartProgram()
+ t) `! G! Z& r' [/ c7 g, }GrindClearanceRadius(1,110.0000)
2 v/ z3 n' q( |* \+ b' m'WriteBoolean( PPB_ColdStart, 1)
2 d" `2 T* F: O( ^'ReadBoolean( PPB_ColdStart, ColdStart)
8 w6 u, B1 y4 L1 P3 t! n# L'IF( ColdStart > 0)
* ^3 ^. Z; ?2 j2 X! f9 n" y4 f( e'StatusMessage(1,"Gauge Calibration")
8 y W0 @' ?1 H. r1 m'MoveAxis(Z2,0.0000,MoveAxis_Set1,2)
0 h) p! p% y: Y'WriteBoolean( PPB_GageZeroing, 1)' }: k4 X: y0 O4 C; v" ?
'ReadReal( PPR_CalDiff, CalDiff)% f7 b# N* d- g1 u
'GaugeSize(1,-368.00,0.0000,0.0000,266.725,0,1,1,GaugeSize_Set1,8)
8 ~2 E9 \3 ~9 x) s o' x'WriteBoolean( PPB_GageZeroing, 0)3 ^7 m+ E8 L( j
'DefineGaugeAdjustParameters(1,1,2,1)) {; f6 k0 O: c/ w- e
'ENDIF d; w$ y% [; c4 M9 ]$ B8 E! E
'Print("CalDiff=" , CalDiff)
a$ k) f2 M' [ \4 SMoveAxis(Z2,WhlOffset + WWidth - 20,MoveAxis_Set1,2)
: v$ }9 {) |& E''
# m- J! f3 W; g/ N8 {5 H'LatRet= 0
4 R, K \4 ?; T' x% W$ }/ l3 K'LocateLateralReturnMeasurement(2,50,60.0000,0.0000,L0 + LHBody - Facestock,0.0000,LatRet,LateralLocation_Set1,6)! j1 H4 L8 }- N* ~" z
'Print("Lateral Return =" , LatRet)
6 z7 p9 R- c' vReadBoolean( SPB_MC_SingStep, SingleStep)
+ Z' d, O& m: e/ W: y- s* k( O1 R nIF( SingleStep > 0)2 u3 {$ l. c* |$ c* ^! _% ]& T
MessageBox("STOCK CHECK","Has LH body face already been ground?","If you answer 'yes' stock will be subtracted","from lateral return measurement.","",7,MessageRet)
* G! n* t7 ^. N0 zIF( MessageRet < 0)
. `* N' C: y, p6 g; RPrint("No change to lateral return")/ u+ W4 Y2 ?, n, }; T1 Y5 w
ELSE
8 s# B- C& ]* n& N1 t1 u; CLatRet= LatRet - LHFaceStock B: S# @. |7 i0 f+ ?: F
Print("Lateral Return =" , LatRet)
. V; W' X4 h% pENDIF
7 B0 ?3 o8 D6 e! g( gENDIF4 t( \+ Q5 O, q! N2 C" u8 j& Q
|