Red Lion LEGEND User Manual

Page 37

Advertising
background image

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 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 <SP><CR><LF> 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
p r i n t e r , s e n d i n g M n e mo n i c s a r e u s u a l l y d e s i r a b l e . E x a mp l e s o f
transmissions are shown below:

3 CNT 6732.5<CR><LF> (400 msec delay)

Mnemonics Sent

6732.5<CR><LF>

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 Count Value.
E. Print Scale Factors (Count & Rate) Values.
F. Print Presets 1 & 2 Values.
G. Print Presets 3 & 4 Values.
H. Print Presets 5 & 6 Values.
I. Print Counter Load Value.
J. 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

CNT

4000

1

SFC

1.0000

1

SFR

1.0000

1

P1

500

1

P2

1000

1

P3

300

1

P4

400

1

P5

500

1

P6

600

1

CLD

100

-35-

Advertising