Start4 ]* E) E6 V5 y" p0 }3 d( r" }
Include(variabledefines)
; ~' E3 T1 k- j% C+ q4 `5 m+ k8 OInclude(definedefaults)
2 l1 U; Y1 }, J$ v, a. G2 _# I2 ~RunFunction(shaftdata2)
2 @& w6 U% |3 mDefineGaugeAdjustParameters(1,1,2,1), S3 X" Z4 B% F3 F* S2 p7 n. O( w
WriteBoolean( PPB_WorkRunOff, 0)7 ]. W% w7 v8 _! P' L7 D, N
B_Axis_Angle= 0
! r5 F; R- R" m" o8 u; G2 O$ s0 A sRunPartProgram(testturretmove)' W4 B, F$ _3 L! \8 V4 Q1 C, a9 H1 N
WaitPartProgram()0 P$ V+ ^6 r% |% q# n9 Q K; x* R' q
GrindClearanceRadius(1,110.0000)
6 R* _) u4 j% w) Q'WriteBoolean( PPB_ColdStart, 1)7 |4 Q7 T. w6 o N: M _
'ReadBoolean( PPB_ColdStart, ColdStart)
+ S, `0 B: k/ Q% p# l'IF( ColdStart > 0)
2 {. l! `. N' Q'StatusMessage(1,"Gauge Calibration")
+ H& ]! I9 y, i* g'MoveAxis(Z2,0.0000,MoveAxis_Set1,2) [6 f( o, z( f8 R
'WriteBoolean( PPB_GageZeroing, 1)
6 u4 k. A$ w; M i4 u'ReadReal( PPR_CalDiff, CalDiff)5 l; n" ^+ F7 K' D$ p: I" G# u+ R
'GaugeSize(1,-368.00,0.0000,0.0000,266.725,0,1,1,GaugeSize_Set1,8)
C! L. C3 L7 `, K% q; {'WriteBoolean( PPB_GageZeroing, 0)
/ U- ~! m2 b& k. e1 E'DefineGaugeAdjustParameters(1,1,2,1)
5 ~' x/ k% v/ A" p6 ]: O'ENDIF
) S# B+ g) L' L. x8 G+ L'Print("CalDiff=" , CalDiff)
- d0 G4 ?% i% ?' y" JMoveAxis(Z2,WhlOffset + WWidth - 20,MoveAxis_Set1,2)
/ M- A. l1 J' G' A''
) E$ k r: H% q! p% Q'LatRet= 0
6 C. O) Q% f3 I. c8 P- g$ K4 e'LocateLateralReturnMeasurement(2,50,60.0000,0.0000,L0 + LHBody - Facestock,0.0000,LatRet,LateralLocation_Set1,6)
% J7 c- N* X7 b7 K* F'Print("Lateral Return =" , LatRet)/ \+ I: b5 q# }6 L' }. f! Y0 C
ReadBoolean( SPB_MC_SingStep, SingleStep)
6 p; f5 y: _+ A7 A6 ]# \IF( SingleStep > 0)
1 m7 q0 w4 X# U8 v+ h4 }7 IMessageBox("STOCK CHECK","Has LH body face already been ground?","If you answer 'yes' stock will be subtracted","from lateral return measurement.","",7,MessageRet)4 V' x9 m" v$ D0 x
IF( MessageRet < 0)
, n3 k s- l( B. o' F e: l1 K! APrint("No change to lateral return")
9 R4 _+ G! i$ h0 s' S+ MELSE
+ g( l. n* _ ?9 eLatRet= LatRet - LHFaceStock
$ b! L; O+ K' z/ ~& z5 r" V1 QPrint("Lateral Return =" , LatRet)
# O4 S9 v5 [& R, y7 ~$ H! ~8 v+ @ENDIF
/ N- `# \0 F) R% Y, kENDIF5 b0 s1 g9 y& s3 Y
|