Batch Processing ---------------- The Batch processing feature enables you to execute an ASCII file containing a sequential list of commands, so for example you could have a file that selects a particular device, downloads the program data file and then programs a thousand devices. StagCom supports Command-Line batch processing. If the batch file name is placed on the command line (e.g. 'scomwin.exe batchfile.bch') then StagCom will run up, execute the batch file batchfile.bch, then close down. All commands that StagCom perform are duplicated by the batch process commands. Batch files can be created with any ASCII editor including DOS Edit and Windows Notepad. If the programmer returns an error message during the execution of a batch file then you will be prompted to specify the action is to be taken (Abort, Retry, Ignore). Abort will stop the batch file. Retry will retry the command and Ignore will go on to the next command. 1. Only one command per line is allowed. 2. Any data after the command will be ignored and may therefore be used as comments. 3. Commands sent and programmer responses to the commands are displayed in the response window so that you can monitor what is going on. 4. The batch process can be stopped before execution of the next command by press the Escape key. 5. Commands may be repeated ‘n’ times by placing the required count before the command e.g. 30DV will verify the device 30 times. 6. A pause can be added before a command is executed by adding '!'. e.g. 50!DP will program 50 devices with a pause between each program cycle to allow the insertion of the next device into the programmer socket. 7. Messages can be placed in the batch file to prompt the user. 8. The command set is not case sensitive so 'dp' is the same as 'DP'. The command set is based on the menu bar short cut key codes and are as follows:- DE Device empty check. DL Device load. DP Device program. DS xxxxxx Device select. xxxxxx = 6 digit device code. DT Device vector test. DV Device verify. FR "filepath\name" Receive file from programmer. FRF n Set receive file i/o format n, n = 0 = Jedec 4 = Intel 16 5 = Motorola S Record 6 = Tek Hex 7 = Extended Tek Hex 8 = Stag Hex 9 = ASCII Hex Space 10 = Stag Binary 12 = Binary Rubout 13 = Binary 17 = POF 18 = Intel 32 19 = LOF. FRR aaaaaa Ram start address where data shall be read from during file receive. FRS aaaaaa byte count (size) of received file. FRO aaaaaaaa Offset used during file receive. FS "filepath\name" Send file to programmer. FSF n Send file io format (see FRF for details). FSR aaaaaa Start address where data shall be placed during send file. FSS aaaaaa Max. number of bytes of file to store in programmer during file send. FSO aaaaaaaa Offset used during file send. MC Display programmer memory CRC. ME aaaaaa hh hh Memory edit, place hex data bytes hh at location aaaaaa onwards. MEF a b hh Memory edit fill ram between address a & b with hex data byte hh. MEU File entire memory with unprogrammed state. MH Display programmer memory checksum. ML a a a Set memory/device limits (parameters = ramstart devstart devstop). MO Display open link count. OD "filepath" Set new data file path for connected programmer. OL0 Serialisation - disable. OL1 Serialisation - enable (other OL commands also enable serialisation). OLAD Serialisation - set ASCII Decimal. OLAH Serialisation - set ASCII Hex. OLBD Serialisation - set BCD. OLBH Serialisation - set Hex. OLSS Serialisation - set all Sockets Same. OLSU Serialisation - set all Sockets Unique. OLSO n Serialisation - set Socket n Only. OLBU n Serialisation - set bytes used for serial number. OLNV Serialisation - set next serial number. OLC n aaaaaa Serialisation - configure digit n with address aaaaaa. OLCB Serialisation - configure big Endian. OLCL Serialisation - configure Little Endian. OM u s w Set new bit mode, u=units per set, s=num of sets, w=width, please see RM & SM commands in the Remote Operation appendix of your programmer manual for valid modes OP test Pre program checks, Valid options are 'OP NONE' to disable pre program checks. 'OP BIT' to apply device illegal bit checks test 'OP EMPTY' to apply device empty check OS hh Set security fuse mask eg 01=SF0, 02=SF1, C3=SF7,6,1,0 etc. ! Display the pause dialog box, inviting the operator to insert a new device. Note Pressing Esc key or selecting the Cancel button while the pause dialog is active will terminate the batch process. !"user text" The user text will be displayed in place of the 'insert device' message whenever the pause dialog is displayed. Insert '\n' for a newline, Insert '%1' for current device number in count. e.g. !"Insert device %1 \n for part no. 10345" would display: Insert device 5 for part no. 10345 !"" Restores default pause dialog message ; Comment line (any text after other commands are also comments). "user text" Displays a message on the screen containing the entered user text. You can add format commands to the string to change how the text is laid out. The commands are: \a Sound speaker horn. \n Start a new line. \t Horizontal tab. \\ Insert \ character in string. \" insert " character in string. The example "\aInsert device:\t\"110\\570\"\nInto programmer socket." Will sound the horn then display Insert device: "110\570" Into programmer socket.