background image

6 - 1

6 ERRORS DURING RS-422-A OUTPUT

6.1  Preventing Errors

Chapter 6

  ERRORS DURING RS-422-

A OUTPUT

6.1  Preventing Errors

Do not send an FM or LF command from the host PC until the measured data or set
point data in all the channels specified by the last command have been output.  If an FM
or LF command is sent while the VR200 recorder is outputting data, a communication
error may occur.

An LF command sent after the TS0 command, or an FM command sent after the TS1 or
TS2 command may also cause a communication error.

If an ESC T command was already sent after the last time TS0 was set, data (even in
other formats) in any channel at any time interval can be read by the host PC using FM
commands as many times as required.  At this time (when the FM command is
repeatedly sent), the VR200 recorder also sends the data acquired last time ESC T was
received.

Also, if an ESC T command was already sent after the last time TS1 or TS2 was set, the
settings (even in other formats) in any channel at any time interval can be read by the
host PC using LF commands as many times as required.

Thus, once the ESC T command has been sent, the measured values and set values can
be read any number of times, which is a very useful function.

Note

When sending data from the host PC to a recorder, use the ESC S command to avoid buffer overflow:
When the VR200 recorder receives an ESC S request, it saves it in the buffer memory.  This request is retrieved from the buffer
memory and, after acknowledging the command, the recorder sends the status to the PC.  Make sure not to send any other
commands between sending the ESC S command to the recorder and reading the status from the recorder.  This ensures that
commands can be received by the recorder since its input buffer is empty.

Example:

10

OPEN ”COM1:N81N” AS #1

20

30

PRINT #1,CHR$(&H1B)+”O 01"

40

PRINT #1,”SR01,VOLT,20mV,-2000,2000"

50

GOSUB *HANDSHAKE

60

PRINT #1,”PS0"

70

GOSUB *HANDSHAKE

80

PRINT #1,”UD0"

90

PRINT #1,CHR$(&H1B)+”C 01"

100

CLOSE

110

END

120

*HANDSHAKE

130

PRINT #1,CHR$(&H1B)+”S”;

(sending ESC S)

140

LINE INPUT #1,STS$

(reading status)

150

RETURN

The command length of the input buffer of the VR200 is 256 bytes for a 4-channel model.

Содержание VR200

Страница 1: ...http www omega com e mail info omega com User sGuide VR200 RS 422A Communications Instruction Manual...

Страница 2: ...Trappes Tel 33 130 621 400 FAX 33 130 699 120 Toll Free in France 0800 4 06342 e mail france omega com Germany Austria Daimlerstrasse 26 D 75392 Deckenpfronn Germany Tel 49 07056 3017 FAX 49 07056 854...

Страница 3: ...ion function for the VR200 view recorder For details concerning the operations of the recorder refer to the instruction manual for the VR200 Trademarks IBM is a trademark of International Business Mac...

Страница 4: ...7 2 2 15 Setting the LCD Brightness and LCD Saver LCD 2 8 2 2 16 Setting the Summer Winter Time DST 2 8 2 2 17 Message setting MESSAGE only for the VR 200 with style number 2 or higher 2 8 2 2 18 Sett...

Страница 5: ...3 5 Chapter 4 TIME CHART Chapter 5 INITIAL STATUS Chapter 6 ERRORS DURING RS 422 A OUTPUT 6 1 Preventing Errors 6 1 6 2 How to Request Error Message Output 6 2 6 3 Timing of Resetting the Error Statu...

Страница 6: ...parameters which can only be set in the SETUP mode on the VR100VR200 1 1 Interface Specifications Communication System 4 wire half duplex multi drop connection 1 n 1 host computer and n VR200 view re...

Страница 7: ...he host computer Option terminal Indication of RS 422 A terminals Figure 1 1 Terminal Assignment 1 2 2 Cable Termination Shield potential RS 422 A terminals Terminal screws ISO M4 6 mm long Use crimp...

Страница 8: ...terminal resistance R 100W 1 2 W or greater adjust according to the impedance The converter shown above is the inverter type The and polarity depends on the type of converter R R R R Figure 1 3 Commu...

