The text of a manual · part 18 of 32
3270 Terminal Emulation Programmer's Reference Guide: Section 9: Data Stream Commands, pages 165 to 172
Pages 165 to 172 of 278, from 3270 Terminal Emulation Programmer's Reference Guide
The original document is the PDF (2.1 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Intermec 6400
Page 165
Section 9
Data Stream Commands "
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
Overview This section describes 3270 SNA/SDLC and asynchronous display data stream commands and orders that the host application can send to the wireless stations. Orders govern format and data expectations within a data stream command. Also included in this section is information on formatting data to be displayed on the wireless stations. This section is not intended as a specific guide for programming, but a comparison with your existing system. The information helps identify differences between your screengenerating utilities and features supported by the wireless stations.
Screen Design Aid This section, along with your Screen Design Aid (SDA) documentation, can help you resolve occasional questions concerning discrepancies that may arise regarding attribute selection and the capabilities of the wireless stations. This section includes information you may not need, because you can use your SDA to do much, if not all, of the programming to handle commands and orders for the radio data network.
3270 Terminal Emulation Programmer’s Reference Guide
9-1
Page 166
SECTION 9
"
Data Stream Commands
This information is provided to assure you have the most accurate and detailed information available and to describe variations from the 3270 data stream where they occur. If you are comfortable using the SDA on your host computer, you can flip through this section to find out which commands and orders the wireless stations support. You can then read Section 10, which describes the extended commands you can use to do operations beyond the capability of the 3278 Model 2 terminal.
Applications If you need to write applications specifically for the wireless station, it is recommended that you use the corner mode window onto the 3278 Model 2 terminal and write programs using the portion of the display available without moving the window. This is the most efficient method for developing custom applications for the wireless station.
3270 Data Stream Commands The 3270 data stream consists of application data, commands and structured field functions, and orders which are transmitted between the controller and the host system. The wireless stations support a subset of the IBM 3270 command structure to display and accept keyboard or scanner input. The following chart lists the SNA/SDLC and asynchronous commands that the wireless stations support.
9-2
3270 Terminal Emulation Programmer’s Reference Guide
Page 167
SECTION 9
"
Data Stream Commands
Syntax SNA/SDLC (Hex)
Asynchronous
Erase All Unprotected
6F
?
Erase/Write
F5
5
Erase/Write Alternate
7E
=
Read Buffer
F2
2
Read Modified
F6
6
Read Modified All
6E
>
Reset Terminal
Not applicable
G
Command
System Services Control Point Write
4 F1
1
Erase All Unprotected Command The Erase All Unprotected command performs the following functions at the selected wireless stations: "
Clears unprotected buffer locations to nulls.
"
Resets to 0 the MDT bit for each unprotected field.
"
Positions cursor address to the first location of the buffer.
Erase/Write Command The Erase/Write command performs both an erase operation and a write operation, as follows: 1. The erase operation clears the device buffer to nulls, positions the cursor address at the first location in the buffer, and resets the buffer address to its first location.
3270 Terminal Emulation Programmer’s Reference Guide
9-3
Page 168
SECTION 9
"
Data Stream Commands
2. The Erase/Write command performs the write and write control character (WCC) operations in the same manner as the Write command. If no WCC is sent, the Erase/Write command will not erase the buffer.
Erase/Write Alternate Command The Erase/Write Alternate command performs the same function in the wireless station as the Erase/Write command, and allows both the erase and write operations to take place.
Read Buffer (RB) Command The RB command causes buffer data from the wireless station to be transmitted to the main storage in the central processing unit. All buffer data and nulls from the beginning to the end of the buffer location are included in the transfer. The default setting for the beginning of buffer data transfer is 0. If the RB command is chained from the Write or Erase/Write command, data transfer will begin from the current buffer address with all nulls suppressed. The RB response starts with a 3-byte heading that includes the AID character and a 2-character cursor address. The controller inserts a Start Field order to identify the beginning of each field. Alphanumeric data for each field then follows the RB command header. The RB command data stream uses the following format: <AID code> <cursor address> <SF order> <attribute byte> <first data field> <second data field> " NOTE:
9-4
Response times increase for the Read Buffer command because of the large quantity of data processed during the read buffer operation.
3270 Terminal Emulation Programmer’s Reference Guide
Page 169
SECTION 9
"
Data Stream Commands
Read Modified Command A major feature of the Read Modified command is null suppression. During read modified command operations, null codes are not sent. During a Read Modified command, all fields that have been modified are transferred to the program. All nulls are suppressed during data transfer and thus are not included in the read data stream. As a field is modified by the operator, the MDT bit is set in the attribute byte for that field. Then, when a read-modified operation is performed, successive attribute bytes are examined for a set MDT bit. When the bit is found, the data in the associated field is read (with nulls suppressed) before the next attribute byte is examined. If the screen is unformatted the entire screen (with nulls suppressed) is sent.
Read Modified All Command The Read Modified All command is the same as the Read Modified command.
Reset Terminal The Reset Terminal command is an asynchronous command that returns the wireless station to its first ”state,” a known condition. All wireless stations are reset when “t” is omitted. Wireless stations respond to a poll with their power-up message.
3270 Terminal Emulation Programmer’s Reference Guide
9-5
Page 170
SECTION 9
"
Data Stream Commands
Station
Function
RT2210 RT2210XL RT3210 RT3310 RT3410 RT5910 RT5920 RT5940 RT5960 RT5980 TM1100 TM1700 RT1100 RT1201
Controller
R Response
Resets Gt<cr> [t only] wireless station(s) G<cr> [all]
OK<cr> tP,x<cr>
Resets Gt<cr> [t only] wireless station(s) G<cr> [all]
OK<cr> tP<cr>
Variables:
Syntax t = wireless station number (network address) x= wireless station type code
EXAMPLE:
Command: Response:
G002<cr> Controller resets wireless station 002
Table 8-6 in Section 8 lists wireless station type codes.
System Services Control Point (SSCP) Command The SSCP command reads in new data from the host and places it at the current cursor position. If a 0x15 new line character is among the data, the wireless station performs a newline function. The SSCP command has no orders or WCC character associated with it. The command generates an unformatted screen.
9-6
3270 Terminal Emulation Programmer’s Reference Guide
Page 171
SECTION 9
"
Data Stream Commands
Write Command A Write command from the host computer consists of a command code, a WCC, and any orders or new buffer data (or both) required to modify the existing buffer contents. Execution of the Write command is in two steps: 1. The WCC is processed. 2. Buffer data and orders are processed. Data may be any ASCII character in the range of 0x20 to 0x7E, and must define the character content of a field. Buffer data characters may be written into any location of the buffer without erasing or modifying the data in other locations. Data is stored in successive buffer locations until an order alters the buffer address, or until all data has been entered. During the write operation, the buffer address advances one location as each character is stored. If the Set Buffer Address order does not immediately follow the WCC command, the wireless station will start writing data from the first location of the buffer.
Write Control Character Bits 0, 1, and 2 of the WCC cause action in the wireless station. The following chart describes the format of the WCC byte.
3270 Terminal Emulation Programmer’s Reference Guide
9-7
Page 172
SECTION 9
" NOTE:
"
Data Stream Commands
Bit #
Description
0
Reset MDT bits. When set to 1, all MDT bits in the selected buffer are reset before any data is written or orders are executed.
1
Keyboard restore bit. When set to 1, the wireless station allows input. The station locks out all data when it sends data to the host and will not accept input until it receives a command with this bit set.
2
Sound alarm bit. When set to 1, the selected wireless station’s alarm sounds three short beeps after operation.
3 --7
Unused (“do not care”) bits.
Bit numbers are in the opposite order of those described in the IBM 3270 Information Display System Component Description manual.
The wireless station ignores all WCC bits defined as “unused.” Only the three least significant bits of the WCC byte cause action in the wireless station. These are converted to ASCII characters. Appendix B contains a binary to ASCII conversion table. Orders and buffer data follow the WCC. Data characters are any of the displayable ASCII characters in the range hexadecimal 20 through 7E. They define the character content of a protected or unprotected field. Buffer data characters may be written into any specific location of the buffer without erasing or modifying the data in other buffer locations. Data characters are stored in successive buffer locations until an order alters the buffer address, or until all data has been entered. During the write operation, the buffer address is advanced one location as each character is stored. If the Set Buffer Address order does not immediately follow WCC, the wireless station starts writing data from the first location of the buffer.
9-8
3270 Terminal Emulation Programmer’s Reference Guide