Start
2 T0 u9 Q9 u6 E& M; V; rInclude(variabledefines)
9 b' K7 Y* Q" S7 F6 h eInclude(definedefaults)% u8 y1 w0 Y# n( h7 Q" w$ h; E
RunFunction(shaftdata2)
7 V+ O1 f4 W- {6 z6 xDefineGaugeAdjustParameters(1,1,2,1)( G9 H: E# f4 U+ D+ W, k' K
WriteBoolean( PPB_WorkRunOff, 0)4 U; P2 O. t8 A* b" }
B_Axis_Angle= 0
) `5 Z; e& {2 J2 z S: sRunPartProgram(testturretmove)
' F" Q7 p( w" B5 F$ x `WaitPartProgram()8 q( X+ ~) O W" W9 x: W
GrindClearanceRadius(1,110.0000)% Z6 N7 U0 R8 J/ I8 f
'WriteBoolean( PPB_ColdStart, 1)# W: t4 j/ L" {$ _
'ReadBoolean( PPB_ColdStart, ColdStart)1 n. O; @' Y$ S1 _1 m
'IF( ColdStart > 0)9 r: d' B4 z0 m
'StatusMessage(1,"Gauge Calibration")
% R( x) q0 o, k# L6 V# z& a'MoveAxis(Z2,0.0000,MoveAxis_Set1,2)
2 _& f. S- R/ f9 b4 n9 x0 }'WriteBoolean( PPB_GageZeroing, 1): d4 ~* U2 L4 K. H( g( C* }2 A
'ReadReal( PPR_CalDiff, CalDiff)$ P% W2 `, K) |4 r* `* L
'GaugeSize(1,-368.00,0.0000,0.0000,266.725,0,1,1,GaugeSize_Set1,8)
. v# L1 T5 v3 U7 d t'WriteBoolean( PPB_GageZeroing, 0). H- ?) P6 C, X1 S
'DefineGaugeAdjustParameters(1,1,2,1)
3 g1 s9 ~! p. u4 Z( z" W: T$ b$ J'ENDIF2 W4 P3 a$ C( f6 n o. l: U
'Print("CalDiff=" , CalDiff)" o1 ~- V2 b; H0 s/ p
MoveAxis(Z2,WhlOffset + WWidth - 20,MoveAxis_Set1,2)# x1 i% |8 c( z* T, V. X: @* v& r
''8 X9 L2 C* o E! ]
'LatRet= 06 O9 B# c1 j" H$ \
'LocateLateralReturnMeasurement(2,50,60.0000,0.0000,L0 + LHBody - Facestock,0.0000,LatRet,LateralLocation_Set1,6)
4 c& ^4 r% w+ B" {1 ~+ L'Print("Lateral Return =" , LatRet)
. k2 D6 a) _8 ~3 F6 c2 Y. IReadBoolean( SPB_MC_SingStep, SingleStep)
# h. ^ [& C8 S6 CIF( SingleStep > 0)
; O4 S: r$ O& V2 _% D7 yMessageBox("STOCK CHECK","Has LH body face already been ground?","If you answer 'yes' stock will be subtracted","from lateral return measurement.","",7,MessageRet)$ ^6 m$ d! N# A6 Y, q
IF( MessageRet < 0)
7 M1 |2 P2 L; V. rPrint("No change to lateral return")
, E4 M D- `1 u( ], oELSE% D& l* m( p# }5 s
LatRet= LatRet - LHFaceStock$ x& o! m2 r% i- X
Print("Lateral Return =" , LatRet)
9 U; l" B3 A1 _/ \ENDIF( t) f7 p8 X; a0 U
ENDIF
; {, e& T# c) [. e: m5 K5 b9 ` |