The text of a manual · part 14 of 32
3270 Terminal Emulation Programmer's Reference Guide: Section 8: Controller Commands, pages 129 to 137
Pages 129 to 137 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 129
Section 8
Controller Commands "
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
Overview This section describes controller parameter commands and diagnostic commands for the asynchronous 3270 data stream. This section is intended for asynchronous computers (mainly PCs) using the 3270 datastream for communication with the wireless emulation station.
Command Summary Table 8-1 lists the controller parameter commands, and Table 8-2 lists controller diagnostic commands. Each command is described in more detail after the tables. In the command descriptions, controllers are the RC3250 Controller, RC4030E Gateway, and RCB4030 Base/Controller. Table 8-1 Controller Parameter Commands Command CMTI CMT0 CMT1 CMT2
Name Set Default Parameter Response Delay Data Timeout Interactive Mode
3270 Terminal Emulation Programmer’s Reference Guide
8-1
Page 130
SECTION 8
"
Controller Commands
Table 8-1 (Continued) Controller Parameter Commands Command CMT3 CMT4 CMT5 CMT7 CMT8 CMT10 CMT11 CMT12 CMT13 CMT15 CMT16 CMT17 CMT18 CMT20 CMT21 CMT22 CMT23 CMT24 CMT25 CMT CMT, CCS E R T ? F
8-2
Name Response Delay Expansion Add Line Feed to Controller Responses Gap Timeout Interactive Timeout Set Data Error Checking Extended Response Mode Set Dual Base Radio Set Dual Speed Automatic Enable Remote Base Radio Support 3270 Data Stream Light Pen Option Set 3270 Data Stream Field Delimiter Enable Multiple Base Adapter Set Modem Delay Rate for Multiple Base Adapter One Character Address Mode Multiple Buffering Mode Enhanced Host Poll Mode Set Respond Timer Flow Control Request All Parameters Controller List System Callsign Enable or Disable Wireless Stations Enable Controller Response Repeat Controller Response Get Transmit Message Status Get Emulation Station Type
3270 Terminal Emulation Programmer’s Reference Guide
Page 131
SECTION 8
"
Controller Commands
Table 8-2 Controller Diagnostic Commands Command Name DMC
Clear Controller Buffers
DME
Controller Echo-Back Diagnostics
DMP
Controller Power-Up Self-Test Diagnostic
DMV
Controller Firmware or Software Version
CMTI Set Default Parameter The CMTI command restores all controller parameters to their default values. Table 8-3 lists default values. Host Command
Controller Response
CMTI<cr>
-Table 8-3 Controller Parameter Default Values
Command
RC3250
RC4030E and RCB4030
CMT0 x=0 x=0
CMT1 x = 255 x = 255
CMT2 x=0 x=0
CMT3 x=0 x=0
CMT4 x=0 x=0
CMT5 x=0 x=0
CMT7 x=6 x=6
CMT8 x=0 x=0
CMT10 x=0 x=0
CMT11 x=0 3270 Terminal Emulation Programmer’s Reference Guide
8-3
Page 132
SECTION 8
"
Controller Commands
Table 8-3 (Continued) Controller Parameter Default Values Command
RC3250
RC4030E and RCB4030
CMT12 x=0
CMT13 x=0
CMT15 x=0
CMT16 x=0 x=0
CMT17 x = 47 x = 47
CMT18 x=0
CMT20 x=0
CMT21 x=0 x=0
CMT22 x=0 x=0
CMT23 x=0 x=0
CMT24 x = ACK x = ACK
CMT25 n = 15 n = 15 x=0
CMT0 Response Delay The CMT0 command sets a time delay for the controller to respond to a command from the host computer. For the controllers the time delay is “x” times 10 milliseconds. This time delay may be required after transmitting for the host computer to prepare to receive data. CMT0 without the “x” variable returns to the host the previously set and stored value. CMTI resets all parameters to default values. The default is x = 0 for CMT0.
8-4
3270 Terminal Emulation Programmer’s Reference Guide
Page 133
SECTION 8
Host Command Function CMT0,x<cr>
EXAMPLE:
Sets time delay to “x” x 10 milliseconds.
"
Controller Commands
Controller Response OK<cr>
Variables:
x = 0 to 255 (0 = no response delay)
Defaults:
x=0
Command: Response:
CMT0,5<cr> Controller sets response delay to 50 milliseconds
CMT1 Data Timeout The CMT1 command sets the time the controller waits for data from a wireless station before responding to an “R” command from the host. Data received within this time is passed immediately to the host. The controller returns an “empty” response (OK<cr>) to the host after the specified timeout if no data is available. Data entered at a wireless station after the time limit is returned after the next “R” command. The default value for CMT1 is 255, which disables data timeout so that the controller responds to an “R” command only when it has wireless station data for the host. CMT1 sent without the variable returns the current value. Host Command Function
Controller Response
CMT1,x<cr>
OK<cr>
Sets timeout to “x” seconds.
Variables:
x = 0 to 254 (in 1-second or 3.4-second increments; 0 returns immediately) x = 255 (disables data timeout)
Default:
x = 255 3270 Terminal Emulation Programmer’s Reference Guide
8-5
Page 134
SECTION 8
"
Controller Commands
EXAMPLE 1:
Command: Response:
CMT1,2<cr> Data timeout = 2 seconds
EXAMPLE 2:
Command: Response:
CMT1<cr> 2<cr> (setting from example 1)
CMT2 Interactive Mode The CMT2 command turns interactive mode on or off. ON is CMT2,1 (or any nonzero digit). OFF is CMT2,0. Interactive mode orders the controller to respond to all commands from the host computer whether or not data is requested. The response (in interactive mode) when there is no data is “OK<cr>.” The default is 0 (interactive mode disabled). Host Command
Controller Response
CMT2,x<cr>
OK<cr>
Variables:
x = 0 (disable) x = 1 (enable)
Default:
x = 0 (disable)
EXAMPLE 1:
Command: Response:
CMT2,1<cr> OK<cr>
EXAMPLE 2:
Command: Response:
CMT2<cr> 1<cr> (assumes previous setting from example 1)
CMT3 Response Delay Expansion The CMT3 command increases the response delay (CMT0) by “x” times 256 milliseconds. 8-6
3270 Terminal Emulation Programmer’s Reference Guide
Page 135
SECTION 8
"
Controller Commands
For example, if CMT0 = 20 and CMT3 = 2, the total response delay time is 20 + (2 x 256) = 532 milliseconds. CMT3 without the variable returns the currently-stored value. Host Command
Controller Response
CMT3,x<cr>
OK<cr>
Variables: x = 0 to 255 Default:
x=0
EXAMPLE 1:
Command: Response:
CMT3,2<cr> OK<cr> extends response delay by 2 x 256, or 512 milliseconds
EXAMPLE 2:
Command: Response:
CMT3<cr> 2<cr> (assumes previous setting from example 1)
CMT4 Add Line Feed to Controller Responses The CMT4 command enables and disables the automatic addition of an ASCII line feed character to the end of each data string from the controller to the host. CMT4,1 enables the automatic line feed character and CMT4,0 disables it.
EXAMPLE 1:
Host Command
Controller Response
CMT4,x<cr>
OK<cr>
Variables: Default:
x = 0 (disable) or 1 (enable) x = 0 (disable)
Command: Response:
CMT4,1<cr> OK<cr><lf>
3270 Terminal Emulation Programmer’s Reference Guide
8-7
Page 136
SECTION 8
"
EXAMPLE 2:
Controller Commands
Command: Response:
CMT4<cr> 1<cr><lf> (assumes previous setting from example 1)
CMT5 Gap Timeout The CMT5 command sets the time the controller waits between characters before terminating a message. When enabled, the controller expects messages from the host computer to be terminated with a <cr> (carriage return). Without the <cr> it automatically terminates a message after a time interval equal to the gap timeout setting. The value “x” can range from 0 to 255. At 255, however, the controller waits indefinitely for a carriage return. This command can be used only in interactive mode (CMT2,1). Host Command Function
Controller Response
`jqRIñYÅê[ lhYÅê[
Sets gap timeout to “x” x 30 milliseconds.
Variables:
x = 0 to 255 (x = 255 disables gap timeout. The controller waits for a carriage return.)
Default:
x=0
EXAMPLE 1:
Command: Response:
CMT5,3<cr> The controller sets gap timeout to 90 milliseconds (3 ñ 30)
EXAMPLE 2:
Command: Response:
CMT5<cr> 3<cr> (assumes example 2 begins with settings in example 1)
8-8
3270 Terminal Emulation Programmer’s Reference Guide
Page 137
SECTION 8
"
Controller Commands
CMT7 Interactive Timeout The CMT7 command sets the time the controller retains a wireless station on the “active” list without a response to a poll. If a wireless station fails to respond within “x” x 13.7 seconds, the controller places it on “inactive” status and ceases to poll its address. The default setting is 6, which gives a wireless station about 2 minutes of inactivity before it is no longer polled in the regular cycle. Without the “x” variable the controller returns the current setting. Host Command
Controller Response
CMT7,x<cr>
OK<cr>
Variables:
x = 0 to 255 (x = 255 wireless station remains active)
Default:
x=6
EXAMPLE 1:
Command: Response:
CMT7,3<cr> Controller sets inactivity timeout to 41 seconds
EXAMPLE 2:
Command: Response:
CMT7<cr> 3<cr> (example 2 begins with settings in example 1)
CMT8 Set Data Error Checking The CMT8 command controls two data checking mechanisms. One is the CRC-16, and the other is LRC (7-bit). These data checks are performed independently from parity checks or other error checking devices in the network. The variable “x” may be 0, 1 or 2.
3270 Terminal Emulation Programmer’s Reference Guide
8-9