Страница 9: ...er Data bits 7 or 8 bits Parity bit odd even or none Stop bit 1 1 or 2 Start bit Idle status of the line 1 0 Line released due to the idle status broken line or continued by the start bit of the next...

Страница 10: ...End 2 End 3 Figure 1 7 Rotary Buffer 1 4 4 Buffer Overflow As described already the input buffer is necessary for data communication The capacity however is limited 256 bytes for a 4 channel model Th...

Страница 11: ...keys to select the parity specification from ODD EVEN and NONE then press the key The default is EVEN 9 Use the keys to select the stop bit specification between 1 and 2 bits then press the key The d...

Страница 12: ...e parameters Spaces preceding and following a parameter and spaces within a parameter are ignored Spaces within a parameter specified by ASCII characters engineering units tags and messages are valid...

Страница 13: ...ual for the VR200 2 2 2 Setting the Range and Scale See Section 4 1 of the instruction manual for the VR200 SKIP Skips scanning the specified channel i e prevents that channel from being measured reco...

Страница 14: ...8 0 to 752 0 F 32 to 2372 F 328 0 to 752 0 F 328 0 to 1112 0 F 328 0 to 1022 0 F 328 0 to 1112 0 F 328 0 to 1022 0 F Allowed when the N1 option Cu10 Cu25 is equipped DI Digital Input Format SRp1 mode...

Страница 15: ...mV input in channel 01 From this value the square root is taken and the value is scaled from 100 0 to 100 0 Note An error will occur if one or two of p5 p6 and p7 are omitted However it is possible t...

Страница 16: ...ets the waveform span rate to 1 minute 2 2 6 Setting the Clock See Section 4 5 of the instruction manual for the VR200 Format SDp1 p2 p1 Date YY MM DD YY The last two digits of the Western year MM 01...

Страница 17: ...ed 1 to 99 p4 Boundary value lower display span 1 to upper display span 1 Enter a numeric value excluding the decimal point Note The decimal point position depends on the range or scaling setting See...

Страница 18: ...r model has 3M optioin the format type of the flopyy disk must be fixed to 1 44MB 2 2 14 Setting the Data File Name FILE See Section 5 2 of the instruction manual for the VR200 Format SGp1 p2 p3 p4 p1...

Страница 19: ...00 with style number 2 or higher See Section 4 8 of the instruction manual for the VR200 Format SMp1 p2 p1 Message number 1 to 5 p2 Message string 16 characters or less Example SM3 MOTOR ON Assign the...

Страница 20: ...Save only the meansurement data newly loaded to the VR200 internal memory after the last time you saved to the floppy disk 2 20 Waveform Display and Scale Display Setting DISP_WAVE for the VR 200 with...

Страница 21: ...o 3 UD2 Returns the digital values for channels 4 to 6 UD3 Returns the digital values for channels 1 to 6 2 3 3 Alarm Acknowledge See Section 3 3 of the instruction manual for the VR100 or the VR200 C...

Страница 22: ...2 Selects channels for which parameter set values after the invoking the TS1 command or for which engineering unit and decimal point information is to be output after invoking the TS2 command Where p1...

Страница 23: ...elects message number for which parameter set values to be displayed and the information file is saved 2 3 13 Display Switching for the VR 200 with style number 2 or higher Command Function UM0 Trend...

Страница 24: ...Data Formats and Section 3 2 Output Data Formats To invoke the ESC T command send the character T following 1B 1 byte hexadecimal The trigger is effective for a device which has not yet been opened M...

Страница 25: ...sent from the VR100 VR200 recorder To invoke the ESC S command send the character S following 1B 1 byte hexadecimal Make sure to send the terminator CR and LF following ESC S 2 4 3 Open Command ESC O...

Страница 26: ...3 8 TS0 ESC T FMx xx xx Read all data specified until the end FMx xx xx Read all data specified until the end Note Do not send the LF command until the reply data have been read completely after send...

Страница 27: ...buffer Output format DATE YY MM DD CRLF Year month day TIME HH MM SS CRLF Hour minute second AAAA UUUUUU CC DDDDD E EE CRLF Alarm status the order corresponds to the level numbers H High limit alarm L...

