Omega Speaker Systems VR200 instruction manual Open TEST.DAT for Input AS #2

Page 37

7.2Program to Read Parameter Settings from Disk, Display Them on Screen, and Set up VR200

100

‘************************************************************

110

‘**

RS422A Example Program for IBM PC

**

120

‘**

 

**

130

‘**

To read setting information

**

140

‘**

 

**

150‘************************************************************

160‘**

170

‘**

Baud rate: 1200

Stop bit: 1 bit

180

‘**

Parity: none

Control: OFF/OFF

190

‘**

Data length: 8 bits

Others: LF is sent automatically.

200‘**

210

220OPEN “COM1:1200,N,8,1,LF” AS #1

230OPEN “TEST.DAT” FOR INPUT AS #2

240

250PRINT #1,CHR$(27)+”O 01"

260LINE INPUT #2,D$: PRINT D$

270

IF LEFT$(D$,2)=”EN” THEN GOTO 340 :’ Watch data end

280

PRINT #1,D$

290PRINT #1,CHR$(27)+”S”; :’ For protect receive buffer overflow

300LINE INPUT #1,D$

310PRINT D$

320GOTO 260

330

340PRINT #1,CHR$(27)+”C 01"

350CLOSE

360END

7 - 2

Image 37 Contents
User’sGuide Servicing North America Trademarks PrefaceContents Transmitting Functions Time Chart Initial Status Errors During RS-422-A OutputProgram Examples Interface Specifications Installing the RS-422-A InterfaceCable Termination Interface Terminal Terminal AssignmentData Configuration Communication WiringText Start-stop Asynchronous CommunicationBuffer Overflow Input BufferSetup Procedure Setting up the RS-422-A Communication InterfaceParameters IdentifierTerminator Setting the Range and Scale List of Program Set CommandsFormat SRp1,mode Example SR01,SKIPExample SR01, DI, Format SRp1, mode, p2Format SRp1, mode, p2, p3, p4, p5, p6, p7, p8 Setting Alarms Setting the Waveform Span Rate TIME/DIV Setting the UnitSetting the Clock Copying the Channel SettingsSetting the Partial Expanded Display Setting the Discrete Zone DisplaySetting the Tag Setting the Data File Name File Setting the Trip LevelSetting the Summer/ Winter Time DST Setting the LCD Brightness and LCD Saver LCDExample MD02, ON, on Format MDp1, p2, p3Alarm Acknowledge List of Program Control CommandsStandard Screen Call Initializing the Data MemorySaving the SET Configuration File Loading the SET Configuration FileSelecting the Output Data Selecting the Output Format for Measured DataMessage Writingfor the VR 200 with style number 2 or higher Status Output Execution of TriggerRequests for the data to be prepared in the buffer Close Command Open CommandESC O Crlf ESC C CrlfSequence see also Sections 2.3.7 Introduction to Output Data FormatsOutput Data Formats Output Format of Measured Values in Ascii ModeOutput Format of Measured Values in Binary Mode Output Format of Parameter Settings Output Format of Unit and Decimal Point Information Time Chart Initial Status Output Preventing ErrorsESC S CR LF How to Request Error Message OutputTiming of Resetting the Error Status Environment Program ExamplesOpen TEST.DAT for Input AS #2 Others LF is sent automatically 210 ‘ 220 ‘ Open COM11200,N,8,1,LF AS #1 Print a Appendix 1 Ascii Code Table AppendixFile Name Length Appendix 2 File Naming RulesLowercase/Uppercase Letters System-reserved File NamesIndex Index for Command Reference Warrant Y/ Disclaimer Temperature