Canon Model 6401 B manual Data Message Format, Data messages Line 2 onwards, END Message Format

Page 32

Field Test Unit Software

5.1.2 DATA Message Format

There are one or more DATA messages used to store a data file. The for- mat of the DATA message is designed to be generated by a BASIC ‘PRINT’ statement and read by a BASIC ‘INPUT’ statement.

DATA messages - Line 2: onwards

data C/R L/F

data = up to 252 characters coded in Hexadecimal (2 characters per data logger byte). The characters are sent high order 4 bits followed by low order 4 bits such that the following BASIC instructions would have VALUE as the first data logger byte in the ASCII DATA message (STRING$)

VALUE = VAL ("&H" + LEFT$(STRING$,2))

5.1.3 END Message Format

A single line is used to terminate the data file.

END message -

END C/R L/F

5.2 HOST COMPUTER PROGRAM TO RECEIVE DATA

The following sample BASIC program will save the information sent by the COPY program via the RS-232 communications link. The sample program is written for an IBM-PC type system, however a similar program will operate on any computer.

10 INPUT “Enter Filename for COPY data”;F$

20 OPEN F$ FOR OUTPUT AS #2

30 OPEN “COMl:1200,n,8,2,rs,cs,ds,cd” AS #l

40 INPUT #1,A$

50 IF A$ = “END” THEN 100

60 PRINT #2,A$

65 PRINT A$

70 GOT0 40

26

Section 5. DATA STORAGE FORMAT

Image 32
Contents Starlog Copyright Notice Table of Contents To CASSETTE/RAM RecordingsLOAD/PLOT Operator Responses Running PlotxDirect Commands from FTU-PROM CommandsDisplay Format ValuesField Test Unit Software Contents Memory structure Why use a FTU? InstallationSwitching on the FTU Running a ProgramAttaching the cassette REDSaving a Program Loading a ProgramGrey BlackFilename Extensions FTU Memory GuidePLOT/COPY/FTUC Loading PLOT’ in 16K RAM FTU Standard Features Running Copy Command FilesCopying Files Operator Responses Question Answer Timing considerationsRunning Load Printing & Plotting RecordingsRunning Plot AnswersFile name,type Hhmm Ddmmyy Buffer PRINT/PLOT/LOAD/COPY Examples Print Example Sample Field DescriptionsStart Question Operator ResponsePlot Example Load Example Hhmm Ddmmyy 50,14 Load Program control variables FileCopy Example InputPlotx Operator Responses QuestionMeaning= Green Sample Field DescriptionLines on the X-710 printer to produce L/F Header Message FormatHeader message Line Data Message Format Data messages Line 2 onwardsEND Message Format END messageData Storage Format Command OperationINITIALlZATlON 5 ‘space’ CommandCursor KEY Commands Next Locate 0,1PRINT USING####BL Locate 0,3PRINT? LB P Channel AddressesNFTU.X07 Program Listing CLSPRINT#1,KKKON Error Goto 0V = Clsinputloc Lgoto If M=1 then M=2 Else M=1 GotoClsinputblockbgoto Clsinputput NextDisplay of the Loggers Current Memory Values User Defined Screen Format Key Stroke FunctionExample FTU to lock up on power on Commands to Modify Data LoggerTime DisplayX-07 Direct Commands from FTU-PROM TimeBaud S300Free QuitIndirect and Miscellaneous Commands CLR Summary of CommandsHome Pdlftu ALL Recorded Data will be Lost