background image

Summary of Contents for PHP1240

Page 1: ......

Page 2: ...odel No PHP1240 This package includes the TI Disk Drive Controller Card and the Disk Manager Solid State Software Command Module With the Disk Drive Controller Card up to three Disk Memory Drives sold separately can be attached to your computer 1039345 2 ...

Page 3: ...g antenna that is the antenna for the radio or television that is receiving the interference Change the position of the computer with respect to the radiO or television equipment that is receiving interference Plug the computer into a different wall outlet so that the computer and the equipment receiving interference are on different branch circuits If these measures do not eliminate the interfere...

Page 4: ...d the serial number from the Disk Memory Drive and the purchase date in the space below The serial number is identified by the words SERIAL NO Always reference this information in any correspondence PHP1240 Model No Serial No Purchase Date Copyright 1982 Texas Instruments Incorporated ...

Page 5: ...attheDiskSystem 16 Disk Manager Command Module Operation 20 Editing 20 File Commands 21 Disk Commands 22 DiskTests 26 Single Disk Processing 28 Disk System Operation with TI BASIC 29 Saving and Loading Programs 29 File Naming Conventions 30 File Processing 30 Cataloging Files 37 Sample Programs 38 Appendix A Error Codes in TI BASIC 42 Appendix B Error Codes in the Disk Manager Command Module 43 Ap...

Page 6: ...n properly The controller also puts an Index on the disk making the data that has been written easy to locate DISK MANAGER COMMAND MODULE The Disk Manager Solid State So ftware Command Module packed with the Disk Drive Controller Card helps you maintain the Information on your diskettes Initializing naming and renaming diskettes renaming files deleting files copying files and copying diskettes all...

Page 7: ...the proper diskette is in place RENAME DELETE AND COpy FILES These functions also can be per formed via TI BASIC however the Disk Manager Command Module helps you quickly and easily rename files delete files and make copies of files MODIFY PROTECTION You may want a file protected so that it cannot be aCcidentally erased or changed You can use the Disk Manager Command Module to protect files and wh...

Page 8: ...he outer track and 40 to 79 on the other side starting with the inner track Each track is divided into nine sectors giving a double sided diskette 720 sectors Each sector can contain up to 256 bytes of information or 2048 bits The sectors are numbered 0 to 7 19 starting with sector 0 on the first track of the lower side and sector 359 on the last track of the lower side Sector 360 is on the last t...

Page 9: ... magnetic field can affect data on a diskette Do not bring any magnet near a diskette and do not put a diskette near or on top of anything that generates a magnetic field such as a television a monitor a speaker etc Also be aware of more obscure magnetic sources such as magnetic cabinet latches magnets in chlldren s toys and magnetic note holders As a general rule do not store diskettes within thr...

Page 10: ...e proceeding CAUTION Electronic components can be damaged by static electricity discharges To avoid damage do not touch the connector contacts The Peripheral Expansion System unit has eight slots into which accessory cards can be inserted The Peripheral Expansion Card must occupy slot number 1 For information on setting up the peripheral system refer to the Peripheral Expansion System owner s manu...

Page 11: ...place on each Be careful not to disturb the strapping pack or shunt pack which Is also removable located very near the resistor pack SHUNT PACK TERMINATION RESISTOR PACK 4 Remove the termination resistor pack by prying each end up slightly with a small screwdriver and then lifting It out Pull straight up 5 Save the single drive termination resistor pack so that you can reinsert It If the drive Is ...

Page 12: ... are located on the top and bottom of the peripheral system Remove these screws and place the peripheral system in its proper upright position I BOTTOM VIEW 6 Remove the front casing from the opening of the disk drive compartment 7 A four wire power cord is inside the compartment One end of this cord is connected to the peripheral system Plug the loose end of the cord into the four pin connector o...

Page 13: ...tab on the back of the disk drive 14 Slide the disk drive into the compartment so that the red indicator light is in the top left hand corner Note Align the screw openings on the top and bottom of the peripheral system with the holes in the disk drive If they do not line up the drive may be in upside down r nl r v __ _INDICATOR LlQHT 15 Again carefully place the peripheral system on its left side ...

Page 14: ...nectors one at the end of the cable and one near the middle of the cable Attach the end of the disk drive cable to the adapter board on the Controller s cable 5 If you are using two external drives insert an adapter board into the connector in the middle of the first disk drive s cable 6 Connect the end of the second external drive s cable into the adapter board of the first external drive s cable...

