ACR Electronics FPR-10 PROGRAMMER Manuál Strana 189

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 199
  • Tabulka s obsahem
  • ŘEŠENÍ PROBLÉMŮ
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 188
Parker Hannifin
Error Handling 189
ExcMinutes = minutes MOD 60
REM extract the hour portion
REM remove excess minutes and convert to full hours
hours = (minutes - ExcMinutes) /60
REM remove any hours less than a full day
ExcHours = hours mod 24
REM only full days are left. Only works up to <25 days.
REM remove excess hours and convert what's left to days
days = (hours - ExcHours)/24
PRINT #1, "Approximate Time Running : ";days;" Days ";
PRINT #1, USING "##";ExcHours;" Hours ";
PRINT #1, USING "##";ExcMinutes;" Minutes ";
PRINT #1, USING "##";ExcSeconds;".";ms;" Seconds "
RETURN
ENDP
Zobrazit stránku 188
1 2 ... 184 185 186 187 188 189 190 191 192 193 194 ... 198 199

Komentáře k této Příručce

Žádné komentáře