Download HA028014, Issue 4
Transcript
COMMUNICATIONS MANUAL
2.3 THE .UYM FILE (Cont.)
2.3.1 Scaling
The instrument documentation also states that the value (PV) is returned as a 16-bit hex number in the range 0000
(Channel Low range value) to FFFF (Channel High range value), and the calculation:
⎛
PV ⎞
Scaled value = ⎜ (High range - low range) ×
⎟ + low range
⎝
FFFF ⎠
has to be carried out to find the actual scaled value. The instrument Channel Configuration must be accessed to
determine the High and Low range values.
Example:
High range =
90% for 4V input signal
Low range =
10% for 1V input signal
Current PV =
2.5V (7FFF)
The scaled value is
{(90 - 10)% x 7FFF/FFFF} + 10% =
50%
2.3.2 Commenting
Note To clarify the example, attempting to read an analogue input value from a channel 17 of a recorder.
A comment can be attached to the end of one or more lines in the form:
, , “Comment”
The maximum number of characters for the .uym file is 60 characters, including delimiters. The comment text string
can contain a maximum of (60 minus rest of line) characters.
The sample .uym file could become:
MV,16,UINT,”03”,,”Recorder 4, channel 17”
HA028014
Issue 4 May 07
Chapter 2
Page 2 - 5