Page 15: ...ral system firmly press the card down into the slot until connection has been made 6 Replace the top on the peripheral system by sliding the front edge under the extension on the front of the unit Firmly press down on the back edge of the top Do not run the system without the top in place the top ensures proper ventilation Note If the top does not fit properly remove the card and realign it in the...

Page 16: ...st drive the one connected directly to the Controller Card is identified as DSKI by TI BASIC The second drive connected to the cable of DSKl Is DSK2 The third drive Is DSK3 The labels provided with your drive s can be used to Identify each drive CAUTION Always disconnect the Peripheral Expansion System before moving the computer console The cable connecting the console and peripheral system Is not...

Page 17: ...nce 1 Turn on the external disk drives 2 Turn on the Peripheral Expansion System unit 3 Then turn on the monitor and computer console For proper memory allocation by the computer the Peripheral Expansion System must be ON when the computer console is switched on Otherwise the disk drives Controller Card and Disk Manager module will not function correctly The computer console must be turned off and...

Page 18: ...sk drive 1 0 ERROR 06 IN 100 Repeat the test for drives two and three if you have them altering the program to reference DSK2 and DSK3 respectively When you have verified that the disk drives are operating type BYE and press ENTER You are ready to start using your disk system as described in the following sections of this manual If you have problems in operating the disk system please review the S...

Page 19: ...ave an answer in place These preprogrammed responses de fault values represent common or usual answers to these prompts If the answer is the one you want just press ENTER to confirm it If you want to give a different response type the response you want and then press ENTER In this case number 1 is the default option However you want option 4 because only drive one is going to be used at this time ...

Page 20: ...y support only 35 tracks per side If your drive is one of these enter 35 in response to this prompt In response to the prompt SINGLE SIDED YIN press Y and then press ENTER if you are using a single sided disk drive If both your diskette and disk drive are double sided enter N For more information about diskette types see page 5 of this manual and your disk drive manual In answer to the prompt SING...

Page 21: ...N to run the program The disk drive working light comes on as twenty items are stored The prompt WHICH RECORD appears Enter a number from 1 to 20 That record is retrieved and displayed on the screen You can retrieve the records in any order as often as you like When you are finished enter 2 1 The file is closed and you are back in TI BASIC Enter BYE to leave BASIC to ensure that the file is proper...

Page 22: ...kname is the name you gave to the diskette The number after AVAILABLE is the number of sectors not used The number after USED is the number of sectors in use The information below shows that FIRSTFILE is an internal file with a fixed length of 80 bytes taking up 8 sectors and PROGRAM 1 is a program file taking up 2 sectors Since there is nothing under P neither of the files is protected To leave t...

Page 23: ...e f ault values represent common or usual answers to these prompts If the answer is the one you want just press ENTER to confirm it If you want to give a different response type the response you want and then press ENTER Editing IMPORTANT NOTICE To leave the Disk Manager Command Module without the chance of losing any programs or data stored on the diskette follow this procedure 1 Press BEGIN to r...

Page 24: ...f 32 through 95 For best results use only upper case characters A through Z and other characters with ASCII codes of 95 and lower excluding the period and the space character to name your files RENAME FILE When you choose this option the following screen appears RENAME FILE MASTER DISK 1 3 1 Your response to the prompt MASTER DISK 1 3 indicates which disk drive contains the file you want to rename...

Page 25: ...N The Command Module enables you to mark a file so that it cannot be written on This means that a TI BASIC program or data cannot be changed without removing its protection with the Command Module When you choose this option the following screen appears MODIFY RLE PROTECTIDN MASTER DISK 1 3 1 Your response Indicates which disk drive contains the file you want to modify When you answer the prompt t...

Page 26: ... default parameters From there it may go to a line printer through a modem or to whatever device Is connected to RS232 Interface See the RS232 Interface Manual for more Information on Its use If you choose 4 OTHER the prompt DEVICE NAME appears You may then choose any device and file that you could choose if you were using the TI BASIC command OPEN For example you could enter DSKl CATLIST and the ...

Page 27: ... drives When you choose this option the following display appears BACKUP DISK SELECTIVE YIN N Your response to the prompt SELECTIVE YIN determines if all the files or only selected files on the diskette are to be copied If you enter N all files on the diskette are copied If you enter Y you may choose which files you want to copy The prompt MASTER DISK 1 3 appears requesting the number of the disk ...

Page 28: ... insert the master diskette into the disk drive The computer reads as much data as possible from the first diskette into the computer s memory Then the screen prompts you to remove the first diskette and insert the copy diskette Next the computer writes the data from the computer s memory onto the copy diskette Then the computer prompts you to remove the copy diskette and reinsert the master diske...

