Receiving data 46 – Red Lion LEGEND User Manual
Page 48
RECEIVING DATA
Data is transmitted from the Legend Plus when a “T” Transmit Value or a “P”
Transmit Print Options command is sent to the Legend Plus via the serial port or
when a User Input, programmed for the Print Request function, is activated. The
Legend Plus will wait until the minimum serial transmit delay time (0.100 or
0.002 sec) expires and then begin transmissions. The Legend Plus 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 are 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 (
S
) will
precede the most significant digit of the value. The decimal point position
“floats” 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
transmitted following the last line of transmission from a print request, to provide
separation between print outs.
If Mnemonics are NOT transmitted (MNEM - NO print option), the Legend
only transmits the numeric data. The unit address, extra spaces and 400 msec time
delay, is not sent. If the Legend Plus transmits Mnemonics (MNEM - YES), there
is a 400 msec built-in time delay after each transmission string. When interfacing
to a printer, sending Mnemonics is usually desirable. Examples of transmissions
are shown below:
3 PRC -6732.5
-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 Plus 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 Plus 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, & Total) Values.
H. Print Presets 1 & 2 Values.
I. Print Presets 3 & 4 Values.
J. Print Counter Load Value.
K. Print Mnemonics for all Values.
L. Reset selected Count values following print
M. Print Message 0.
A print out from a Legend Plus unit with an address of 1 and all print options
selected is shown below. Message #0 is programmed with the text, “MACHINE #1”.
-46-
MACHINE #1
1
RAT
54
1
PEA
100
1
VAL
0
1
PRO
4000
1
BAT
400
1
T
6000
1
SFP 1.0000
1
SFR 1.0000
1
SFT
1.0000
1
P1
500
1
P2
1000
1
P3
300
1
P4
400
1
CLD
-100