User’s Guide http://www.omega.com e-mail: info@omega.
OMEGAne t ® On-Line Service http://www .omega.com Internet e-mail info@omega.com Servicing North America: USA: ISO 9001 Certified Canada: One Omega Drive, Box 4047 Stamford, CT 06907-0047 Tel: (203) 359-1660 e-mail: info@omega.com 976 Bergar Laval (Quebec) H7L 5A1 Tel: (514) 856-6928 e-mail: info@omega.
PREFACE This instruction manual describes the optional RS-422-A communication 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 Machines Corporation. • “MS-DOS” and “Windows” are trademarks of Microsoft Corporation.
CONTENTS PREFACE Chapter 1 INSTALLING THE RS-422-A INTERFACE 1.1 Interface Specifications ................................................................................................................ 1-1 1.2 Interface Terminal ........................................................................................................................ 1-2 1.2.1 Terminal Assignment ...................................................................................................... 1-2 1.2.
CONTENTS Chapter 2 Chapter 3 Chapter 3 TRANSMITTING FUNCTIONS 3.1 Introduction to Output Data Formats ............................................................................................ 3-1 3.1.1 TS0 .................................................................................................................................. 3-1 3.1.2 TS1 and TS2 ................................................................................................................... 3-1 3.2 Output Data Formats ....
1.1 Interface Specifications Chapter 1 INSTALLING THE RS-422-A INTERFACE 1.
1.2 Interface Terminal 1.2.1 Terminal Assignment SD A SD B SG G (signal ground) RD A RD B FG G (frame ground) MEMORY Connect RD to TD of the host computer. Connect SD to RD of the 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-on lugs (for 4 mm screws) with insulation sleeves for the leadwire ends. Figure 1.
1.3 Communication Wiring 1.3 Communication Wiring Shown below are two wiring examples, which are the same except for the case shielding. If there will be a connection between different panels, wiring method b should be used. Personal computer Converter Z-101HE (SHARP) R* a R* Personal computer Converter Z-101HE (SHARP) R* b R* * R in the figure denotes the terminal resistance. R: 100W, 1/2 W or greater (adjust according to the impedance. The converter shown above is the inverter type.
If A < B, then signal = 1 If A > B, then signal = 0 1.4.1 Start-stop (Asynchronous) Communication The built-in RS-422-A interface communicates based on the start-stop (asynchronous) system. The start-stop system first adds the start bit to the head and then in turn adds the data bits (7 or 8 bits), parity bit, and stop bit(s) to every transmission of each character (see Figure 1.4).
1.4 Data Configuration Note The VR200 identifies an LF as the end of a text when receiving data (and sends a CR and LF as the terminator when sending data). As shown in the example in Figure 1.6, when a CR and LF are used as the terminator, the CR is ignored. Take care when communicating with a PC, since some PCs may not send the LF character depending on the mode when the PRINT command, etc. is invoked. The input buffer of the VR200 recorder is a rotary buffer.
1.5 Setting up the RS-422-A Communication Interface SETUP PROCEDURE: 1 Unpack the VR200 recorder. 2 While pressing the [ ] key, turn on the power to enter the SETUP mode. 3 Use the [▲]/[▼] keys to select the display ‘SETUP=OPT,’ then press the [ ] key. 4 Use the [▲]/[▼] keys to select the display ‘OPT=COMM,’ then press the [ ] key. 5 Use the [▲]/[▼] keys to select the address of the RS-422-A interface of the recorder from 01 to 16, then press the [ ] key. The default is ‘01.
2.1 General Rules for Commands Chapter 2 RECEIVING FUNCTIONS This chapter describes the program set commands and program control commands. Remember first to open a device by invoking the ESC O command before the set or control commands can be sent. A command is represented by ASCII codes and consists of an identifier, parameters, delimiters and a terminator. Example: SR01, VOLT, 20 mV, 0, 10000 terminator Parameters Identifier Identifier • Defined by two alphabetical, capital letters.
2.2 Program Set Commands 2.2.1 List of Program Set Commands Command Type Command SR SA SN SW SD SY SZ SP SK ST SL SF SG SC SM SH SX MD Set Function Sets the input range and display scale. Sets the alarms. Sets the engineering unit. Sets the waveform span rate. Sets the date and time. Copies the channel settings. Sets the discrete (zone) display. Sets the partial expanded display. Sets whether to display the scale values. Sets the tag number. Sets the trip level. Sets the floppy disk format.
2.2 Program Set Commands Input range table Input type DC Voltage TC RTD Input Measurement range Unit 20 mV -20.00 to 20.00 mV mV 60 mV 60 mV -60.00 to 60.00 mV mV 200 mV 200 mV -200.0 to 200.0 mV mV 2V 2V -2.000 to 2.000 V V 6V 6V -6.000 to 6.000 V V 20 V 20 V -20.00 to 20.00 V V Range Measurement range ˚C Measurement range ˚F R 0.0 to 1760.0 ˚C 32 to 3200°F S 0.0 to 1760.0˚C 32 to 3200°F B 0.0 to 1820.0˚C 32 to 3308°F K -200.0 to 1370.0˚C –328.0 to 2498.
Example: SR01, SCL, VOLT, 20mV, 0, 1000, –1000, 1000, 1 This example performs 0 to 10 mV input in channel 01 and 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 to omit all three values if you do not want to change them. SQRT (Square Root) Format: SRp1, mode, p2, p3, p4, p5, p6, p7 p1: Channel number (CC) mode: SQRT p2: Range designation Selectable from 20mV, 60mV, 200mV, 2V, 6V, and 20V.
2.2 Program Set Commands 2.2.4 Setting the Unit (See Section 4.3 of the instruction manual for the VR200.) Format: SNp1, p2 p1: Channel number (CC) p2: Engineering unit (up to six characters) 2.2.5 Setting the Waveform Span Rate (TIME/DIV) (See Section 4.4 of the instruction manual for the VR200.) Format: SWp1 p1: Select the waveform span rate from 1, 5, 10, 20, 30, and 60 (minutes). Example: SW1 This example sets the waveform span rate to 1 minute. 2.2.6 Setting the Clock (See Section 4.
2.2.8 Setting the Discrete (ZONE) Display (See Section 4.7.1 of the instruction manual for the VR200.) Format: SZp1, p2, p3 p1: p2: p3: Channel number (CC) Lower display boundary value (0 to 95) Upper display boundary value (5 to 100) Example: SZ02, 30,50 This example results in the display for 0 to 100% of channel 2 in the band from 30 to 50% of the scale. Note • The display bandwidth cannot be set to 5% or less. • The lower display boundary must be less than the upper boundary. 2.2.
2.2 Program Set Commands 2.2.12 Setting the Trip Level (See Section 4.7.5 of the instruction manual for the VR200.) Format: SLp1, p2, p3 p1: 2 RECEIVING FUNCTIONS p2: p3: p4: Trip level number VR100 and VR200 with style number 1 or lower 1 for level 1 (red line) 2 for level 2 (yellow line) VR200 with style number 2 higher 1 to 6 Whether to display. Enter “ON” or “OFF.” Level. 0 to 100 (%). Color (RED, GRN, BLU, BRN, PRP, L.BLU, ORG, GRY, W.
2.2.15 Setting the LCD Brightness and LCD Saver (LCD) (See Section 4.8 of the instruction manual for the VR200.) Format: SCp1, p2, p3 p1: p2: p3: LCD brightness level. 0 to 15 Sets the LCD saver function “ON” or “OFF.” Timer setting to activate the LCD saver. Select from 1, 2, 5, 10, 30, and 60 (minutes). Example: SC8, ON, 10 This example sets the brightness level to 8 and the LCD saver to be activated in 10 minutes after the last key operation. 2.2.
2.2 Program Set Commands If your model has -3M option, add the parameter p3. p3: Select the methods when saving measurement data to the floppy disk: ALL (default) save all measurement data from the VR200 internal memory. UNSAVED: Save only the meansurement data newly loaded to the VR200 internal memory, after the last time you saved to the floppy disk. 2 RECEIVING FUNCTIONS 2.20 Waveform Display and Scale Display Setting (DISP_WAVE, for the VR 200 with style number 2 or higher) (see section 4.7.
2.3 Program Control Commands 2.3.1 List of Program Control Commands Command Type Command Function UD AK MI EV BO TS FM LF Returns the screen to the standard screen. Acknowledges the alarm(s). Initializes the data memory. Writes a time-axis mark or raises a manual trigger. Specifies the bit sequence in bytes (for binary output). Specifies which data value is to be output. Specifies the data format of the measured value to be output.
2.3 Program Control Commands 2.3.7 Selecting the Output Data Command TS0 TS1 TS2 Function Requests the measured values. Requests the parameter set values. Requests unit and decimal point information. 2.3.
2.3.12 Message Writing(for the VR 200 with style number 2 or higher) Command MEp1 Function Selects message number for which parameter set values to be displayed and the information file is saved. 2.3.
2.4 Escape Sequence 2.4 Escape Sequence The following escape sequence commands are used to control the communications. 2.4.1 Execution of Trigger ESC T CRLF Requests for the data to be prepared in the buffer. 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. Make sure to send the terminator (CR and LF) following “ESC T.” 2.4.2 Status Output ESC S CRLF Outputs status.
Note A syntax error status is set when detected and reset when read by the host PC. On the contrary, the Memory End status still reflects the current status even after being read. Example: ESC S 1 Status of the syntax error 0 Syntax error status in output buffer For instance, sending “ER02” resets the syntax error status even though the error still exists. The ESC S command may not be returned correctly if it is sent immediately after sending the FM or LF command.
3.1 Introduction to Output Data Formats Chapter 3 TRANSMITTING FUNCTIONS This chapter describes the different output formats. 3.1 Introduction to Output Data Formats The type of data to be sent from the VR200 recorder is specified by the TS command (TS0, TS1, or TS2: see Section 2.3.7), and the output data format is specified by the FM command (see Section 2.3.8). Note The specification of the data type by the TS command is effective only when the ESC T command is sent afterwards.
3.2 Output Data Formats There are four formats in which data can be output. • TS0 + ESC T + FM0 (outputs measured values in ASCII mode) • TS0 + ESC T + FM1 (outputs measured values in Binary mode) • TS1 + ESC T + LF (outputs parameter setting values) • TS2 + ESC T + LF (outputs information on engineering unit and decimal point) 3.2.1 Output Format of Measured Values in ASCII Mode When the TS0, ESC T, and FM0 commands are received, the measured values and computed results are output as ASCII codes.
3.2 Output Data Formats 3.2.2 Output Format of Measured Values in Binary Mode When the TS0, ESC T and FM1 commands are received, the measured values and computed results are output in binary.
(4) Measured data Byte 1 2 A2 3 A1 A4 4 5 A3 Alarm status Measured value * (for each level) A1 to An correspond to statuses for levels 1 to 4.
3.2 Output Data Formats 3.2.4 Output Format of Unit and Decimal Point Information When receiving the TS2, ESC T, and LF commands, the VR200 recorder sends the information on the unit and decimal point in the following format. The channel numbers can be specified with the LF command. , , CR LF Decimal point position This number indicates the number of digits after the decimal point (0 to 4).
Chapter 4 TIME CHART ;; ;;;; ;;;; One sampling (125 ms) A/D and primary computation ESC T command from host When outputting binary data * Output of data 4-1 4 TIME CHART * If the ESC T command is received to output data before the data is updated, the previous sample data will be output.
Chapter 5 INITIAL STATUS The initial status after power on is as follows. TS0 Output data 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: From channel 01 To channel 04 (All channels are specified.) BO1 Beginning with the least significant byte (LSB).
6.1 Preventing Errors Chapter 6 ERRORS DURING RS-422A 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.
6.2 How to Request Error Message Output If an error occurs when the host sends a setting or control command to a VR200 recorder via the RS-422-A communication interface, the host can request the VR200 to output an error message. (1) Error message (error number) request command ESC S (CR) (LF) (1B)H (53)H (2) Error message sent from VR200 in reply to ESC S command Output format: ERxx (CR) (LF) (xx = 00 to 10. See Section 2.4.2 for details.
6.3 Timing of Resetting the Error Status 6.3 Timing 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. Error occurred. Error message request (ESC S) Error status is reset. Error message is output.
7.1 Program to Read Parameter Setting from VR200, Display Them on Screen and Write Them to Disk Chapter 7 PROGRAM EXAMPLES Examples of application programs for an IBM PC are shown below. Environment Computer used: IBM PC Mode: Character length = 8 bits, parity = none, stop bit = 1, baud rate = 1200 bps Handshake: None The file name used for writing to and reading from the floppy disk is TEST.DAT. 7.
7.
7.3 Program to Read Unit and Decimal point Information from VR200, Display It on Screen, and Write It to Disk 7.
7.
7.5 Program to Output Measured Data (in Bainary Code) from VR200 and Write to Disk 7.
Appendix 1 ASCII Code Table APPENDIX Appendix 1 ASCII Code Table APPENDIX Note • Select the 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: ° = E1H • Do not use any code whose corresponding character is not shown in the table (blanks). Use 20H for a space. IM 4N1A1-11E App.
Appendix 2 File Naming Rules File Name Length Data file: Up to seven alphanumeric characters Configuration (parameter settings) file: Up to eight alphanumeric characters Lowercase/Uppercase Letters All lowercase letters are processed as uppercase 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.
INDEX A alarms acknowledgment ............................................. 2-10 setting ................................................................ 2-4 ASCII codes ....................................................... App-1 C channel selection .................................................. 2-11 clock setting ............................................................ 2-5 close command ..................................................... 2-14 commands control ..................................
range settings DELT ........................................................... 2-2 DI (Digital Input) ........................................ 2-3 RTD ............................................................. 2-2 SCL (Scaling) .............................................. 2-3 SKIP ............................................................ 2-2 SQRT (Square Root) ................................... 2-4 TC ................................................................ 2-2 VOLT .......................
WARRANT Y/ DISCLAIMER OMEGA ENGINEERING, INC. warrants this unit to be free of defects in materials and workmanship for a period of 25 months from date of purchase. OMEGA Warranty adds an additional one (1) month grace period to the normal two (2) year product war ranty to cover handling and shipping time. This ensures that OMEGA’s customers receive maximum coverage on each product. If the unit malfunctions, it must be returned to the factory for evaluation.
Where Do I Find Everything I Need for Process Measurement and Control? OMEGA…Of Course! TEMPERATURE Thermocouple, RTD & Thermistor Probes, Connectors, Panels & Assemblies Wire: Thermocouple, RTD & Thermistor Calibrators & Ice Point References Recorders, Controllers & Process Monitors Infrared Pyrometers PRESSURE, STRAIN AND FORCE Transducers & Strain Gauges Load Cells & Pressure Gauges Displacement Transducers Instrumentation & Accessories FLOW/LEVEL Rotameters, Gas Mass Flowmeters & Flow Computers Air Ve