Страница 28: ...Measured data n last 5 bytes 2 Number of bytes sent Number of bytes sent 5 n 6 This parameter can be sent either from the most significant byte or from the least significant byte as specified by the B...

Страница 29: ...O command Abnormal data 7E7E is the data value output for overrange 8181 is the data value output for overrange 8080 is the data value output when the channel is skipped 3 2 3 Output Format of Paramet...

Страница 30: ...decimal point in the following format The channel numbers can be specified with the LF command CRLF N Normal D Difference computation channel S Skipped channel Decimal point position This number indic...

Страница 31: ...ART One sampling 125 ms When outputting binary data A D and primary computation ESC T command from host Output of data If the ESC T command is received to output data before the data is updated the pr...

Страница 32: ...a type is the measured values FM0 01 04 Measured values are output as ASCII codes From channel 01 To channel 04 All channels are specified LF 01 04 The channels for which the set values are output are...

Страница 33: ...any channel at any time interval can be read by the host PC using LF commands as many times as required Thus once the ESC T command has been sent the measured values and set values can be read any num...

Страница 34: ...mmand Output format ERxx CR LF xx 00 to 10 See Section 2 4 2 for details Note An error message is output only when the ESC S command is sent If the ESC S command request for error message is sent to a...

Страница 35: ...g of Resetting the Error Status When the VR200 receives an ESC S command after an error occurred the recorder outputs the corresponding error message and the error status is reset at the same time Err...

Страница 36: ...PC 120 130 To input and save parameter settings 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 220 OPEN CO...

Страница 37: ...Parity none Control OFF OFF 190 Data length 8 bits Others LF is sent automatically 200 210 220 OPEN COM1 1200 N 8 1 LF AS 1 230 OPEN TEST DAT FOR INPUT AS 2 240 250 PRINT 1 CHR 27 O 01 260 LINE INPUT...

Страница 38: ...8 bits Others LF is sent automatically 200 210 220 OPEN COM1 1200 N 8 1 LF AS 1 230 OPEN TEST DAT FOR OUTPUT AS 2 240 250 LF CHR HA Line feed 0AH 260 PRINT 1 CHR 27 O 01 270 PRINT 1 TS2 280 PRINT 1 C...

Страница 39: ...ontrol OFF OFF 200 Data length 8 bits Others LF is sent automatically 210 220 230 OPEN COM1 1200 N 8 1 LF AS 1 240 OPEN TEST DAT FOR OUTPUT AS 2 250 260 LF CHR HA Line feed 0AH 270 PRINT 1 CHR 27 O 01...

Страница 40: ...260 PRINT 1 CHR 27 O 01 270 PRINT 1 TS0 280 PRINT 1 BO1 290 300 PRINT 1 CHR 27 T 310 PRINT 1 FM1 01 04 320 D INPUT 2 1 330 PRINT 2 D 340 A CVI MID D 1 2 350 PRINT A 360 D INPUT A 1 370 PRINT 2 D 380...

Страница 41: ...e degree symbol of C or F as follows a In case of measured values output TS0 and unit and decimal point output TS2 space 20H b In case of setting parameter output TS1 E1H c In case of recorder setting...

Страница 42: ...letters for file names based on the rules of MS DOS System reserved File Names The following system reserved file names cannot be used for a user defined file name CON PRN AUX AUX1 AUX2 NUL CLOCK Proh...

Страница 43: ...ut format in ASCII mode 3 2 output format in binary mode 3 3 request for output 2 10 3 1 message writing 2 12 O open command 2 14 output data format 3 2 output data selection 2 10 P parameters 2 2 par...

Страница 44: ...l settings 2 7 U unit information channel selection 2 11 output format 3 5 request for output 2 10 3 1 unit settings 2 5 W waveform display 2 9 waveform span rate 2 9 winter time 2 8 writing time axis...

Страница 45: ...se shall not exceed the purchase price of the component upon which liability is based In no event shall OMEGA be liable for consequential incidental or special damages CONDITIONS Equipment sold by OME...

Страница 46: ...rs Turbine Paddlewheel Systems Totalizers Batch Controllers pH CONDUCTIVITY pH Electrodes Testers Accessories Benchtop Laboratory Meters Controllers Calibrators Simulators Pumps Industrial pH Conducti...

Отзывы: