time2 ReadTimeDateP_Short(void) { QueryOpenP(); if (ElsInput(1) != SER_GOODCHECK) return GetTime2Error(); DelayOff(); QueryModeP(); if (ElsInput(0) != SER_GOODCHECK) return GetTime2Error(); DelayOff(); QueryPasswordP(); if (ElsInput(2) != SER_GOODCHECK) return GetTime2Error(); DelayOff(); QueryTimeP(); if (ElsInput(0) != SER_GOODCHECK) return GetTime2Error(); QueryCloseP(); return GetTime2(ReadTimeP(), true); }
time2 ReadTimeDateC_Short(void) { DelayOff(); QueryTimeC(); if (RevInput() != SER_GOODCHECK) return GetTime2Error(); return GetTime2(ReadTimeC(), true); }
time2 ReadTimeCanS(void) { Clear(); time2 ti2 = QueryTimeS_Full(50); if (ti2.fValid == false) return GetTime2Error(); tiChannelC = ti2.tiValue; mpboChannelsA[0] = true; return GetTime2(ti2.tiValue, true); }
time2 ReadTimeDateB_Short(void) { DelayOff(); QueryOpenB(); if (Input() != SER_GOODCHECK) return GetTime2Error(); DelayOff(); QueryTimeB(); if (Input() != SER_GOODCHECK) return GetTime2Error(); return GetTime2(ReadTimeB(), true); }
time2 QueryTimeC_Full(void) { uchar i; for (i=0; i<bMINORREPEATS; i++) { DelayOff(); QueryTimeC(); if (RevInput() == SER_GOODCHECK) break; if (fKey == true) return GetTime2Error(); } if (i == bMINORREPEATS) return GetTime2Error(); return GetTime2(ReadTimeC(), true); }
time2 QueryTimeS_Full(uchar bPercent) { uchar i; for (i=0; i<MaxRepeats(); i++) { DelayOff(); QueryTimeS(); if (InputS() == SER_GOODCHECK) break; if (fKey == true) return GetTime2Error(); } if (i == MaxRepeats()) return GetTime2Error(); ShowPercent(bPercent); return GetTime2(ReadTimeS(), true); }
time2 QueryTime31_Full(uchar bPercent) { uchar r; for (r=0; r<MaxRepeats(); r++) { DelayOff(); QueryTime31(); if (Input31() == SER_GOODCHECK) break; if (fKey == true) return GetTime2Error(); } if (r == MaxRepeats()) return GetTime2Error(); ShowPercent(bPercent); return GetTime2(ReadTime31(), true); }
time2 ReadTimeCan31(void) { if (QueryOpen31_Full(25) == 0) GetTime2Error(); time2 ti2 = QueryTime31_Full(50); if (ti2.fValid == false) return GetTime2Error(); tiChannelC = ti2.tiValue; uchar i; for (i=0; i<MAX_LINE_N31; i++) { mpboChannelsA[i] = true; } return GetTime2(ti2.tiValue, true); }
time2 ReadTimeDateK_Short(void) { QueryCloseK(); QueryTimeK(); if (BccInput() != SER_GOODCHECK) return GetTime2Error(); time ti = ReadTimeK(); QueryCloseK(); QueryDateK(); if (BccInput() != SER_GOODCHECK) return GetTime2Error(); ti = ReadDateK(ti); QueryCloseK(); return GetTime2(ti, true); }
time2 ReadTimeDate_Short(uchar ibCan) { LoadCurrDigital(ibCan); ibPort = diCurr.ibPort; switch (diCurr.bDevice) { #ifndef SKIP_A case 15: case 1: return ReadTimeDateA_Short(); #endif #ifndef SKIP_B case 8: case 2: return ReadTimeDateB_Short(); case 12: return GetTime2(tiCurr, true); #endif #ifndef SKIP_C case 3: return ReadTimeDateC_Short(); #endif #ifndef SKIP_D case 4: return( ReadTimeDateD_Short() ); break; #endif #ifndef SKIP_E case 7: case 5: return( ReadTimeDateE_Short() ); break; #endif #ifndef SKIP_F case 6: return( ReadTimeDateF_Short() ); break; #endif #ifndef SKIP_G case 9: return( ReadTimeDateG_Short() ); break; #endif #ifndef SKIP_H case 10: return( ReadTimeDateH_Short() ); break; #endif #ifndef SKIP_I case 11: return( ReadTimeDateI_Short() ); break; #endif #ifndef SKIP_K case 14: case 13: return( ReadTimeDateK_Short() ); break; #endif #ifndef SKIP_L case 17: case 16: tiAlt = tiCurr; return(1); break; #endif #ifndef SKIP_M case 18: tiAlt = tiCurr; return(1); break; #endif #ifndef SKIP_N case 19: tiAlt = tiCurr; return(1); break; #endif #ifndef SKIP_O case 20: return( ReadTimeDateO_Short() ); break; #endif #ifndef SKIP_P case 21: return ReadTimeDateP_Short(); #endif #ifndef SKIP_Q case 22: return( ReadTimeDateQ_Short() ); break; #endif #ifndef SKIP_R case 23: tiAlt = tiCurr; return(1); break; #endif #ifndef SKIP_S case 24: return ReadTimeDateS_Short(); #endif #ifndef SKIP_T case 25: return( ReadTimeDateT_Short() ); break; #endif #ifndef SKIP_U case 26: return ReadTimeDateU_Short(); #endif default: return GetTime2Error(); } }