• Aucun résultat trouvé

CALL piri

Ne

6. Look fora common character (oF characters)

that Precade cach ling of toxt: and look fora ebmnmon character (or characters) that follow each line of text. Alse look for a unique character that follows the entire data file. In this case, each prograin line starts with two NULL Characters ("@@"). At the end of each line, the computer sands car riage return/ine

a

the computer sends the prompt character

teed. The 4051 executes the GR as a CR/LF, then prints the line feed character as J. Since

">" after the file is transferred, this character can . Serve as the ending character for the data receive Operation,

TAPER AAR RE pm et te BM EO ee nominee

1 pe TR a

AE 88 to abe ie erie SBME EN EE: le ose aaa a ve hei es te oe elena ie cert nee

— HARDWARE SPECIFICATIONS :

CONNECTING THE INTERFACE TO A MODES . * # ; ‘

oS ve

|

7. The next step is to set the RSTRING parameters to these opening, closing, and ending characters. It can be done manually frorn the 4051 keyboard by executing @ CALL

"RSTRING" statement in immediate execute mode, or the CALL "RSTRING" statement can

be made part of the data communications BASIC program and executed when the data communications pararueters are loaded from tape and set under program control, Here is

the appropriate RSTRING statement for this example:

Say

160 CALL “RSTRING","@@"s"" >"

8. Withthe RSTRING parameters set as specified above, the file can now be transferred to the

- 4051 internal tape. First, get back to Terminal mode by executing a CALL “TERMIN"

statement in BASIC.

9, While in Terminal mode, press user-detinable key 13 (marked FIND FILE on the overlay),

enter the 4051 tape file number of the file you wish to store the data in, ther press RETURN. iss The 4081 should Jocate the tape file and open the file for access, .

oo: 40. Now enter the computercommand XF ER, TRACY to toll the comaute: to send the data file a ; _ named TRACY: DON'T PRESS RETURN. Instead, press the Dats Receive key (user-

= definable key 3) on the 4051 keyboard. Since the SNOSTG parameter is set to CR by

default, the first action ihe 4051 takes is to send GR to the computer, This has the sare

“ effect as pressing RETURN on the 4051 keyboard and tells the computer to execute the éormmand XFER, TRACY. The computer responds by sending the contents of thu data file to the 4051. Because the DATA RECEIVE key was pressed, tha 4051 is now in Data Recoive submode, so the 4051 stores the incoming information on the internal tape.

: - 41. When the computer is finished, the computer sends Ihe prompt charaater ">" and the Data alee Receive operation is terminated. The tape file is automatically closed and control is

ooh returned to 4051 in Terminal mode.

Atthig point, several options are available. fan EDITOR ROM Pack is installéd on the 4051, the - FORTRAN program can be loadad into memory, edited, placed back on tape, then sent back to

“the computer. Or, the FORTRAN program could be processed by an editor written in 4054 BASIG. Or, the FORTRAN subroutines can be saved on tape for later insertion into a larger FORTRAN program. :

a)

Kcnetedniael tier cnates annuitant Bae EH en ate ma oe

; Apoendic A

Rian, a8

noe

COMMUNICAT hae eM

129--Cormm., Error: Interface error. Whan the programiner set ERRAGT=1, the RS232 interface either received an illegal condition (parity, overrun, or framing) or attempted to

output with the 8th bit==1. ‘ ,

430-~Line Loss: Hardware error. An unexpected loss cf one ,or more, RS232 signal lines

occurred, One must re-enter from BASIC. :

.

131—Illegal Arg: Programmer's error. The "CALL" statement dogs not have the correct argument type (string or numeric) or does not havea thie correct number of arguments.

- 434, 195, 136, 187— Overflow: Internal Queue Overflow. liformation awaiting dataports has exceeded the buffer length and has been fost.

Mode 135 136 137

Serco an me. as moet aa]

Terminal KEYBOARD] AS G2/IN [c

DTRECV | RS232/1N CRT HS232/OUT, r M ag Tape

DTSEND — CRT RS232/1N | HS292/0UT

BASIC 1/0 | RS232/1N seem esse mabe

dentate es tema

1401/0 Mode: Programer’s error. An atternpt has been made to use device 40 trom BASIC when in half-duplex mode. Or, BREAK=5 or 6 when in half-duplex.

141—1/0 Function: Programmer's error. Attempt at BASIC I/O with device 40 with incorrect

| secondary address. input from 40 is only correct whon secondary address4(OLD),

be IB(INPUT), and @(STATUS). Output correct when secondary address=1(SAVE), 12(PRINT),

19(LIST), 30(ON), and 31(OFF).

we aeritteg Bae te

SPR a ehathas wig Pig EN ie eeitate Scat e case oe Sn

t

APPENDIX A 2

Pa :

i

142—-Merm Full: tnternal error, There was not encugh free memory upon entry. A BASIC ‘ ."MEM" may correct the situation without deleting BASIC variables or prograin lines from | t

oe memory.

t

be

F

143, 144, 145--MT file: Programmer's error, An attempt was made to incorrectly use a mag tape i

. file. 143, DTSEND, file header was Secret, Binary, or ', or file was notat the beginning. 144, : OTRECV, file was not at the beginning. 145, FIND FILE, incorrect input from keyboard. t

146—KIT at EOF: Programmer's error. An attempt was nade to write or read past the physical g

End Of File on the magnetic tape. t

= p

147—Comm Aborted: Programmer's action. BREAK was pressed whilo in DTSEND or ; 4

DTRECV which aborted the operation to terminal made. A return to BASIC (pressing user- 7 - definable key number 5) may be necessary if this tncesage appears after a line loss error ~ a

oA nee ; message.) 7 ; : = t

f at

; : iN

i

i '

am “ob

Ee

£

sites - i

£

1

t ke

h

ee i

+ a é #

Stes : ;

pf. : ; . ke

; 29 i

Documents relatifs