Page 29: ...ou choose to make It non destructive information on the disk Is preserved For a double sided diskette each loop takes about twice as long if you choose to make the test destructive and about 80 seconds if you choose to make it non destructive The non destructive test should satisfy most requirements The destructive version of the test could be done to new diskettes to determine whether or not they...

Page 30: ...CE NAME appears You then may enter the device and file name to which you want the log to go For example if you want a record put on the diskette in drive two under the filename LOGLIST enter DSK2 LOGLIST If you want the logged errors printed on an attached Solid State Thermal Printer enter TP as the device name Note that you cannot log to the disk drive that is being tested When the test is run th...

Page 31: ...NGLE DISK PROCESSING Choose this option If you only have one disk drive or If you are only going to be using DSKl After you choose this option the message SINGLE DISK PROCESSING HAS BEEN INITIALIZED appears on the screen You may go back to multiple disk operations only by leaving the module and reentering It Be sure to Insert a diskette Into the disk drive before selecting any other commands The p...

Page 32: ...be stored on a double sided diskette The SAVE command is used to store a program on the diskette The format is SAVE device program name The device Is DSK1 DSK2 or DSK3 depending on which disk drive you want to address The program name Is any valid Identifying name you want to give your program Valid program names can be up to ten characters long and can include any character except the period and ...

Page 33: ...cs of the file The OPEN statement has the following general form OPEN f e number device file name fie organization fiie type open mode record type Thefile number and devtceJile name must be Included In the OPEN statement The other Information may be In any order or may be omitted If an item is omitted the computer assumes certain defaults which are described below 30 file number Thefile number 1 t...

Page 34: ...the file may be both read and written upon UPDATE may only be read INPUT may only be written to OUTPUT or may only be added to APPEND If a file is marked as protected it cannot be written to and may only be opened for input Also APPEND mode can only be specified for VARIABLE length records If you do not specify an open mode the computer assumes the default UPDATE Note If an unprotected file alread...

Page 35: ...reopens a file on the diskette in drive two with a name of ABCD if A equals DSK2 ABCD The file is a SEQUENTIAL file in the UPDATE mode with INTERNAL format and VARIABLE length records having a maximum length of 80 bytes CLOSE The CLOSE statement discontinues the association between a file and a program After the CLOSE statement is performed the file is not available unless It is opened again with ...

Page 36: ...UENTIAL files are read in sequential order variable list The variable list is the list of variables into which you want the data from the file to be read It consists of string or numeric variables separated by commas The following are examples of INPUT statements INPUT 1 X INPUT 23 X A LL INPUT 1 1 REC 44 TAX INPUT 3 A B C Puts into X the next value available in the file that was opened as 1 Puts ...

Page 37: ...nt list is the list of values that you want to put on the file It consists of string or numeric variables or constants separated by commas colons and semicolons The following are examples of PRINT statements PRINT 1 X PRINT 23 X A TIMES 4 PRINT 1 1 REC 44 TAX PRINT 3 A B C 34 Puts the value of X Into the next position of the file that was opened as 1 Puts the value of X A and TIMES 4 Into the next...

Page 38: ... are at the end of the file that was opened as 27 control is transferred to line 1150 The usual way to keep track of the last record in RELATIVE files is to maintain a dummy record as the first record in the file This record contains the number of records in the file Each time you change the length of the file you must update this record RESTORE The RESTORE statement Is used to position you at a s...

Page 39: ...the device is DSK l For drive two the device is DSK2 For drive three the device is DSK3 ThejUe name may be any valid file name Note Files can only be deleted if they are not protected CALL FILES The FILES subprogram is used to change the number of files a maximum of nine that can be open at the same time The default number of allowable open files in TI BASIC is three The amount of memory RAM avail...

Page 40: ... the name of the diskette and the numerical items give the following Information the record type always a zero for record 0 the total number of sectors on the diskette the number of aVailable sectors on the diskette Records 1 through 127 contain Information about the corresponding files In the Index The string item Is the file name and the numeric items are as follows The file type a negative valu...

Page 41: ...LEAR 1 1 0 OPEN 2 oSK1 GENFILE RELATIVE 50 INTERNAL 1 20 PRINT ENTER XXX TO LEAVE ENTRY The next section lines 130 through 2 10 allows entry of up to 50 records numbered 1 through 50 Line 160 checks to see if the last record has been entered If 50 records have been entered line 2 l O informs the user that the file is full 1 30 REM ENTRY SECTION 1 40 TOTAL 0 1 50 INPUT RECORD STR TOTAL 1 BUFFER 1 6...

