User`s manual

Batch file automation
Automating the process could be accomplished with a batch file such
as this:
TEST.BAT
pgmx test.bin[mb,u,@0–7ff,%%0,tn
pause remove eprom, insert new blank
pgmx test.bin[u,@0–7ff,%%800,tn
pause remove eprom, insert new blank
pgmx test.bin[u,@0–7ff,%%1000,tn
echo now you are done.
Rem use 2 percents (%%) in a batch file
Error return codes for batch file processing:
These error return codes may be used by a calling batch file or process
which drives a chip handler.
Error Description
1– For any 9000 error messages (like *NE, or *WP)
2 For PGMX aborted by user with ControlC
5 For PGMX aborted by a disk error likefile not found” or “disk full
or any command syntax error like “option error”
6– For PGMX when it was expecting a response from the 9000 and a
timeout occured before any response was received.
ERROR.BAT
echo off
pgmx %1
if errorlevel 6 goto :lostcom
if errorlevel 5 goto :syssner
if errorlevel 2 goto :abort
if errorlevel 1 goto :badpart
echo This part programmed ok.
goto :enbat
:lostcom
echo You have lost communication with the programmer
Chapter 9 Commands Model 9000
Page 44