Operating instructions
Introduction To Programming
26
Battery Test Example Program
l0 ! Battery Test Example Program
20 !
30 Eodv=l.0 ! End of discharge voltage for single cell
40 Number_of_cells=3 ! Number of cells to be discharged in series
50 Discharge_at .05 ! Constant current discharge rate in amperes
60 !
70 OUTPUT 705;"INPUT OFF" ! Disables the inputs
80 OUTPUT 705;"MODE:CURRENT" ! Sets CC mode
90 OUTPUT 705;"CURRENT:LEVEL";Discharge_at ! Sets the CC level
l00 OUTPUT 705;"INPUT ON" ! Enables the inputs
110 !
120 Start_time=TIMEDATE ! Records test start time
130 !
140 Start_test: ! Starts test routine that
150 OUTPUT 705;"MEASURE:VOLTAGE?" ! continuously measures and reads
160 ENTER 705;Sum_of_volts ! back the voltage and current
170 OUTPUT 705;"MEASURE:CURRENT?" ! until batteries are completely
180 ENTER 705;Actual_current ! discharged
190 !
200 PRINT "Total cell voltage: ";Sum_of_volts
210 PRINT "Actual current: ";Actual_current
220 PRINT "Elapsed time in seconds: ";TIMEDATE-Start_time
230 !
240 IF Sum_of_volts>(Number_of_cells*Eodv) THEN GOTO Start_test
250 ! Checks if the total voltage is less than the
260 ! sum of the minimum cell voltages of all cells
270 !
280 OUTPUT 705;"INPUT OFF" ! Disables the inputs
290 !
300 END