Omega Products RD260A-S4 Installation Manual

User’s Guide
http://www.omega.com
e-mail: info@omega.com
R D 2 6 0 A - S 4
RS422A Communications
I n s t ruction Manual
OMEGAne t®On-Line Service Internet e-mail
h t t p : / / w w w.omega.com i n f o @ o m e g a . c o m
Servicing North America:
USA: One Omega Drive, Box 4047
Tel: (203) 359-1660 FAX: (203) 359-7700 e-mail: info@omega.com
Canada: 976 Bergar
Laval (Quebec) H7L 5A1 Tel: (514) 856-6928 FAX: (514) 856-6886 e-mail: info@omega.ca
For immediate technical or application assistance:
USA and Canada: Sales Service: 1-800-826-6342 / 1-800-TC-OMEGA
Customer Service: 1-800-622-2378 / 1-800-622-BEST Engineering Service: 1-800-872-9436 / 1-800-USA-WHEN TELEX: 996404 EASYLINK: 62968934 CABLE: OMEGA
Mexico and Latin America: Tel: (001) 800-826-6342 FAX: (001) 203-359-7807
En Espan˜ol: (001) 203-359-7803 e-mail: espanol@omega.com
SM
SM
SM
Servicing Europe:
Benelux: Postbus 8034, 1180 LAAmstelveen, The Netherlands
Tel: (31) 20 6418405 FAX: (31) 20 6434643 Toll Free in Benelux: 0800 0993344 e-mail: nl@omega.com
Czech Republic: ul. Rude armady 1868, 733 01 Karvina-Hranice
Tel: 420 (69) 6311 8 9 9 FAX: 420 (69) 631111 4 Toll Free: 0800-1-66342 e-mail: czech@omega.com
France: 9, rue Denis Papin, 78190 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) 8540 Toll Free in Germany: 0130 11 21 66 e-mail: info@omega.de
United Kingdom: One Omega Drive, River Bend Technology Centre
ISO 9002 Cert i f i e d Northbank, Irlam, Manchester
M44 5EX, United Kingdom Tel: +44 (0) 161 777-6611 FAX: +44 (0) 161 777-6622 Toll Free in United Kingdom: 0800-488-488 e-mail: info@omega.co.uk
It is the policy of OMEGA to comply with all worldwide safety and EMC/EMI regulations that a p p l y. OMEGA is constantly pursuing certification of its products to the European New Appro a c h D i rectives. OMEGA will add the CE mark to every appropriate device upon cert i f i c a t i o n .
The information contained in this document is believed to be correct, but OMEGA Engineering, Inc. accepts no liability for any errors it contains, and reserves the right to alter specifications without notice. WARNING: These products are not designed for use in, and should not be used for, patient-connected applications.
Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Chapter 6 Chapter 7
INTRODUCTION
This Instruction Manual describes the option RS-422-A for the RD260A pen and dot printing recorder. For details concerning the operation of this recorder, see the instruction manual.
NOTES • OMEGA reserves the right to change this manual at any time without notice.
• If you find any ambiguities or errors in this manual, please inform OMEGA
• PC 9801 is a registered trademark of NEC Corporation.
• IBM is a registered trademark of International Business Machines Corporation.
1
CONTENTS
1 INSTALLATION OF RS-422-A INTERFACE
2 RECEIVING FUNCTIONS
INTRODUCTION
1.1 Interface Functions................................................................................................. 1 - 1
1.2 Interface Terminal................................................................................................... 1 - 2
1.2.1 Terminal Arrangement........................................................................................ 1 - 2
1.2.2 Cable Termination .............................................................................................. 1 - 2
1.3 Communication Wiring.......................................................................................... 1 - 3
1.4 Data Configuration ................................................................................................. 1 - 4
1.4.1 Start-Stop Communication ................................................................................. 1 - 4
1.4.2 Text .................................................................................................................... 1 - 4
1.4.3 Input Buffer......................................................................................................... 1 - 5
1.4.4 Buffer Overflow................................................................................................... 1 - 5
1.5 How to Set the RS-422-A Interface Communications ............................... 1 - 6
2.1 Program Set Commands ..................................................................................... 2 - 1
2.1.1 List of Program Set Commands ......................................................................... 2 - 2
2.1.2 Range Setting..................................................................................................... 2 - 3
2.1.3 Offsets Setting.................................................................................................... 2 - 5
2.1.4 Alarm Setting...................................................................................................... 2 - 5
2.1.5 Unit Setting......................................................................................................... 2 - 5
2.1.6 Chart Speed Setting ........................................................................................... 2 - 5
2.1.7 Clock Setting ...................................................................................................... 2 - 6
2.1.8 Trend Recording Format Setting ........................................................................ 2 - 6
2.1.9 Zone Recording Setting...................................................................................... 2 - 6
2.1.10 Partial Expanded Recording Setting .................................................................. 2 - 6
2.1.11 Tag Setting ......................................................................................................... 2 - 6
2.1.12 Message Setting................................................................................................. 2 - 7
2.1.13 Chart Speed 2 Setting ........................................................................................ 2 - 7
2.1.14 Key Lock Setting ................................................................................................ 2 - 7
2.2 Program Control Commands.............................................................................. 2 - 8
2.2.1 List of Program Control Commands ................................................................... 2 - 8
2.2.2 Start/Stop the Recording .................................................................................... 2 - 8
2.2.3 Manual Printout Start/Stop ................................................................................. 2 - 8
2.2.4 List Printout Start/Stop ....................................................................................... 2 - 8
2.2.5 Message Printout Start....................................................................................... 2 - 8
2.2.6 Returning Display to OPERATION Mode........................................................... 2 - 9
2.2.7 Designation Sequence of Byte Output (Binary output)....................................... 2 - 9
2.2.8 Selection of Output Data .................................................................................... 2 - 9
2.2.9 Selection of Output Format for Measured Data.................................................. 2 - 9
2.2.10 Selection of Output Format for Unit/Decimal Point Information.......................... 2 - 9
2.3 Escape Sequence .................................................................................................. 2 - 10
2.3.1 Execution of Trigger ........................................................................................... 2 - 10
2.3.2 Status Output ..................................................................................................... 2 - 10
2.3.3 Open Command ................................................................................................. 2 - 11
2.3.4 Close Command................................................................................................. 2 - 11
3 TRANSMITTING FUNCTIONS
3.1 Introduction to Output Data Formats ............................................................... 3 - 1
3.1.1 TS0..................................................................................................................... 3 - 1
3.1.2 TS1, TS2 ............................................................................................................ 3 - 1
3.2 Output Data Formats ............................................................................................. 3 - 2
3.2.1 Output Format of Measured Values in the ASCII Mode ..................................... 3 - 2
3.2.2 Output Format of Measured Values in the Binary Mode .................................... 3 - 3
3.2.3 Output Format of Setting Parameters ................................................................ 3 - 4
3.2.4 Output Format of Information on Unit and Decimal Point................................... 3 - 4
3.3 Status Byte Format ................................................................................................ 3 - 5
2
Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Chapter 6 Chapter 7
4 TIME CHART
5 INITIAL STATUS
6 ERRORS DURING RS-422-A OUTPUT
6.1 Preventing Errors.................................................................................................... 6 - 1
6.2 How to Request for Error Message Output................................................... 6 - 2
6.3 Timing of Resetting Error Status....................................................................... 6 - 2
7 SAMPLE PROGRAMS
7.1 Sample Programs for NEC PC 9801............................................................... 7 - 1
7.1.1 Program to Read Information on Unit and Decimal Point from the recorder,
Display on Screen and Write to Disc (Dot-printing model) ................................. 7 - 1
7.1.2 Program to Output Measured Data (ASCII code) from the recorder and
Write to Disc (Dot-printing model) ...................................................................... 7 - 1
7.1.3 Program to Output Measured Data (Binary code) from the recorder and
Write to Disc (Dot-printing model) ...................................................................... 7 - 2
7.2 Sample Programs for YEWMAC....................................................................... 7 - 3
7.2.1 Program to Read Information on Unit and Decimal Point from the recorder
and Display on Screen (Dot-printing model) ...................................................... 7 - 3
7.2.2 Program to Output Measured Data (ASCII code) from the recorder
and Display on Screen (Dot-printing model) ...................................................... 7 - 3
7.2.3 Program to Output Measured Data (Binary code) from the recorder
and Display on Screen (Dot-printing model) ...................................................... 7 - 4
7.3 Sample Programs for IBM PC............................................................................ 7 - 5
7.3.1 Program to Read Information on Unit and Decimal Point from the recorder,
Display on Screen and Write to Disc (Dot-printing model) ................................. 7 - 5
7.3.2 Program to Output Measured Data (ASCII code) from the recorder and
Write to Disc (Dot-printing model) ...................................................................... 7 - 5
7.3.3 Program to Output Measured Data (Binary code) from the recorder and
Write to Disc (Dot-printing model) ...................................................................... 7 - 6
3
1.1 Interface Functions
1
INSTALLATION OF RS-422-A INTERFACE
The -S4 option includes EIA (Electronic Industries Association) RS-422-A communica­tions interface to output measured values and change settting parameters. However, this interface does not include operations of the power switch and chart feed. Setting of SET UP mode can not be controlled.
1.1 Interface Functions
Communication system: 4 wire half-duplex multi-drop connection
1:n (host computer: this recorder) n=1 to 16 Start-stop system
Transmission speeds: 75, 150, 300, 600, 1200, 2400, 4800 and 9600
bits/second Start bit: 1 bit Stop bit: 1 or 2 bits Parity: Even, odd or no parity Word length: 7 or 8 bits Electrical signal characteristics: EIA-standard electrical characteristics for the
interchange signals and associated circuitry.
Functional isolation.
Communication distance: Up to 500 meter (between an isolated line converter
or an isolated computer and this recorder)
1 INSTALLATION OF RS-422-A INTERFACE
1 - 1
1.2 Interface Terminal
1.2.1 Terminal Arrangement
SD A SD B SG G(Signal Ground)
WARNING
1.2.2 Cable Termination
RD A Connect RD to TD of computer,
and connect SD to RD of computer.
RS-422-A Indication
Option Terminal Block
Figure 1.1 Terminal Arrangement
RD B FG G(Frame Ground)
There is the power supply terminal near the interface terminal. To prevent an electric shock, ensure the main power supply is turned OFF.
Shield potential
RS-422-A Terminals
GND
SD A
SD B
WARNING
1 - 2
RD B
RD A
Used terminal screws:
ISO M4, length 6 mm
Figure 1.2 Cable Termination
It is recommended that “crimp on” lugs (for 4 mm screws) with insulation sleeves be used for leadwire ends.
There is the power supply terminal near the interface terminal. To prevent an electric shock, ensure the main power supply is turned OFF.
1.3 Communication Wiring
If the host (PC) is equipped with a RS-422-A interface, this recorder can be connected directly. If the host (PC) is equipped with a RS-232-C interface, this recorder can be connected using a converter which has fail safe function (SHARP Z-101HE or equivalent).
Shown below are two wiring examples, which are same except for the case-shielding. If there will be a connection between other panels, wiring should be done as shown in figure b.
Personal Computer
RS-232-C
a
Recorder
TD (–)
*
R
RD A
TD (+)
RD (–)
SD A
RD B
RD (+)
SHIELD
SD B
FG G
SG G
Converter Z-101HE (SHARP)
RD A
RD B
SD A
SD B
FG G
SG G
1.3 Communication Wiring
*
R
SD A
SD B
RD A
RD B
FG G
SG G
1 INSTALLATION OF RS-422-A INTERFACE
Personal Computer
RS-232-C
#1
Converter Z-101HE
RD (+)
SHIELD
(SHARP)
TD (–)
TD (+)
RD (–)
*
R
#2
b
*
R
Recorder
*: R in figure 1.3 indicates a terminal resistance. R=100 , 1/2W min (adjust according to the impedance).
The converter is of the inverter type. The + and – polarity depends on the type of converter.
Figure 1.3 Communication Wiring
RD A
RD B
#1
SD A
SD B
FG G
SG G
RD A
RD B
#2
SD A
SD B
FG G
SG G
In case of wiring as shown in figure a, use two pairs of 24AWG (minimum) twisted shielded cables or equivalent. In case of wiring as shown in figure b, use three pairs of 24AWG (minimum) twisted shielded cables or equivalent. One pair is used for SG in case of figure b. (Characteristic impedance: 100 , capacitance 50pF/m)
#n (n 16)
SD A
SD B
RD A
RD B
SG G
#n (n 16)
FG G
WARNING
Keep the terminated unshielded section to a minimum and clear of this recorder ground line.
There is the power supply terminal near the interface terminal. To prevent an electric shock, ensure the main power supply is turned OFF.
1 - 3
1.4 Data Configuration
The relation between the signal and the potential of the RS-422-A terminals is as follows: A<B :1
1.4.1 Start-Stop Communication
The RS-422-A interface communicates with the start-stop system. The start-stop system first adds the start bit to the head and then in turn adds the data bits (7 to 8 bits), parity bit and stop bit(s) in every transmission of one character (see figure 1.4). See section 1.5 for the address, communication (baud) rate, data length, parity bit, and stop bit(s) settings. The start bit is automatically added and no setting is necessary.
Idle status of the line 1
A>B :0
Data bits (7 to 8 bits)
one character
Restoring the line to the idle status (broken line) or start bit of the next new data (solid line)
1.4.2 Text
0
Start bit
Parity bit: odd, even or not used
Figure 1.4 Start-Stop System for One Character
Stop bit 1 1 or 2
Communication data usually takes the form of more than one character to which a terminator is added. This is called text. See also figure 1.5.
A B C D E CR LF
one character terminator
one text
Figure 1.5 Structure of Text
The RS-422-A interface identifies a text by regarding the reception of a terminator as the end of text. See also figure 1.6.
identifies text 1 identifies text 2
1 - 4
A B C CR LF D E F G CR LF
text 1 text 2
Figure 1.6 Example of Two Texts, Where the Terminator is CR-LF
NOTE This recorder identifies text by regarding LF or ‘;’ as the terminator when receiving
the data (and will send CR and LF as the terminator). However, only CR + LF is usable as the terminator for open command (ESC O) and close command (ESC C). As in the example shown in figure 1.6, when CR and LF are used as the terminator, CR is ignored. Therefore, when communication is performed with a PC, the terminator LF might not be sent. Exercise care.
1.4.3 Input Buffer
1.4.4 Buffer Overflow
1.4 Data Configuration
The input buffer takes the form of rotary buffer (capacity: 256bytes). The rotary buffer outputs a text on the first-in first-out basis while storing data in turn. It is not necessary for the user to be aware of in the program, however take care to prevent buffer over­flow. A merit of the rotary buffer is that it can flexibly cope with more than one text being sent contiguously because of low loss against variable text length.
As described before, the input buffer is necessary for data communication. The capac­ity, however, is limited (256 bytes for this recorder). Thus, in the receiver, the buffer capacity may become shorted if vast data is sent in a short time. These impair data communications (buffer overflow). To prevent buffer overflow, it is recommended to confirm the status of the recorder using the ESC S command just after commands have been sent (from the PC). See subsection 2.4.2. Note that you cannot send an ESC S command after having sent an LF or FM command. After the recorder receives the ESC S command, it will output its status to the PC. Actually, the recorder will store the ESC S command in the input buffer and this command will be read from this buffer. Then the status will be output to the PC. If the computer sends other commands before the status of the recorder has been receiveid, the input buffer will not be empty (the ESC S command will be still in there), which means the recorder cannot receive other commands yet.
1 INSTALLATION OF RS-422-A INTERFACE
Figure 1.7 Rotary Buffer
start 1
text 1
end 1 start 2
text 2
end 2
text 3 start 3
end 3
1 - 5
1.5 How to Set the RS-422-A Interface Communications
1 Remove the recorder packing material as described 1.2.2 in the Instruction Manual of
this recorder and remove the lock screw.
2 Enter the SET UP mode by turning ‘ON the power while pressing the [CH UP] (
[ENT] key.
3 Use the [ ] key to select the display . Press the [ENT] key.
4 Set the RS-422-A address (possibilities are from 01 to 16) using the [ ] key.
The initial value is 01. Press the [ENT] key.
5 Select the transmission speed (baud rate). The speed is selcetable from 75, 150, 300,
600, 1200, 2400, 4800 and 9600 bits/second using the [ ] key. After selection, press the [ENT] key. The initial value is 9600 bps.
6 Select the data length. The length is selectable from (7 bits) or (8
bits) using the [ ] key. After selection, press the [ENT] key. The initial value is 8 bits.
7 Select the parity bit. This bit is selectable from , or using the
[ ] key. After selection, press the [ENT] key. The initial value is .
8 Select the number of stop bits. This is selectable from (1 bits) or (2
bits) usig the [ ] key. After selection, press the [ENT] key. The initial value is 1 bit.
The display will appear. You can now adjust other settings in the SET UP mode, by using the [ ] key.
Before leaving the SET UP mode, you have to store your new settings. Press the [ ] key until the display appears.
Press the [ENT] key. Select to keep your new settings or and press the [ENT] key. After a few seconds, the OPERATION mode will appear.
1 - 6
2 RECEIVING FUNCTIONS
This chapter describes program set commands and program control commands. Re­member first to open a device by the ESC O command before the set or control com­mands can be sent.
2.1 Program Set Commands
2.1 Program Set Commands
Commands are represented by ASCII codes and divided into an identifier, parameters, delimiters and a terminator. Example: SA02, 1, ON, L, 1000, ON, I04 terminator
parameter identifier
identifier
• Defined by two alphabetical, capital characters
parameter
• Parameters are separated by a delimiter (comma)
• Numeric data are displayed by integers (e.g. +20, –240)
• When parameters are numeric, the effective setting ranges depend on these parameters
• Spaces preceding and following a parameter, or a space within a parameter are ignored.
• Parameters which do not need to be changed can be omitted. Delimiters, however, can not be omitted. (e.g. SA02, , ON: level number of alarm is unchanged)
• A string of delimiters at the end of a command/parameter string may be omitted (see example below). E.g. SA02, 1, ON, L, , , can be omitted
• The length of the following parameters is fixed. If the length differs,
syntax errors will occur.
- Date and time YY/MM/DD (eight characters)
HH:MM:SS (eight characters)
- Channel CC (two characters, e.g. channel 1 must be entered
as 01)
terminator
A command ends with one of the following terminators:
CR + LF LF ; (semicolon)
When using the ESC O or ESC C command, only the CR + LF terminator is valid.
2 RECEIVING FUNCTIONS
2 - 1
Loading...
+ 28 hidden pages