_STEP 2 0 1
TEMPMAX := __DINT_NULL 
_STEP 2 0 3
__LOOPTMPB1 := FALSE 
CALINDEX := __CDINT00000001 
__LAB5 : 
_IF __LOOPTMPB1 _GOTO __LAB6 
__LAB1 : 
__TMPB1 := __CDINT00000001 < __DINT_NULL 
_IF __TMPB1 _GOTO __LAB2 
__TMPB2 := CALINDEX > __CDINT0000000A 
_IF __TMPB2 _GOTO __LAB4 
_GOTO __LAB3 
__LAB2 : 
__TMPB2 := CALINDEX < __CDINT0000000A 
_IF __TMPB2 _GOTO __LAB4 
__LAB3 : 
_STEP 2 0 4
__BOUNDCHK 10 1 CALINDEX 
__TMPI1 := CALINDEX - __CDINT00000001 
__TMPI1 := __TMPI1 * __CDINT00000004 
__TMPR1 := CALIBRATIONLEVEL [ __TMPI1 ]
__TMPB3 := __TMPR1 <> __TMPR2 
_IF _NOT __TMPB3 _GOTO __LAB7 
_STEP 2 0 5
TEMPMAX := CALINDEX 
_GOTO __LAB8 
__LAB7 : 
__LAB8 : 
_STEP 2 0 7
__LOOPTMPB1 := TRUE 
_GOTO __LAB5 
__LAB6 : 
__LOOPTMPB1 := FALSE 
CALINDEX := CALINDEX + __CDINT00000001 
_GOTO __LAB5 
__LAB4 : 
_STEP 2 0 8
FINDNUMBEROFCALPOINTS := TEMPMAX 
