Start4 e6 A" B! X4 g4 A/ }
Include(variabledefines)( Y; A1 u' V% o x0 C ?/ _' m
Include(definedefaults)
8 q& E+ d( i& T! cRunFunction(shaftdata2)
: b4 q5 U! F. |* JDefineGaugeAdjustParameters(1,1,2,1)- k( D. Q" x" p4 l( t$ t
WriteBoolean( PPB_WorkRunOff, 0)/ D1 S9 z9 c4 u
B_Axis_Angle= 0
% c4 c% Z9 G( C' W7 h2 i; \RunPartProgram(testturretmove)7 T6 \* V m+ g
WaitPartProgram()
8 ]# C, r: o. Q1 K' H( _GrindClearanceRadius(1,110.0000)
! D3 @( M8 K, ]'WriteBoolean( PPB_ColdStart, 1)
3 d" c7 [2 t0 ?4 b'ReadBoolean( PPB_ColdStart, ColdStart) U6 N: [, j% B( v
'IF( ColdStart > 0)
# e0 M7 Z7 t7 G5 N+ g9 T'StatusMessage(1,"Gauge Calibration")
- f7 V0 V9 S% C8 n'MoveAxis(Z2,0.0000,MoveAxis_Set1,2)
8 {$ `& G3 d0 ~& I: |& e2 B5 H! E8 j'WriteBoolean( PPB_GageZeroing, 1)
! X: _0 C0 B( ['ReadReal( PPR_CalDiff, CalDiff)
7 L/ t- j+ p9 C, { ~'GaugeSize(1,-368.00,0.0000,0.0000,266.725,0,1,1,GaugeSize_Set1,8)
) c! C6 j4 ^; Y# J'WriteBoolean( PPB_GageZeroing, 0)' `5 N& c0 m L9 S* t7 q
'DefineGaugeAdjustParameters(1,1,2,1)
! k* F# A! Z3 C5 v/ q'ENDIF% l5 J# s% m5 a3 w+ v5 Q3 y% I
'Print("CalDiff=" , CalDiff)4 O1 X. d$ l$ V) L3 b) m) l U
MoveAxis(Z2,WhlOffset + WWidth - 20,MoveAxis_Set1,2)
7 n7 S! V+ {- s6 P, b6 m3 T) u'' I( [# J/ a" X3 h
'LatRet= 09 i" \& \/ v" ~
'LocateLateralReturnMeasurement(2,50,60.0000,0.0000,L0 + LHBody - Facestock,0.0000,LatRet,LateralLocation_Set1,6)8 ^! F. h* \5 o' @
'Print("Lateral Return =" , LatRet)
2 X+ \* c$ C' v+ XReadBoolean( SPB_MC_SingStep, SingleStep)
1 @ l }, P# GIF( SingleStep > 0)
/ X! S+ `7 [+ w1 k7 O( z1 O% WMessageBox("STOCK CHECK","Has LH body face already been ground?","If you answer 'yes' stock will be subtracted","from lateral return measurement.","",7,MessageRet)
! D# c+ ~4 g, o! B- W, EIF( MessageRet < 0)
' \8 L% s/ e# `Print("No change to lateral return")
2 V! P8 u& ^6 c4 LELSE
, B8 W) P/ F, X3 s1 v3 F8 WLatRet= LatRet - LHFaceStock% z4 L2 O" t& o2 ]4 Z, ]
Print("Lateral Return =" , LatRet)
! p, Z3 G3 C" O/ nENDIF
7 x/ |/ C3 s+ S8 w: ?' y7 w+ QENDIF
) ^# y0 A; b+ \- T. |" S |