Page 42: ...M CHANGE A RECORD 301 0 GOSUB 1 0000 3020 INPUT ENTER NEW DATA BUFFERiB 3030 PRINT 2 REC RECNUM BUFFERiB 3040 GOTO 220 The following section lines 4000 through 4050 allows a record to be added 4000 REM ADD RECORD 401 0 IF TOTAL 50 THEN 21 0 4020 TOTAL TOTAL 1 4030 INPUT ENTER DATA BUFFERiB 4040 PRINT 2 REC TOTAL BUFFERiB 4050 GOTO 220 Lines 5000 through 5020 close the file at the end of the progra...

Page 43: ...D OF THE PROGRAM THAT PRODUCES THE SCREEN 1 20 REM 1 30 REM CHOOSE A UNIQUE FILENAME 1 40 OPEN 20 device file name INTERNAL 1 50 FOR ROW 1 TO 24 1 60 FOR COLUMN 1 TO 32 1 70 CALL GCHAR ROW COLUMN X 1 80 PRINT 20 X 1 90 NEXT COLUMN 200 NEXT ROW 21 0 CLOSE 20 The following runs as an independent program It recalls the contents of a screen that has been previously saved and then puts it on the screen...

Page 44: ...AM 1 70 INPUT MASTER DISK 1 3 A 1 80 A INT A 1 90 IF A 1 THEN 1 70 200 IF A 3 THEN 1 70 The next section opens the file reads the diskette information for record 0 and displays It on the screen 21 0 OPEN 1 DSK STR A INPUT RELATIVE INTERNAL 220 INPUT 1 A J J K 230 DISPLAY DSK STR A DISKNAME A AVAILABLE K USED J K The remainder of the program reads the remaining information in the Index formats it a...

Page 45: ...he write protect slot or remove protection via the Disk Manager module BAD OPEN ATTRIBUTE One or more OPEN options were illegal or didn t match the file s actual characteristics ILLEGAL OPERATION Should not be generated by the disk system It could be caused however by attempting to perform some illegal file operation such as requesting INPUT from the Thermal Printer OUT OF SPACE The diskette is fu...

Page 46: ...t used 9 SPECIAL ERROR CODE FOR COMPREHENSIVE TEST SECOND DIGIT 1 2 3 4 5 6 7 TYPE OF ERROR RECORD NOT FOUND CYCLIC REDUNDANCY CODE LOST DATA WRITE PROTECTED WRITE FAULT NO DISKIDRIVE or DRIVE NOT READY INVALID INPUT PARAMETERS 8 is not used 9 SPECIAL ERROR CODE FOR COMPREHENSIVE TEST The following examples demonstrate several typical error codes and their interpretations ERROR CODE 1 6 1 7 21 31 ...

Page 47: ...ssette Transfer Data from Cassette to Diskette To transfer data from a cassette to a diskette you must read it from the cassette Into the computer and then store It on the diskette You should first decide how you are going to store the data on the diskette that Is what parameters you are going to use in the OPEN statement The following program transfers data from a cassette to a file named KAY on ...

Page 48: ...or pencil only use a felt tip pen 4 Do not scratch the surface of the diskette Any scratch even If too small to be seen may destroy all the information on a number of sectors This usually causes Information to be lost from most of the files on the diskette 5 Do not expose diskettes to magnetic fields or excessive heat or cold 6 Do not place tape of any kind masking or other on the surface of a dis...

Page 49: ...onnected right side up 4 So ftware Be sure all commands and statements are used as described in this manual If the disk system works properly with the Disk Manager Command Module but not with a program the problem is probably with the program Especially check the use of OPEN INPUT and PRINT 5 Diagnostic Tests Check the diskette controller and disk drives for proper operation by running the diagnos...

Page 50: ...er Relations Department at 800 858 4565 toll free within the contiguous United States except Texas or 800 692 4279 within Texas The operators at these numbers cannot provide technical assistance For technical questions about programming specific application etc you can call 806 741 2663 Please note that this is not a toll free number and collect calls cannot be accepted As an alternative you can w...

Page 51: ... exclusions may not apply to you LEGALREMEDIES Thiswarranty gives you specific legal rights and you may also have otherrights that vary from state to state WARRANTY PERFORMANCE During the above three month warranty period your Disk Controller and Disk Manager module will be repaired or replaced with a new or reconditioned unit ofthe same or equivalent model atTI s option when the unit Is returned ...

Page 52: ...PAINTED IN U S A Texas Instruments invented the integrated circuit the microprocessor and the microcomputer Beingjirst is our tradition TEXAS I N S T R U M E N T S I N C O R PO R A T E D ...

Reviews: