background image

- 2 1 -

4/ Using the CR-510

Many of the features of the CR-510 are software dependent. Switch settings and loading procedures

depend on your particular application. However, there are certain aspects which are general to all
applications. We will discuss these aspects in this section.

Programming the Card Reader

To use the Card Reader with your computer, you must have a driver routine which controls

information flow to and from the unit. If you have pre-programmed software, you should not have
to bother with learning the various program commands. Included in this manual are listings of the

driver routines for the Model II and Model III systems. Detailed information about these routines
can be found in Chapter 5 of this manual.

However, you may have a special need which requires a custom driver. This section shows you the

commands that the Card Reader expects and the format of the information that the Card

Reader returns to the computer.

Card Reader Command Structure

Commands from the computer to the Card Reader are sent in ASCII strings. Each command consists
of three letters. When writing these commands into your custom software, separate each of the
commands by either a single blank space or a semi-colon.. Terminate the string with an |ENTER| .

For example, the following are legitimate command strings (in BASIC):

10  C l $ = "LF0;DFD;PIK" + CHR$(13)

20 C2$ = "STO ASC CFD" + CHR$( 13)

(CHR$(13) generates the ASCII code for |ENTER| .)

Data Format

The data returned to the Computer by the Card Reader is of the general format:

status data block carriage return linefeed*

status consists of one byte of information concerning the operational condition of the Card Reader,

followed by a comma. You may disable the status transmission via a three-letter command in your
software (refer to the STO and ST1 commands) in which case the first transmitted character will

be part of the data block.

data block contains a stream of bytes which constitutes the data on the card. The number of bytes in

the block depends on the format being used at the time.

The data block is followed by carriage return (ASCII code 13). Optionally, you can instruct the unit
via software—(see the LFO and LF1 commands on page 27) to follow the carriage return with
a linefeed instruction (ASCII code 10).

*Note: The Line Feed command is usually optional.

The Card Reader Commands

You can transmit commands to the unit at any time, except during the read operation in the Echo
mode (see page 29 for a discussion of the Echo Mode).

When the Card Reader receives a complete command string (terminated with a carriage return) it
first parses (breaks up) the string into individual commands. If any command is invalid, it returns a

command error to the computer the next time the computer requests status.

Содержание TRS-80 CR-510

Страница 1: ......

Страница 2: ...y from the receiver plug the computer into a different outlet so that computer and receiver are on different branch circuits If necessary the user should consult the dealer or an experienced radio tel...

Страница 3: ...ting the CR 510 s Feed 14 leaning the Rubber Roller 15 4 Using the CR 510 21 Programming the Card Reader 21 CR 510 Command Structure 21 Data Format 21 CR 510 Commands 21 Format Commands 22 CR 510 Comm...

Страница 4: ...tches hardware or through your program software and can read cards that are at least 15 24 cm 6 in length A General Purpose Standard Card designed for use with the CR 510 is available 26 1240 and with...

Страница 5: ...Reader Metal Card Catcher Card Weight Blank Card Packet with 200 General Purpose Cards Owner s Manual Diagnostic Test Card Connection Test Card Power Cord Vial of Cleanser for Read Head and Drive Roll...

Страница 6: ...f Test button All Front Panel lights will come on for about one second When the Self Test is successfully completed the lights will go off and the cards will quickly feed through If the lights remain...

Страница 7: ...the CR 510 for details RS 232C Connector Connect the CR 510 to the TRS 80 via this connector using the appropriate interface Power ON OFF Switch To turn the CR 510 power ON set this switch to ON When...

Страница 8: ......

Страница 9: ...a Terminal Plug into the other SERIAL Connector Model III Users 1 Be sure the Card Reader s and Computer s power are Off 2 Connect one end of the Model III RS 232C Cable 26 1408 to the RS 232C Connec...

Страница 10: ...en the Hopper is empty the slot is positioned over the micro switch at the bottom of the Hopper HOPPER CARD STACK Figure 5 Card Weight Positioning 3 Attach the Card Catcher See Figure 6 A 4 Verify tha...

Страница 11: ...ches to the 4800 baud setting There are four numbered DIP switches on the CR 510 The LEFT RIGHT setting combination of the four switches determines the baud rate Use a small screwdriver or a pair of t...

Страница 12: ...Figure 7 Baud Rate Switch Positions...

Страница 13: ...Reader DIP Switches to 9600 baud 1 LEFT 2 RIGHT 3 RIGHT 4 RIGHT 3 Place the Diagnostic Test Card Figure 8 face down into the Card Reader Hopper 4 Press the SELF TEST and START STOP Buttons simultaneou...

Страница 14: ...Card Left Card Right Card Must Be Placed Face Down in the Card Reader Hopper Figure 9 Card Reader Diagnostic Test Card Card Trailing Edge...

Страница 15: ...eflectance of 20 To make sure that your cards are read it is recommended that you use a 2 pencil For optimum accuracy each marked card must be completely filled Punched Cards The Card Reader also read...

Страница 16: ...inch intervals across the card from card edge to edge as shown in Figure 9 The center of chad 12 and chad 9 must be 0 25 of an inch from the card edge Tolerance is 005 inches unless specified This car...

Страница 17: ...Figure 10 Card Specifications Chart 1 3...

Страница 18: ...uter the data will be a reverse slash indicating invalid data The jammed card must be placed back at the bottom of the deck Pressing the START STOP Button will resume the feed operation Continuous Fee...

Страница 19: ...Figure 12 becomes contaminated by the graphite residue from previous card readings We recommend periodic cleaning of the roller to insure proper frictional contact between cards and the roller Also b...

Страница 20: ...et any moisture from the cloth seep into the unit Note Should you run out of the provided cleaner you can use a liquid glass cleaner as a substitute DO NOT use solvent based cleaners or any cleaner th...

Страница 21: ...3 Carefully lift the Card Reader housing up over the bucket and off the chassis as shown in Figure 14 Figure 14 Removing the Housing 1 7...

Страница 22: ...f the four positioning screws as shown in Figure 15 5 Moisten a clean lint free cloth with cleaner and clean the top front area of the read head as shown in Figure 16 Figure 16 Read Head Cleaning Figu...

Страница 23: ...to reach the bearings surfaces Figure 17 Drive Roller Bearings 8 Inspect the unit for excess oil and wipe clean if necessary 9 Re assemble the Card Reader by performing the preceding steps in reverse...

Страница 24: ...20...

Страница 25: ...the following are legitimate command strings in BASIC 10 Cl LF0 DFD PIK CHR 13 20 C2 STO ASC CFD CHR 13 CHR 13 generates the ASCII code for ENTER Data Format The data returned to the Computer by the C...

Страница 26: ...II conversion 3 bytes Numeric format 1 byte Grader I Conversion 2 bytes Grader II Conversion 2 bytes CFD DFD SFD Feed Mode Feed Mode Feed Mode Continuous Feed Demand Feed Single Feed PIK STA RTX Tran...

Страница 27: ...rith to ASCII conversion format BN1 BiNary 1 BNl is a binary representation of the card image It separates the 12 chad column Hollerith format card image into two 6 bit bytes reading the card from rig...

Страница 28: ...of the hexadecimal number in the corresponding field For example marking rows 1 and 11 signifies a binary value of 1010 X 0A so byte 1 is a 41 X the ASCII code for A HX2 HeXadecimal 2 HX2 separates t...

Страница 29: ...uals 63 the ASCII code for If there is more than one row marking in a field the Card Reader looks for the most dominant marking If it cannot determine which is dominant then the corresponding byte is...

Страница 30: ...SFD Single FeeD Puts the Card Reader into the Single Feed Mode PIK PIcK card Initiates a card read operation when in the demand feed mode Status Specification Commands STA STAtus Sends the Card Reade...

Страница 31: ...t be executed until it is completed Any commands that follow the RES in a command string will not be lost Hexadecimal Commands ll XON The CR 510 supports the XON XOFF protocol The hexadecimal value 11...

Страница 32: ...ring will clear the error condition RES or a hard reset will also clear the error For information on how to prevent and remedy feed errors refer to Adjusting the CR 510 s Feed CR 510 Communications Ov...

Страница 33: ...n with echo enabled it may be integrated into the return data string causing an echo error If this occurs an RTX command should be issued to re transmit the card data Data Transmission Integrity Echo...

Страница 34: ...30...

Страница 35: ...ph Below it the message will appear You will see the series of prompting messages that were described above under BASIC Card Reader Program The only apparent difference between the way the BASIC and t...

Страница 36: ...Run Time Diskette with the appropriate files copied onto it as described on page 31 When TRSDOS READY is displayed type MODEL III BASIC Demonstration I Insert the Card Reader Software Diskette into D...

Страница 37: ...initialize the RS 232 port load the Assembly language driver set top of memory and execute the BASIC card reader software Source file for the COBOL program that calls the Assembly language driver hand...

Страница 38: ...statements in BASIC Refer to the COBOL or BASIC language manual for details If your application uses a special format card you ll need to make some changes to the BASIC and COBOL programs In the COBO...

Страница 39: ...35...

Страница 40: ...36...

Страница 41: ...37...

Страница 42: ...38...

Страница 43: ...39...

Страница 44: ...40...

Страница 45: ...4 1...

Страница 46: ...42...

Страница 47: ...43...

Страница 48: ...44...

Страница 49: ...0 CLS PRINTTAB 10 TRS 80 CR 510 Card Reader Demonstration PRINT P RINT PRINT This program illustrates the software components used to read cards with the TRS 80 CR 510 Card Reader and the TRS 80 Model...

Страница 50: ...40 350 Get length of text on card and print to screen ignore status and following comma start at character 3 in string returned by card reader this co rresponds to column 1 on card 360 L INSTR 3 A CR...

Страница 51: ...A 1...

Страница 52: ...A 2...

Страница 53: ...A 3...

Страница 54: ...A 4...

Страница 55: ...B 1 Figure B1 General Purpose Card Appendix B Card Specification...

Страница 56: ...B2...

Страница 57: ...ous Receive Transmit chip failed during Self Test Take your Card Reader to an authorized Repair Center X Either the Card Reader received an invalid command or else it received an echoed character See...

Страница 58: ...C2...

Страница 59: ...9600 BAUD 8 BITS 1 STOP BIT NO PARITY 1005 DEFUSR2 H005A 1006 POKE 16890 1 1007 POKE 16888 238 1008 POKE I6889 108 1010 X USR2 0 1020 DIM RESULT 79 REM ARRAY FOR CHARACTERS READ 1030 DIM CODE 17 REM...

Страница 60: ...D 2 Card Trailing Edge Card Must Be Placed Face Down In the Card Hopper Card Left Card Right...

Страница 61: ...1 RS 232C Interface Signals Appendix E Specifications Power Requirements 115 Vac 2 amperes Physical Requirements Size 73 4 H x 67 8 W x 12 L 19 7 cm H x 17 4 cm W x 30 5 cm L Weight 16 5 Lb 7 48 Kg E...

Страница 62: ...rves the right to refuse to service the equipment or to void any remaining warranty on the equipment 2 If any Radio Shack computer equipment has been modified so that it is not within manufacturer s s...

Страница 63: ......

Страница 64: ...RADIO SHACK A DIVISION OF TANDY CORPORATION U S A FORT WORTH TEXAS 76102 CANADA BARRIE ONTARIO L4M 4W5 TANDY CORPORATION MS 2601266 Printed in U S A...

Отзывы: