United Kingdom:One Omega Drive, River Bend Technology Centre
ISO 9002 Cert i f i e dNorthbank, Irlam, Manchester
M44 5EX, United Kingdom
Tel: +44 (0) 161 777-6611FAX: +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.
Page 3
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.
The option /C3 provides the VR200 view recorder with the EIA (Electronic Industries
Association) RS-422-A communication interface to allow a host computer to do the
following:
• read measured values,
• read parameters, and
• set parameters.
However, this interface does not allow the host computer to operate the power switch of
the VR100VR200 nor control the 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
Transmission speed:1200, 2400, 4800, or 9600 bits/s
Start bit:1 bit
Stop bit:1 or 2 bits
Parity:Even, odd, or none
Word length:7 or 8 bits
Electrical signal characteristics: EIA standard electrical characteristics for the
Communication distance:Up to 500 meters (between an isolated line converter
1 INSTALLING THE RS-422-A INTERFACE
1:n (1 = host computer and n = VR200 view recorders,
n = 1 to 16)
Start-stop (asynchronous) system
interchange signals and associated circuitry.
Functional isolation.
or an isolated-output computer and a VR200 recorder)
1 - 1
Page 7
1.2 Interface Terminal
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.
1.2.1 Terminal Assignment
MEMORY
Option terminalIndication of RS-422-A terminals
Figure 1.1 Terminal Assignment
1.2.2 Cable Termination
SD ASD BSG G (signal ground)
RD ARD BFG G (frame ground)
Connect RD to TD of the host computer.
Connect SD to RD of the host computer.
1 - 2
Figure 1.2 Cable Termination
To prevent an electric shock, ensure that the main power supply is turned off.
Page 8
1.3 Communication Wiring
If the host PC is equipped with an RS-422-A interface, the VR200 can be connected
directly. If the host PC is equipped with only an RS-232-C interface, the VR200 can be
connected using a converter (SHARP model Z-101HE or equivalent).
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.
1.3 Communication Wiring
1 INSTALLING THE RS-422-A INTERFACE
Personal
computer
a
Personal
computer
b
Converter
Z-101HE
(SHARP)
R*
R*
Converter
Z-101HE
(SHARP)
R*
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. The + and - polarity depends on the type of converter.)
Figure 1.3 Communication Wiring
In case a, use two pairs of 24 AWG (minimum) twisted shielded cables or the
equivalent. In case b, use three pairs of 24 AWG (minimum) twisted shielded cables or
the equivalent. The extra pair is used for SG in case b. (Characteristic impedance: 100
Ω, capacitance: 50 pF/m)
Keep the terminated unshielded section to a minimum and clear of the VR200 recorder
ground line.
To prevent an electric shock, ensure that the main power supply is turned off.
1.4 Data Configuration
The signal is determined by the potentials of RS-422-A terminals A and B, as follows:
1 - 3
Page 9
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). Define the address of the RS-422-A interface built in the
VR200 recorder, baud rate, data length, parity bit, and stop bit(s) in the SETUP mode
on the VR200 recorder.
The start bit is automatically added and thus need not be set.
Idle status of
the line
1
0
Start bit
Figure 1.4 Configuration of Each Character in Start-stop System
One character
Data bits
(7 or 8 bits)
Parity bit: odd,
even or none
Line released due to
the idle status (broken
line) or continued by
the start bit of the next
data (solid line).
Stop bit
1
1 or 2
1.4.2 Text
Each communication data usually contains more than one character, to which a
terminator character is appended. This is referred to as a text. See also Figure 1.5.
One character
Terminator
ABCDECRLF
One text
Figure 1.5 Structure of Text
The built-in RS-422-A interface identifies each text by regarding the reception of a
terminator as the end of the text. See also Figure 1.6.
Identifies text 1.
A B CCRLF D E F GCRLF
Text 1Text 2
Figure 1.6 Example of Two Texts Where Terminator Is CR/LF
Identifies text 2.
1 - 4
Page 10
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.
1.4.3 Input Buffer
The input buffer of the VR200 recorder is a rotary buffer. The rotary buffer outputs a
text on a first-in, first-out basis while storing the data in turn. The user must be aware
of this when programming, and take care to prevent the buffer from overflowing. One
merit of the rotary buffer is that it can flexibly cope with more than one text being sent
contiguously because of the low loss in case of variable text length.
Start 1
End 1
T
e
x
t
1
Figure 1.7 Rotary Buffer
Start 2
T
End 2
e
x
t
2
Start 3
T
e
x
t
3
End 3
1 INSTALLING THE RS-422-A INTERFACE
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). Thus, in the receiver,
the buffer capacity may not be sufficient if a lot of data is sent in a short time, causing
some data to be dropped and adversely affecting the data communications (buffer
overflow).
To prevent buffer overflow, confirm the status of the VR200 using the ESC S command
immediately after a command has been sent (from the PC).
Note
A PC may not be able to send the ESC S command after having sent the LF or FM command.
After receiving the ESC S command, the VR200 outputs its status to the PC. This is
done in the following sequence. The VR200 first stores the ESC S command in the
input buffer, then this command is read from the buffer. Consequently, the VR200
outputs its status to the PC. If the PC does not send the next command until it receives
the VR200 status, the next command will be always received without fail, since there
must be a space in the input buffer of the VR200.
1 - 5
Page 11
1.5 Setting up the RS-422-A Communication Interface
SETUP PROCEDURE:
1 Unpack the VR200 recorder.
2 While pressing the [
3 Use the [▲]/[▼] keys to select the display ‘SETUP=OPT,’ then press the [
4 Use the [▲]/[▼] keys to select the display ‘OPT=COMM,’ then press the [
5 Use the [▲]/[▼] keys to select the address of the RS-422-A interface of the recorder
from 01 to 16, then press the [
selected.
6 Use the [▲]/[▼] keys to select the baud rate from ‘1200,’ ‘2400,’ ‘4800,’ and
‘9600’ bps, then press the [
7 Use the [▲]/[▼] keys to select the data length between ‘7’ and ‘8’ bits, then press
the [
] key. The default is 8 bits.
8 Use the [▲]/[▼] keys to select the parity specification from ‘ODD,’ ‘EVEN,’ and
‘NONE,’ then press the [
9 Use the [▲]/[▼] keys to select the stop bit specification between ‘1’ and ‘2’ bits,
then press the [
10 The display ‘*COMM SET*’ appears, which shows that the communication setup is
completed.
To proceed to another setting in the SETUP mode if necessary, press the ESC key.
Before leaving the SETUP mode, you must store the new setting in the internal
memory. Press the ESC key to return to the ‘SETUP=OPT’ display, then select the
‘SETUP=END’ display using the [▲]/[▼] keys, then press the [
Finally,
• to store and make the new settings take effect, select the
‘END&INIT.DATA=STORE’ display using the [▲]/[▼] keys, then press the [
key; or
• to discard the new settings, select the ‘END&INIT.DATA=ABORT’ display using
the [▲]/[▼] keys, then press the [
The mode is then released from SETUP to operation in several seconds.
] key, turn on the power to enter the SETUP mode.
] key.
] key.
] key. The default is ‘01.’ Note that ‘00’ cannot be
] key. The default is 9600 bps.
] key. The default is ‘EVEN.’
] key. The default is 1 bit.
] key.
] key.
]
1 - 6
Page 12
2.1 General Rules for Commands
Chapter 2RECEIVING 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.
2.1 General Rules for Commands
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
Identifier
• Defined by two alphabetical, capital letters.
Parameters
• Parameters must be separated by a delimiter (comma).
• Numeric data are displayed as integers (e.g., +20, -240).
• When parameters are numeric, the effective setting ranges depend on these
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.
• Parameters which do not need to be changed do not need to be specified. (E.g., the
command “SR01,, 20mV” leaves the mode unchanged.)
• A string of delimiters at the end of the command/parameter string may be omitted
(see the example below).
Example: The last four commas of
SR01, VOLT,,,,
can be omitted.
• The lengths of the following parameters are fixed. If the length differs, a syntax error
occurs.
- Date and time: YY/MM/DD (8 characters)
HH:MM:SS (8 characters)
- Channel:CC (2 characters). For example, channel 1 must be entered as
“01.”
2 RECEIVING FUNCTIONS
Parameters
Identifier
Terminator
A command must end with either of the following terminators:
CR + LF
or,
LF
For the open (ESC O) and close (ESC C) commands, only CR+LF can be used.
2 - 1
Page 13
2.2 Program Set Commands
2.2.1 List of Program Set Commands
Command Type
Set
CommandFunction
Note
For restrictions concerning settings, refer to the instruction manual 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,
recorded and displayed.
Format: SRp1,mode
p1:Channel number (CC)
mode:SKIP
Example:SR01,SKIP
SR
SA
SN
SW
SD
SY
SZ
SP
SK
ST
SL
SF
SG
SC
SM
SH
SX
MD
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.
Sets the data file names.
Sets the LCD brightness and saver function.
Sets the messages.
Sets the number of division of the bar graph scale.
Sets wether to display the span rate and message menu.
Sets the waveform display and scale display.
VOLT, TC, RTD, and DELT
Format: SRp1,mode, p2, p3, p4
2 - 2
p1:Channel number (CC)
mode:VOLT, TC, RTD, or DELT (difference computation between the
specified channel and the reference channel)
p2:Specification of the range
For mode VOLT: 20mV, 60mV, 200mV, 2V, 6V, or 20V
For mode TC: R, S, B, K, E, J, T, N, W, L, or U
For mode RTD: JPT or PT (or, optionally CU1, CU2, CU3, CU4,
CU5, CU6, or CU25)
For mode DELT: the reference channel number. Note that the
reference channel number must be lower than the channel number
specified in p1.
p3:Enter the low limit value of the display span within 5 digits
excluding the decimal point and the + or - sign.
p4:Enter the high limit value of the display span within 5 digits
excluding the decimal point and the + or - sign.
Page 14
2.2 Program Set Commands
Input range table
Input typeRangeInputMeasurement rangeUnit
20 mV20 mV-20.00 to 20.00 mVmV
60 mV60 mV-60.00 to 60.00 mVmV
DC Voltage
Input typeRange
T C
R T D
* Allowed when the /N1 option (Cu10, Cu25) is equipped.
200 mV200 mV-200.0 to 200.0 mVmV
2 V2 V-2.000 to 2.000 VV
6 V6 V-6.000 to 6.000 VV
20 V20 V-20.00 to 20.00 VV
Measurement range
˚C
R0.0 to 1760.0 ˚C
S0.0 to 1760.0˚C
B0.0 to 1820.0˚C
K-200.0 to 1370.0˚C
E-200.0 to 800.0˚C
J-200.0 to 1100.0˚C
T-200.0 to 400.0˚C
L-200.0 to 900.0˚C
U-200.0 to 400.0˚C
N0.0 to 1300.0˚C
W0.0 to 2315.0˚C
JPT-200.0 to 550.0˚C
PT-200.0 to 600.0˚C
CU1 to CU6*-200.0 to 300.0˚C
CU25*-200.0 to 300.0˚C
Measurement range
32 to 3200°F
32 to 3200°F
32 to 3308°F
–328.0 to 2498.0°F
–328.0 to 1472.0°F
–328.0 to 2012.0°F
–328.0 to 752.0°F
–328.0 to 1652.0°F
–328.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
2 RECEIVING FUNCTIONS
˚F
DI (Digital Input)
SCL (Scaling)
Format: SRp1, mode, p2
p1:Channel number (CC)
mode:DI (digital input)
p2:Select the signal type from LEVL (level) or CONT (contact).
Example:SR01, DI, CONT
Format: SRp1, mode, p2, p3, p4, p5, p6, p7, p8
p1:Channel number (CC)
mode:SCL
p2:Input type. VOLT, TC or RTD
p3:Range
p4:Low limit value of the display span (LOWER SPAN). Enter 5
digits, excluding the decimal point and the + or – sign.
p5:High limit value of the display span (UPPER SPAN). Enter 5
digits, excluding the decimal point and the + or – sign.
p6:Lower scale limit (SCL LOWER). Enter 6 digits, excluding the
decimal point and the + or – sign.
p7:Upper scale limit (SCL UPPER). Enter 6 digits, excluding the
decimal point and the + or – sign.
p8:Decimal point position of scaling value (0 to 4, which stands for
the number of digits after the decimal point)
2 - 3
Page 15
SQRT (Square Root)
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.
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.
p3:Low limit value of the display span (LOWER SPAN). Enter 5
digits, excluding the decimal point and the + or – sign.
p4:High limit value of the display span (UPPER SPAN). Enter 5
digits, excluding the decimal point and the + or – sign.
p5:Lower scale limit (SCL LOWER). Enter 6 digits, excluding the
decimal point and the + or – sign.
p6:Upper scale limit (SCL UPPER). Enter 6 digits, excluding the
decimal point and the + or – sign.
p7:Decimal point position of the scaling value (0 to 4, which stands
for the number of digits after the decimal point)
Example:SR01, SQRT, 20mV, 0, 1000, –1000, 1000, 1
This example performs 0 to 10 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
2.2.3 Setting Alarms
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.
(See Section 4.2 of the instruction manual for the VR200.)
Format: SAp1, p2, ON/OFF, p3, p4, p5, p6
p1:Channel number (CC)
p2:Alarm level number (1 to 4)
ON/OFF: Set alarm ON or OFF.
p3:Type of alarm, selectable from:
H: High limit alarm
L: Low limit alarm
R: Rate-of-change limit on increasing signal
r: Rate-of-change limit on decreasing signal
h: Difference high limit alarm
l: Difference low limit alarm
p4:Alarm set point. Enter within 5 digits, excluding the decimal point
and the + or – sign. The decimal point position depends on the
range (or scaling) setting. See also the input range table on Page
2-3.
p5:Enter ON or OFF to specify whether to activate the alarm output
relay.
p6:Alarm output relay number. Selectable from I01 to I06, depending
on your option installed.
Example:SA02, 1, ON, L, 1000, ON, I04
This example defines the low limit alarm in alarm level 1 of channel 2, sets
the alarm setpoint to 1.000 V, and specifies output relay No. 4 to be activated
by this alarm.
2 - 4
Page 16
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)
Example:SN02, kg
This example assigns the unit “kg” to channel 2. Note that a unit can only be
assigned to channels of the SCL or SQRT input.
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 Program Set Commands
2 RECEIVING FUNCTIONS
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 to 12
DD: 01 to 31
p2:Time (HH:MM:SS)
HH: 00 to 23
MM: 00 to 59
SS: 00 to 59
Example:SD96/03/13, 15:02:00
2.2.7 Copying the Channel Settings
(See Section 4.6 of the instruction manual for the VR200.)
Format: SYp1, p2
p1:Channel number (CC) from which you want to copy the settings
(origin)
p2:Channel number (CC) to which you want to copy the settings
(destination)
Example:SY01, 03
This example copies all settings from channel 1 to channel 3.
Note
You can only copy from a lower channel number to a higher channel number.
2 - 5
Page 17
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:Channel number (CC)
p2:Lower display boundary value (0 to 95)
p3: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.9 Setting the Partial Expanded Display
(See Section 4.7.2 of the instruction manual for the VR200.)
Format: SPp1, p2, p3, p4
p1:Channel number (CC)
p2:Partial expanded display ON/OFF
p3:Percentage of the full display span which will be compressed (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 also the input range table on Page 2-3.
Example:SP01, ON, 25, 0000
This example results in partial expanded display for channel 1 where the
value at 25% of the display scale corresponds with 0.000V.
2.2.10 Setting the Scale Value Indication On/Off (DISP_SCALE, only for VR200
with style number 1 or lower)
(See Section 4.7.3 of the instruction manual for the VR200.)
Format: SKp1, p2
p1:Channel number (CC)
p2:Whether to display the scale values.
Enter “ON” or “OFF”.
2.2.11 Setting the Tag
(See Section 4.7.4 of the instruction manual for the VR200.)
Format: STp1, p2
p1:Channel number (CC) for which you want to set a tag number
p2:Tag number (up to 7 characters)
Example:ST01, TAG1
This example sets the tag of channel 1 to “TAG1.”
2 - 6
Page 18
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: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
p2:Whether to display. Enter “ON” or “OFF.”
p3:Level. 0 to 100 (%).
p4:Color (RED, GRN, BLU, BRN, PRP, L.BLU, ORG, GRY,
W.RED, only for VR200 with style number 2 or higher)
Example:SL1, ON, 70, RED
This example sets the red trip-level line to be displayed at 70%.
2.2.13 Setting the Floppy Disk Format Type (FD, only for VR104/VR202/VR204)
(See Section 5.1 of the instruction manual for the VR200.)
Format: SFp1
p1:“1.44M” for 1.44 MB 2HD
(or “1.2M” for 1.2 MB 2HD only if you use the Japanese version
software with an NEC PC-9801 series PC)
2 RECEIVING FUNCTIONS
Example:SF1.44M
This example defines that floppy disks will be formatted as 1.44 MB (2HD).
If your 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:Enter the file comment (in up to 32 characters).
p2:Specify the method of setting the file names:
“DATE” for using the names set automatically
“SET” for using the user-defined names
“AUTO” for automatically incrementing the file number.
p3:Name of the event file(s) (up to seven characters). The entry is
invalid when p2 is set to “DATE.”
When p2 is set to “AUTO,” enter the desired three characters for
the second to fourth characters of each file name.
p4:Name of the display data file(s) (up to seven characters). The
entry is invalid when p2 is set to “DATE.”
When p2 is set to “AUTO,” enter the three-digit serial number,
which will be set to the fifth to seventh characters of each file
name.
Example:SG, SET, TANK01, TWAVE01
This example defines “TANK01” and “TWAVE01” as the names of the
event file and display data file, respectively.
For the rules when specifying file names, see Appendix 2.
2 - 7
Page 19
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:LCD brightness level. 0 to 15
p2:Sets the LCD saver function “ON” or “OFF.”
p3: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.16 Setting the Summer/ Winter Time (DST)
(See Section 5.6 of the instruction manual for the VR200.)
Format: SSp1, p2
p1:“SUMMER” or “WINTER”
p2:Date and time (YY/MM/DD HH)
Example:SSWINTER, 96/10/10 01
2.2.17 Message setting (MESSAGE, only for the VR 200 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 message "MOTOR ON" to message 3.
2.2.18 Setting of the Number of Divisions of the Bar Graph Scale
(BAR_SCALE_DIV, for the VR 200 with style number 2 or higher)
(See Section 4.9 of the instruction manual for the VR200.)
Format: SHp1, p2
p1:Channel number (CC)
p2:Number of divisions (4 to 12)
Example:SH03, 7
2.2.19 ON/OFF Setting of the Waveform Span Rate Display, ON/OFF Setting of the
Message Menu (SPECIAL, for the VR 200 with style number 2 or higher)
(for VR200 only, see section 4.10 in the instruction manual)
Format: SXp1, p2
p1:Turn ON/OFF the waveform span rate display on the trend
display screen
p2:Turn ON/OFF the message writing menu in the operation mode
2 - 8
Example:SXON, OFF
Page 20
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.20 Waveform Display and Scale Display Setting (DISP_WAVE, for the VR 200
with style number 2 or higher)
(see section 4.7.3 in the instruction manual)
Format: MDp1, p2, p3
p1:Channel number (CC)
p2:Turn ON/OFF the waveform display
p3:Turn ON/OFF the scale display
Example:MD02, ON, ON
2 RECEIVING FUNCTIONS
2 - 9
Page 21
2.3 Program Control Commands
2.3.1 List of Program Control Commands
Command TypeCommandFunction
UD
AK
MI
EV
Control
2.3.2 Standard Screen Call
(For the standard screen, see Section 1.6.1 of the instruction manual for the VR100 or
the VR200.)
CommandFunction
UD0Returns the screen to the standard screen.
UD1Returns the digital values for channels 1 to 3.
UD2Returns the digital values for channels 4 to 6.
UD3Returns the digital values for channels 1 to 6.
BO
TS
FM
LF
LO
LI
ME
UM
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.
Specifies the channel for the request for the set value (TS1 command) or the
unit and decimal point (TS2 command).
Loads the specified SET configuration file.
Saves the settings (made in SET mode) with the specified file name.
Write the messages.
Switch the display
2.3.3 Alarm Acknowledge
(See Section 3.3 of the instruction manual for the VR100 or the VR200.)
CommandFunction
AK0Starts the alarm acknowledge function.
2.3.4 Initializing the Data Memory
(See Section 5.3 of the instruction manual for the VR100 or the VR200.)
CommandFunction
MIYESInitializes the data memory.
2.3.5 Writing a Time-axis Mark and Raising an Event Trigger
(See Sections 3.5 and 3.7 of the instruction manual for the VR100 or the VR200.)
CommandFunction
EV0VR100 and VR200 with style number 1 or lower: Writes a time-
axis mark.
VR200 with style number 2 or higher: Writes a message 1.
EV1Raises a manual trigger.
The manual trigger is effective only when the sample mode is set
to trigger-on or trigger-rotation and the key trigger is set to ON.
2.3.6 Designating the Sequence of Byte Output (for Binary Output)
CommandFunction
BO0Designates that the measured values are to be output from the most
significant byte (see Page 3-4).
BO1Designates that the measured values are to be output from the least
significant byte (see Page 3-4).
2 - 10
Page 22
2.3 Program Control Commands
2.3.7 Selecting the Output Data
CommandFunction
TS0Requests the measured values.
TS1Requests the parameter set values.
TS2Requests unit and decimal point information.
2.3.8 Selecting the Output Format for Measured Data
CommandFunction
FM0, p1, p2Selects the channels for which measured values are to be output in
ASCII format.
FM1, p1, p2Selects the channels for which measured values are to be output in
binary format.
Where p1 is the channel number (CC) from which the output should start, and p2 is the
channel number (CC) at which the output should end
Note
If you designate the output to be measured values (invoking the TS0 command), specify the data format by this FM command.
2.3.9 Selecting Channels for Request for Setting Parameters, Unit/Decimal Point
Information
CommandFunction
LF, p1, p2Selects 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).
2 RECEIVING FUNCTIONS
Where p1 is the channel number (CC) from which the output should start, and p2 is the
channel number (CC) at which the output should end
Note
If you designate the output data type by the TS1 or TS2 command, specify the format by this LF command.
2.3.10 Loading the SET Configuration File
(See Section 5.5.2 of the instruction manual for the VR200.)
CommandFunction
LOp1Loads the SET configuration file (suffix .PNL) specified by p1
into the internal memory.
Where p1 is the name of the file to be loaded (maximum of eight characters)
2.3.11 Saving the SET Configuration File
(See Section 5.5.1 of the instruction manual for the VR200.)
CommandFunction
LIp1Saves the settings (made in SET mode) as a SET configuration file
with the specified name.
Where p1 is the name of the save file (maximum of eight characters)
2 - 11
Page 23
2.3.12 Message Writing(for the VR 200 with style number 2 or higher)
CommandFunction
MEp1Selects 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)
The following escape sequence commands are used to control the communications.
2.4.1 Execution of Trigger
ESC T CRL
If an ESC T (CR LF) command is received, then
• measured data (when TS0 is specified) sampled at the most recent scan,
• parameter settings (when TS1 is specified), or
• units and decimal point information (when TS2 is specified)
are stored in the buffer.
Data output will start only after the output format has been designated (using the FM or
LF command).
For details on actual use and the command output sequence, see Section 3.1,
“Introduction to Output 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.
Make sure to send the terminator (CR and LF) following “ESC T.”
2.4 Escape Sequence
F
Requests for the data to be prepared in the buffer.
2 RECEIVING FUNCTIONS
2.4.2 Status Output
ESC S CRL
F
Outputs status.
If the ESC S command is received, the statuses of the commands which have been sent
so far are output.
Output statuses range from ER00 to ER10. The respective contents are shown in the
figure and table below.
7
6543210
000000
Syntax error
Memory end
Status Output
ER 00 C
RLF
ER 08 CRL
ER 10 CRL
F
F
F
Cause of the ENABLE status
Syntax ErrorMemory End
●ER 02 CRL
●
●
●
Transmission of any of the following commands while saving the data to a floppy disk
causes a syntax error:
• Set commands (SR, SA, SN, SD, SY, SW, SZ, SP, ST, SF, SL, SG, and SC)
• Some control commands (MI, LO, and LI)
2 - 13
Page 25
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
Status of the
syntax error
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. After receiving the FM or LF command, the VR100
/VR200 recorder starts sending the data and thus cannot respond to the ESC S
command. The ESC S command can be returned correctly if it is sent after reading all
the data 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) CRL
where is the address (ASCII code “01” to “16”)
1
0
F
The open command addresses a communication destination when a host (PC) is
connected to more than one (up to 15) VR200 recorders.
This command always controls non-addressed devices.
Before issuing an open command, make sure that the previous address device is closed
by a close command.
All commands except for the execution of the trigger are valid for the addressed (after
ESC O) device (VR200) only.
The terminator must be CR + LF.
2.4.4 Close Command
(ESC C) CRL
where is the address (ASCII code “01” to “16”)
The close command closes the addressed state of a device. Only the addressed device
will respond to this command.
The terminator must be CR + LF.
F
2 - 14
Page 26
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. Hence,
changing the specification of the data type by the TS command after the ESC T command is sent will not take effect until the ESC
T command is sent again.
3.1.1 TS0
After sending the TS0 and the ESC T command, you must specify the output format
using the FM command. Data cannot be output if the FM command is omitted.
However, after the FM command has been sent and the data has been read, the data
within the same sample can be read again by specifying the output format once more
using the FM command.
If the next FM command is sent before the specified data have been output completely,
the newly requested data will be output.
3 TRANSMITTING FUNCTIONS
Note
3.1.2 TS1 and TS2
Sequence (see also Sections 2.3.7 and 2.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.)
• Do not send the LF command until the reply data have been read completely after sending the FM command.
• After sending the ESC T command, data will be stored in a buffer and the system will wait for FM or LF commands (regardless
of whether the ESC T command is sent without executing an FM or LF command after the last invocation of the ESC T
command, or whether data have not yet been sent completely.)
• The ASCII code for “ESC” is 1B in hexadecimal notation.
After sending the TS1 (or TS2) and the ESC T command, to read the data you must
specify the output channel using the LF command. It is possible after reading the data
completely to read data for other channels by sending another LF command.
Sequence (see also Sections 2.3.7 and 2.3.9)
TS1
ESC T
LFxx, xx
(Read all data specified, until the end.)
LFxx, xx
(Read all data specified, until the end.)
Note
• Do not send the LF command until the reply data have been read completely after sending the FM command.
• After sending the ESC T command, data will be stored in the buffer and the system will wait for FM or LF commands (regardless of whether the ESC T command is sent without executing an FM or LF command after the last invocation of the ESC T
command, or whether data have not yet been sent completely.)
3 - 1
Page 27
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)
• 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. When the ESC T command is received
immediately after the TS0 command, the recorder transfers the internal data to the RS422-A transmission 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 C
1 2 3 4 1 2 3 4 5 6
Exponent of the data
± sign and 2 digits following "E"
Mantissa of the data
± sign and 5 digits
(Zeros are filled when less than 5 digits.)
Channel number 01 to 04 (for VR104) or 01 to 06 (for VR106)
Engineering unit
mV
V
C
F
UUUUUU
Alarm status (the order corresponds to the level numbers.)
H: High limit alarm
L: Low limit alarm
h: Difference high limit alarm
l: Difference low limit alarm
R: Rate-of-change alarm on increase
r: Rate-of-change alarm on decrease
Space: No alarm
Data status
Space: Not the end of data
E: End of data
Data status
N
: Normal
D
: Difference data (DELT)
O
: Overrange (data value is ±99999.)
S
: Skipped (data value is all spaces.)
: mV
: V
: °C
: °F
: Arbitrary unit (up to 6 characters)
RLF
3 - 2
Page 28
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.
Output format:
(1) Sequence of transfer
Byte
123456
Number of bytes
sent (2 bytes)
Date and time (6 bytes)
Measured data 1 (5 bytes)
Measured data n (last) (5 bytes)
3.2 Output Data Formats
3 TRANSMITTING FUNCTIONS
(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 BO command.
Note that the 2 bytes of the “number of bytes sent” itself are not included.
(3) Date and time
Byte
123456
YearMonthDayHourMinuteSecond
Year :
Month :
Day :
Hour :
Minute :
Second :
0 to 99 (00H to 63H)
1 to 12 (01H to 0CH)
1 to 31 (01H to 1FH)
0 to 23 (00H to 17H)
0 to 59 (00H to 3BH)
0 to 59 (00H to 3BH)
3 - 3
Page 29
(4) Measured data
Byte
12345
A
A
A
2
1
A
4
3
Alarm status
1
2
3
4
5
6
0No alarm or the alarm function is set to OFF
Channel number (1 to 4)
Alarm status
(for each level)
A1 to An correspond to statuses for levels 1 to 4.
Description
H (occurrence of high limit alarm)
L (occurrence of low limit alarm)
h (occurrence of difference high limit alarm)
l (occurrence of difference low limit alarm)
R (occurrence of rate-of-change alarm on increase)
r (occurrence of rate-of-change alarm on decrease)
Measured value *
*Measured value
The order of the byte arrangement, whether to begin with the most significant byte
(MSB) or least significant byte (LSB), can be specified by the BO 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 Parameter Settings
When receiving the TS1, ESC T, and LF commands, the VR200 recorder sends the set
values of parameters in the following order (each set value is output in the same format
as the set command):
CommunicationSet Value(s) to Be Output
SR
SN
SA
SZ
SP
SK
SW
ST
SF
SL
SG
SM
SH
SX
SC
SS
EN
Range
Engineering unit
Alarms
Discrete (zone) display
Partial expanded display
Scale value indication
Waveform span rate
Tag numbers
Floppy disk format type
Trip levels
Data file names
Messages
Number of division of bar graph display
Waveform span rate and message menu display
LCD brightness and saver function
Summer/Winter setting
End of parameter settings output
3 - 4
Page 30
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.
,
CRL
,
Engineering unit (6 characters)
Channel number (2 characters)
Data status Space: Not the last data
E: End of data
N: Normal
D: Difference computation channel
S: Skipped channel
F
Decimal point position
This number indicates the number of
digits after the decimal point (0 to 4).
3.2 Output Data Formats
3 TRANSMITTING FUNCTIONS
3 - 5
Page 31
Chapter 4TIME CHART
p
One sampling
(125 ms)
A/D and primary
computation
ESC T command from host
When outputting binary data *
Output of data
* If the ESC T command is received to output data before the data is updated, the previous
sam
le data will be output.
4 TIME CHART
4 - 1
Page 32
Chapter 5INITIAL STATUS
The initial status after power on is as follows.
TS0Output data type is the measured values.
FM0, 01, 04Measured values are output as ASCII codes.
From channel 01
To channel 04
(All channels are specified.)
LF 01, 04The channels for which the set values are output are:
From channel 01
To channel 04
(All channels are specified.)
BO1Beginning with the least significant byte (LSB).
5 INITIAL STATUS
5 - 1
Page 33
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:
10OPEN ”COM1:N81N” AS #1
20‘
30PRINT #1,CHR$(&H1B)+”O 01"
40PRINT #1,”SR01,VOLT,20mV,-2000,2000"
50GOSUB *HANDSHAKE
60PRINT #1,”PS0"
70GOSUB *HANDSHAKE
80PRINT #1,”UD0"
90PRINT #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.
6 ERRORS DURING RS-422-A OUTPUT
6 - 1
Page 34
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.)
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 VR200 while data is being output due to the receipt of a TS0, TS1
or TS2 command, a communication error may occur.
When data is exchanged between the host and a VR200 via RS-422-A communication, it is possible to monitor the errors during
each transmission and reception by assembling the ESC S commands in the communication program in the host computer.
6 - 2
Page 35
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 status is reset.
6.3 Timing of Resetting the Error Status
Error message request
(ESC S)
Error message is output.
6 ERRORS DURING RS-422-A OUTPUT
6 - 3
Page 36
7.1 Program to Read Parameter Setting from VR200, Display Them on Screen and Write Them to Disk
Chapter 7PROGRAM 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.1 Program to Read Parameter Settings from VR200, Display Them
on Screen and Write Them to Disk
100‘************************************************************
110‘** RS422A Example Program for IBM 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‘**
200‘**
210‘
220OPEN “COM1:1200,N,8,1,LF” AS #1
230OPEN “TEST.DAT” FOR OUTPUT AS #2
240‘
250LF$=CHR$(&HA):’ Line feed = 0AH
260PRINT #1,CHR$(27)+”O 01"
270PRINT #1,”TS1"
280PRINT #1,CHR$(27)+”T”;
290PRINT #1,”LF01,04"
300LINE INPUT #1,D$
310
IF LEFT$(D$,1)=LF$ THEN D$=MID$(D$,2) :’ Remove “LF” of head string
320PRINT D$
330PRINT #2,D$
340IF LEFT$(D$,2)<>”EN” THEN GOTO 300
350‘
360PRINT #1,CHR$(27)+”C 01"
370CLOSE
380END
Data length: 8 bits Others: LF is sent automatically.
7 PROGRAM EXAMPLES
7 - 1
Page 37
7.2 Program 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: 1200Stop bit: 1 bit
180‘**Parity: noneControl: OFF/OFF
190‘**
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$
270IF LEFT$(D$,2)=”EN” THEN GOTO 340:’ Watch data end
280PRINT #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
Data length: 8 bitsOthers: LF is sent automatically.
7 - 2
Page 38
7.3 Program to Read Unit and Decimal point Information from VR200, Display It on Screen, and Write It to Disk
7.3 Program to Read Unit and Decimal Point Information from VR200,
Display It on Screen, and Write It to Disk
100‘**********************************************************
110‘** RS422A Example Program for IBM PC **
120‘** **
130‘** To input and save point and unit information **
140‘** **
150‘**********************************************************
160‘**
170‘** Baud rate: 1200Stop bit: 1 bit
180‘** Parity: noneControl: OFF/OFF
190‘** Data length: 8 bitsOthers: LF is sent automatically.
200‘**
210‘
220OPEN “COM1:1200,N,8,1,LF” AS #1
230OPEN “TEST.DAT” FOR OUTPUT AS #2
240‘
250LF$=CHR$(&HA):’ Line feed = 0AH
260PRINT #1,CHR$(27)+”O 01"
270PRINT #1,”TS2"
280PRINT #1,CHR$(27)+”T”;
290PRINT #1,”LF01,04"
300LINE INPUT #1,D$
310
IF LEFT$(D$,1)=LF$ THEN D$=MID$(D$,2) :’ Remove “LF” of head string
320PRINT D$
330PRINT #2,D$
340IF MID$(D$,2,1)<>”E” THEN GOTO 300
350‘
360PRINT #1,CHR$(27)+”C 01"
370CLOSE
380END
7 PROGRAM EXAMPLES
7 - 3
Page 39
7.4 Program to Output Measured Data (in ASCII Code) from VR200
and Write to Disk
100‘************************************************************
110‘** RS422A Example Program for IBM PC **
120‘** **
130‘** To input and save measured data **
140‘** (ASCII code) **
150‘** **
160‘************************************************************
170‘**
180‘** Baud rate: 1200Stop bit: 1 bit
190‘** Parity: noneControl: OFF/OFF
200‘** Data length: 8 bitsOthers: LF is sent automatically.
210‘**
220‘
230OPEN “COM1:1200,N,8,1,LF” AS #1
240OPEN “TEST.DAT” FOR OUTPUT AS #2
250‘
260LF$=CHR$(&HA):’ Line feed = 0AH
270PRINT #1,CHR$(27)+”O 01"
280PRINT #1,”TS0"
290PRINT #1,CHR$(27)+”T”;
300PRINT #1,”FM0,01,04"
310LINE INPUT #1,D$
320
IF LEFT$(D$,1)=LF$ THEN D$=MID$(D$,2) :’ Remove “LF” of head string
330PRINT D$
340PRINT #2,D$
350IF MID$(D$,2,1)<>”E” THEN GOTO 310
360‘
370PRINT #1,CHR$(27)+”C 01"
380CLOSE
390END
7 - 4
Page 40
7.5 Program to Output Measured Data (in Bainary Code) from VR200 and Write to Disk
7.5 Program to Output Measured Data (in Binary Code) from VR200
and Write to Disk
100‘************************************************************
110‘** RS422A Example Program for IBM PC **
120‘** **
130‘** To input and save measured data **
140‘** (ASCII code) **
150‘** **
160‘************************************************************
170‘**
180‘** Baud rate: 1200Stop bit: 1 bit
190‘** Parity: noneControl: OFF/OFF
200‘** Data length: 8 bitsOthers: LF is sent automatically.
210‘**
220‘
230OPEN “COM1:1200,N,8,1,LF” AS #1
240OPEN “TEST.DAT” FOR OUTPUT AS #2
250‘
260PRINT #1,CHR$(27)+”O 01"
270PRINT #1,”TS0"
280PRINT #1,”BO1"
290‘
300PRINT #1,CHR$(27)+”T”;
310PRINT #1,”FM1,01,04"
320D$=INPUT$(2,#1)
330PRINT #2,D$
340A=CVI(MID$(D$,1,2))
350PRINT A
360D$=INPUT$(A,#1)
370PRINT #2,D$
380PRINT ASC(MID$(D$,1,1));:PRINT “/”;
390PRINT ASC(MID$(D$,2,1));:PRINT “/”;
400PRINT ASC(MID$(D$,3,1));:PRINT
410PRINT ASC(MID$(D$,4,1));:PRINT “:”;
420PRINT ASC(MID$(D$,5,1));:PRINT “:”;
430PRINT ASC(MID$(D$,6,1))
440‘
450L=0
460FOR I=7 TO A
470PRINT RIGHT$(“0”+HEX$(ASC(MID$(D$,I,1))),2)+” “;
480L=L+1
490IF L=5 THEN L=0 : PRINT
500NEXT I
510‘
520PRINT #1,CHR$(27)+”C 01"
530CLOSE
540END
7 PROGRAM EXAMPLES
7 - 5
Page 41
APPENDIX
Appendix 1 ASCII Code Table
Appendix 1 ASCII Code Table
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.
APPENDIX
IM 4N1A1-11E
App. - 1
Page 42
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.
Prohibited Characters
The following characters cannot be used:
• Any character not included in the 7-bit ASCII codes
OMEGA ENGINEERING, INC. warrants this unit to be free of defects in materials and workmanship for a
period of 25 months f rom date of purchase. OMEGA Warranty adds an additional one (1) month grace
period to the normal two (2) year product warr a n t yto cover handling and shipping time. This
ensures that OMEGA’s customers receive maximum coverage on each product.
If the unit malfunctions, it must be re t u rned to the factory for evaluation. OMEGA’s Customer Serv i c e
D e p a rtment will issue an Authorized Return (AR) number immediately upon phone or written re q u e s t .
Upon examination by OMEGA, if the unit is found to be defective, it will be re p a i red or replaced at no
c h a rge. OMEGA’s WARRANTY does not apply to defects resulting from any action of the purc h a s e r, including but not limited to mishandling, improper interfacing, operation outside of design limits,
i m p roper re p a i r, or unauthorized modification. This WARRANTY is VOID if the unit shows evidence of
having been tampered with or shows evidence of having been damaged as a result of excessive corro s i o n ;
or current, heat, moisture or vibration; improper specification; misapplication; misuse or other operating
conditions outside of OMEGA’s c o n t rol. Components which wear are not warranted, including but not
limited to contact points, fuses, and triacs.
OMEGA is pleased to offer suggestions on the use of its various products. However,
OMEGA neither assumes responsibility for any omissions or errors nor assumes liability for any
damages that result from the use of its products in accordance with information provided by
OMEGA, either verbal or written. OMEGA warrants only that the parts manufactured by it will be
as specified and free of defects. OMEGA MAKES NO OTHER WARRANTIES OR
R E P R E S E N T ATIONS OF ANY KIND WHATSOEVER, EXPRESS OR IMPLIED, EXCEPT THAT OF TITLE,
AND ALL IMPLIED WARRANTIES INCLUDING ANY WARRANTY OF MERCHANTABILITY AND FITNESS FOR A P A RTICULAR PURPOSE ARE HEREBY DISCLAIMED. LIMITATION OF
L I A B I L I T Y : The remedies of purchaser set forth herein are exclusive, and the total liability of
OMEGA with respect to this ord e r , whether based on contract, warr a n t y , negligence,
indemnification, strict liability or otherwise, 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 OMEGA is not intended to be used, nor shall it be used: (1) as a “Basic
Component” under 10 CFR 21 (NRC), used in or with any nuclear installation or activity; or (2) in medical
applications or used on humans. Should any Product(s) be used in or with any nuclear installation or
a c t i v i t y, medical application, used on humans, or misused in any way, OMEGA assumes no re s p o n s i b i l i t y
as set forth in our basic WA R R A N TY/DISCLAIMER language, and, additionally, purchaser will indemnify
OMEGA and hold OMEGA h a rmless from any liability or damage whatsoever arising out of the use of the
P roduct(s) in such a manner.
RETURN REQUESTS / INQUIRIES
Direct all warranty and repair requests/inquiries to the OMEGA Customer Service Department. BEFORE
RETURNING ANY PRODUCT(S) TO OMEGA, PURCHASER MUST OBTAIN AN AUTHORIZED RETURN
(AR) NUMBER FROM OMEGA’S CUSTOMER SERVICE DEPA RTMENT (IN ORDER TO AV O I D
PROCESSING DELAYS). The assigned AR number should then be marked on the outside of the return
package and on any correspondence.
The purchaser is responsible for shipping charges, freight, insurance and proper packaging to prevent
breakage in transit.
FOR WARRANTY RETURNS, please have the
following information available BEFORE
contacting OMEGA:
1 . P u rchase Order number under which the pro d-
uct was PURCHASED,
2. Model and serial number of the product under
warranty, and
3. Repair instructions and/or specific problems
relative to the product.
OMEGA’s policy is to make running changes, not model changes, whenever an improvement is possible. This affords our
customers the latest in technology and engineering.
duced, translated, or reduced to any electronic medium or machine-readable form, in whole or in part, without the prior
written consent of OMEGA ENGINEERING, INC.
FOR NON-WARRANTY REPAIRS,
for current repair charges. Have the following
information available BEFORE contacting OMEGA:
1. Purchase Order number to cover the COST
of the repair,
2. Model and serial number of the product, and
3. Repair instructions and/or specific problems
relative to the product.
consult OMEGA
Page 46
W h e re Do I Find Everything I Need for
P rocess Measurement and Control?
OMEGA…Of Course!
T E M P E R AT U R E
Thermocouple, RTD & Thermistor Probes, Connectors, Panels & A s s e m b l i e s
Wi re: Thermocouple, RTD & Thermistor
Calibrators & Ice Point Refere n c e s
R e c o rders, Controllers & Process Monitors
I n f r a red Pyro m e t e r s
PRESSURE, STRAIN AND FORCE
Transducers & Strain Gauges
Load Cells & Pre s s u re Gauges
Displacement Tr a n s d u c e r s
I n s t rumentation & A c c e s s o r i e s
F L O W / L E V E L
Rotameters, Gas Mass Flowmeters & Flow Computers
Air Velocity Indicators
Turbine/Paddlewheel Systems
Totalizers & Batch Contro l l e r s
p H / C O N D U C T I V I T Y
pH Electrodes, Testers & A c c e s s o r i e s
Benchtop/Laboratory Meters
C o n t rollers, Calibrators, Simulators & Pumps
Industrial pH & Conductivity Equipment
D ATA ACQUISITION
Data Acquisition & Engineering Software
Communications-Based Acquisition Systems
Plug-in Cards for Apple, IBM & Compatibles
Datalogging Systems
R e c o rders, Printers & Plotters
Metering & Control Instru m e n t a t i o n
R e f r a c t o m e t e r s
Pumps & Tu b i n g
A i r, Soil & Water Monitors
Industrial Water & Wastewater Tre a t m e n t
pH, Conductivity & Dissolved Oxygen Instru m e n t s
M3285/0299
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.