Start
+ W, U+ k9 I5 gInclude(variabledefines)
+ Y1 B( K$ l$ S) S5 _Include(definedefaults)) P8 _ ~+ y- w6 [2 i/ _0 i6 x8 {
RunFunction(shaftdata2)
; N' [( T# O8 c9 ?3 XDefineGaugeAdjustParameters(1,1,2,1)
3 X( U/ ?0 ], b" PWriteBoolean( PPB_WorkRunOff, 0); G* g( X- L; k4 M) |& V
B_Axis_Angle= 0
* Y: c8 j- L) j. Z9 a1 ^7 }7 B8 ^RunPartProgram(testturretmove)3 C4 `0 J0 Z' z7 I
WaitPartProgram()
& f1 M" v& I7 o% O {( ^GrindClearanceRadius(1,110.0000)
; j* U0 S+ ?) V1 U'WriteBoolean( PPB_ColdStart, 1)- D0 \6 C7 Q- B
'ReadBoolean( PPB_ColdStart, ColdStart)
1 `9 \, _" n9 F) D/ `$ y'IF( ColdStart > 0)
# \) I" w, N- ^7 W'StatusMessage(1,"Gauge Calibration")
+ \$ k* S8 z- ~; U$ K* c1 Y'MoveAxis(Z2,0.0000,MoveAxis_Set1,2)
7 U4 v, b% s: I" u# f+ k'WriteBoolean( PPB_GageZeroing, 1)0 y8 S5 S( A6 J2 Y2 U/ J
'ReadReal( PPR_CalDiff, CalDiff): |4 A! x6 q$ ?& r$ ~
'GaugeSize(1,-368.00,0.0000,0.0000,266.725,0,1,1,GaugeSize_Set1,8)1 t' b0 V5 m7 {+ ^6 C
'WriteBoolean( PPB_GageZeroing, 0)) ]$ A6 H6 V: S4 F
'DefineGaugeAdjustParameters(1,1,2,1)
& r" R: U! N' i. A'ENDIF
: Q3 k- v! o$ Z, ]'Print("CalDiff=" , CalDiff)
) P- m3 Q2 }% r9 k9 N/ eMoveAxis(Z2,WhlOffset + WWidth - 20,MoveAxis_Set1,2)
( ^# }: u, |4 L% F0 K; P''( e2 y/ [8 v1 H* r! o
'LatRet= 0+ T9 h7 _" @+ f9 K" K; E8 f
'LocateLateralReturnMeasurement(2,50,60.0000,0.0000,L0 + LHBody - Facestock,0.0000,LatRet,LateralLocation_Set1,6). C3 M6 `4 z* P) }) Z% N5 N
'Print("Lateral Return =" , LatRet)
0 V1 X' h; W. w- M2 BReadBoolean( SPB_MC_SingStep, SingleStep)! P" n; k3 A- Y/ [, O
IF( SingleStep > 0)
" W) r& q' b2 F- `4 v: aMessageBox("STOCK CHECK","Has LH body face already been ground?","If you answer 'yes' stock will be subtracted","from lateral return measurement.","",7,MessageRet)+ |! p" ?5 h! m1 C
IF( MessageRet < 0)
6 t/ k) T Z5 f- C4 oPrint("No change to lateral return")
5 {1 L0 i% ?2 @6 U8 i. k* bELSE' C \7 G+ I1 Z9 s O. d
LatRet= LatRet - LHFaceStock% ^$ b6 I4 R& ], c
Print("Lateral Return =" , LatRet)
2 M- c [& n% q% fENDIF
3 E; s( v+ a Z) |* tENDIF8 b& g1 k2 D8 e% _
|