Start
/ k/ ?2 a4 L1 IInclude(variabledefines)4 t# z/ f% [( x5 \
Include(definedefaults)9 u$ _; i2 ?" r5 ^7 E( ], d6 l7 t/ T
RunFunction(shaftdata2)
+ T* _: i. p2 W) ~& pDefineGaugeAdjustParameters(1,1,2,1)
8 n o! O4 w3 v, p3 c# wWriteBoolean( PPB_WorkRunOff, 0)- H6 t& x) N2 k' M% G
B_Axis_Angle= 0
1 W. k* I3 A, QRunPartProgram(testturretmove)! s: ?9 c+ H! o1 U3 Q% I
WaitPartProgram()
0 _' S5 N" q QGrindClearanceRadius(1,110.0000)# X7 U* l4 D6 t$ A D
'WriteBoolean( PPB_ColdStart, 1)' p; H1 \. X! b( `
'ReadBoolean( PPB_ColdStart, ColdStart)
, Y. }: F7 g7 C0 [9 @! t$ p'IF( ColdStart > 0)
* i; w# t, n# m5 o4 k7 V8 ?'StatusMessage(1,"Gauge Calibration")
1 T. z+ L# \! ]8 u! R$ j* k. T'MoveAxis(Z2,0.0000,MoveAxis_Set1,2)
. Z3 c) T- w6 w( ~- C5 g5 A! B/ I'WriteBoolean( PPB_GageZeroing, 1)
0 B" a! p4 P( j2 [8 C& |'ReadReal( PPR_CalDiff, CalDiff)7 Q/ J5 ]* N6 g9 P! f
'GaugeSize(1,-368.00,0.0000,0.0000,266.725,0,1,1,GaugeSize_Set1,8) I( [4 f, d6 `9 E. w: y
'WriteBoolean( PPB_GageZeroing, 0). ` e" N. p8 {! i
'DefineGaugeAdjustParameters(1,1,2,1)
9 c/ `' Q9 W' _/ b'ENDIF6 }- @6 N2 [) v
'Print("CalDiff=" , CalDiff) k& M) A+ l) E
MoveAxis(Z2,WhlOffset + WWidth - 20,MoveAxis_Set1,2)
/ k0 c _7 u1 \' k+ E3 s/ u8 f''( ?- r0 d+ _/ h* _/ L" Z0 T
'LatRet= 0$ J/ W! [. g$ q* F2 O, ?' s
'LocateLateralReturnMeasurement(2,50,60.0000,0.0000,L0 + LHBody - Facestock,0.0000,LatRet,LateralLocation_Set1,6)
) X$ o4 J. x/ [4 ~% ?'Print("Lateral Return =" , LatRet)
' I% h3 q8 j9 M3 W- H; KReadBoolean( SPB_MC_SingStep, SingleStep)
# y0 b" o. ?. J- c, |- c3 FIF( SingleStep > 0)2 i8 ~% x" A5 K2 t) `: I1 Y" a
MessageBox("STOCK CHECK","Has LH body face already been ground?","If you answer 'yes' stock will be subtracted","from lateral return measurement.","",7,MessageRet)
4 d T' j6 K6 E2 ]6 r" N( N* sIF( MessageRet < 0)! i; i7 s7 U8 R
Print("No change to lateral return")( K: D/ K4 d/ o6 h2 O
ELSE5 r# ]6 y. o* _- ^! R/ g J2 S5 w
LatRet= LatRet - LHFaceStock
" i }6 L% p }Print("Lateral Return =" , LatRet)
+ M V* ^1 k# Z" x' K0 N2 rENDIF
: ]" M6 F+ r9 C) U9 C: ]6 fENDIF; P6 O N/ v9 H* O
|