MAGNET POWER SUPPLY SYSTEM 9100
39
DANFYSIK A/S - DENMARK.
Turning the power supply ON and reading/evaluating the status with always answer disabled.
LPRINT "N"+CHR$(13) :REM Turns the power supply on
LPRINT "S1" :REM Issues the status command
LINPUT S1$ :REM Read the MPS reply
IF LEFT$(S1$,1) = CHR$(?) :REM Is it an error message reply?
GOTO ERROR_HANDLING :REM Yes then go to error module
ENDIF
J=1
DO :REM evaluate status reply
IF MID$(S1$,J,1)="!"
GOSUB STATUS(J)_ACTIVE :REM set this status bit active
ELSE
GOSUB STATUS(J)_ACTIVE :REM set this status bit inactive
ENDIF
J=J+1
UNTIL J=24
Turning the power supply ON with always answer enabled
J=0 :ERROR$=”“
DO
J=J+1 :REM Counter for maximum attempts
LPRINT "N"+CHR$(13) :REM Turns the power supply on
LINPUT RE$ :REM Read the MPS reply with 0.1 Sec. time out
IF LEFT$(RE$,1) = CHR$(?) :REM Is it an error reply?
ERROR$=RE$ :REM Mark the error code
ELSEIF RE$=”OK” :REM Is it a good reply
BRAKE :REM then exit DO loop
ELSEIF J=6 :REM Try only six times
IF LEFT$(ERROR$,1) = CHR$(?) :REM Was it error reply?
GOTO ERROR_HANDLING :REM Yes then go to error module
ELSEIF
GOTO NO_COMMUNICATION :REM Yes then go to “No answer” error module
ENDIF
ENDIF
UNTIL -1 :REM loop endless
Ps. An ERROR message includes a "?BELL". (Bell = ASCII 7.)
3.3.5 Software Profile Programming
SYSTEM 9100 is delivered with the software ramp profile option.
With the ramp profile SW it is possible to down load and run a predefined ramp sequence that
the output current must follow. The ramp sequence can be programmed in two quite different
methods.
A- Arbitrary point method; B- Equal timeslot method.
Arbitrary point method and Equal timeslot method are both available, but only one method can
be used at a time.
The examples below are shown for a unipolar power supply. For bipolar supplies, the output
current may also be set as negative.