Receiving data 35 – Red Lion LEGEND User Manual
Page 37

RECEIVING DATA
Data is transmitted from the Legend when a “T” Transmit Value or a “P”
Transmit Print Options command is sent to the Legend via the serial port or when
a User Input, programmed for the Print Request function, is activated. The
Legend will wait until the serial transmit delay (0.100 or 0.002 sec) time expires
and then begin transmissions. The Legend can also be programmed to transmit
mnemonics. The format for a typical transmission string with mnemonics is
shown below:
The first two digits transmitted are the unit address followed by one blank
space. If the unit address is 0, the first locations will be left blank. The next three
characters are the mnemonics followed by one or more blank spaces. The
numerical data value is transmitted next. Negative values are indicated by a “-”
sign. If the numeric value is in an Overflow condition an asterisk (*) will precede
the most significant digit of the value. The decimal point position will “float”
within the data field depending on the actual value it represents. The numeric
data is right justified without leading zeros.
When a “T” command or print request is issued, the above character string is
sent for each line of a block transmission. An extra is transmitted following the last
line of transmission from a print request, to provide separation between print outs.
If mnemonics are NOT transmitted, just numeric data is sent with no built-in
time delay. If the Legend transmits mnemonics, there is a 400 msec built-in time
delay after each transmission string. When interfacing to a printer, sending
mnemonics are usually desirable. Examples of transmissions are shown below:
3 PRC -6732.5
Mnemonics Sent
-6732.5
NO Mnemonics Sent
The various Print Options are used with a printer or a computer terminal. They
provide a choice of which Legend data values are to be printed, when either the
User Input, programmed for the print request function is activated, or a “P”
(Transmit Print Options) command is sent to the Legend via the serial port. The
Print Options are programmed in the “Program Print Options” module, the
available options are:
A. Print Rate Value.
B. Print Peak Value.
C. Print Valley Value.
D. Print Process Count Value.
E. Print Batch Count Value.
F. Print Total Count Value.
G. Print Scale Factors (Count & Rate) Values.
H. Print Presets 1 & 2 Values.
I. Print Presets 3 & 4 Values.
J. Print Counter Load Value.
K. Print Mnemonics for all Values.
A print out from a Legend unit with an address of 1 and all print options
selected is shown below:
1
RT
54
1
PEK
100
1
VAL
0
1
PRC
4000
1
BAT
400
1
T
6000
1
SFC
1.0000
1
SFR
1.0000
1
P1
500
1
P2
1000
1
P3
300
1
P4
400
1
CLD
-100
-35-