Extended CommandsChapter —7
300 TE 2000
5250 Terminal Emulation Programmer’s Guide
Transmit and Receive On RS-232 Port (#F)
Use the #F extended command to transmit and receive data on the termi-
nal’s RS-232 port.
When constructing a Transmit and Receive command, the data to be sent
should be placed at Line 2, Column 1. The data must be less than 1840
bytes in length (after “=yy” compression, where “yy” is the hexadecimal
representation of the output byte). The last character must be a “#”
(pound sign). The terminal sends the data to the RS-232 port until it de-
tects a “#” character.
Line 2, Column 1, begins the start of transmit data. The host application
must set up the screen with a transmit field to locate the RS-232 port I/O
data. The field can be anywhere on the screen, beginning at position 80.
The host application must supply the r eceiv e field (for r esponse f r om the
RS-232porttothehost).Thereceivefieldcanbeanywhereonthescreen
except for the position allocated for the return status field.
The output stream appears in ASCII character format. For bytes that are
not displayable ASCII characters, you may insert the “=yy” characters,
where “yy” is the hexadecimal representation of the output byte. For ex-
ample, insert “=0D” if your printer requires a carriage return, or insert
“=0A”foralinefeed.AppendixD,“Terminal Font Set Table,” contains
other hexadecimal values.