Receiving data 46 – Red Lion LEGEND User Manual

Page 48

Advertising
background image

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 (*) 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 <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 (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<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 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 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.

K. Reset selected Count values following print

L. 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

RAT54

1

PEA100

1

VAL0

1

CNT4000

1

SFC1.0000

1

SFR1.0000

1

P1500

1

P21000

1

P3300

1

P4400

1

P5500

1

P6600

1

CLD-100

Advertising