Receiving data 60 – Red Lion TSC User Manual
Page 62
SENDING COMMANDS AND DATA (Cont’d)
When writing application programs in Basic, the transmission of spaces or
carriage return and line feed should be inhibited by using the semicolon
delimiter with the “PRINT” statement. The unit does not accept a carriage
return or line feed as valid characters.
It is recommended that a “Transmit Value” command follow a “Change
Value” Command. If this is done, the reception of the data can provide a
timing reference for sending another command and insures that the change has
occurred. When a “Change Value or Reset” command is sent to the unit, there
is time required for the unit to process the command string. The diagrams
show the timing considerations that need to be made.
RECEIVING DATA
Data is transmitted from the TSC when a “T” Transmit Value or a “P”
Transmit Print Options command is sent to the unit via the serial port. Also,
when the User Input, programmed for the Print Request function, is activated.
The print rate features allows the selected print options to be transmitted at a
programmable automatic rate via the serial port. 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 blank. The next three
characters are the mnemonics followed by one or more blank spaces. The
numerical data value is transmitted next followed by the identifying units.
Negative values are indicated by a “-” sign.
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 abbreviated transmission is selected, just numeric data is sent. If
abbreviated transmission is NOT selected, the unit transmits Mnemonics and
the units.
-60-