The text of a manual · part 23 of 37
Native Terminal Emulation Programmer's Guide: Chapter 5: Data Collection Server and Gateway Commands, pages 187 to 196
Pages 187 to 196 of 340, from Native Terminal Emulation Programmer's Guide
The original document is the PDF (2.9 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 2435
Page 187
Chapter 5, Data Collection Server and Gateway Commands
CMT10 (Enable Extended Response Mode) CMT10 is a data checking mechanism that adds a character count to all responses from the DCS or gateway to the host. Character counts are one greater for CMT10,2 than for CMT10,1 because the CMT10,2 count includes the carriage return at the end of the string. CMT10,1 does not.
Host Command CMT10,x<cr>
DCS or Gateway Response OK<cr>
X Variable Values S 0 Disables the extended response (default). S 1 Enables the extended response suffix. A comma and a decimal character count of the string follow each string sent to the host. S 2 Enables the extended response prefix. A decimal character and a comma precede each string.
Example 1 Command: CMT10,1<cr> Response: OK,2<cr>
Example 2 Command: CMT10,2<cr> Response: 0003,OK<cr>
Example 3 Command: CMT10<cr> Response: 0002,2<cr> This response assumes the setting from Example 2.
Native Terminal Emulation Programmer’s Guide
167
Page 188
Chapter 5, Data Collection Server and Gateway Commands
CMT13 (Automatically Enable Terminal) Use CMT13 to automatically enable terminals. When the DCS or gateway receives a power-up message from a terminal, the terminal is automatically included in the active terminal array.
Host Command CMT13,x<cr>
DCS or Gateway Response OK<cr>
X Variable Values S 0 Disables the terminals. The E (Enable) command must explicitly enable the terminal. If the E command does not enable a terminal, and the DCS or gateway receives a power-up message from that terminal, the power-up is ignored and the power-up message (tP) is not sent to the host (default). S 1 Automatically enables the terminals.
Example The DCS or gateway enables all responding terminals: Command: CMT13,1<cr> Response: OK<cr>
168
Native Terminal Emulation Programmer’s Guide
Page 189
Chapter 5, Data Collection Server and Gateway Commands
CMT21 (One-Character Address Mode) If the DCS or gateway is configured for one-byte addressing (also “RM2216” or “old” mode), it powers up and behaves like an RM2216 Multiplexer. Terminal power-up messages have the form “1P”, where “1” is the one-character address. If the x variable for CMT21 is set to “1,” and the DCS or gateway is configured for one-byte addressing, terminal power-up messages have the form “1P,060” where “1” is the one-byte address and “,060” is the terminal power-up type. The terminal power-up type resembles the standard threebyte power-up because of the terminal type, but the one-byte address appears. The default setting is “0,” which disables one-byte addressing. If the DCS or gateway is configured for three-character (“normal”) addressing, the CMT21 command does nothing.
Host Command CMT21,x<cr>
DCS or Gateway Response OK<cr>
Example 1 Command CMT21,1<cr> Response: OK<cr> Sets one-character addressing, Real Time Control (RTC) mode if host mode is RM2216.
Example 2 Command CMT21<cr> Response: 1,<cr> This response reports the setting from Example 1.
Native Terminal Emulation Programmer’s Guide
169
Page 190
Chapter 5, Data Collection Server and Gateway Commands
CMT22 (Multiple Buffering Mode) Note: Multiple buffering is always enabled on the DCS 301. Multiple Buffering Mode enables the DCS or gateway to buffer commands the host sends. Up to 25 commands per terminal may be buffered before the DCS or gateway will reject the host command with a “?10” (out-of-buffers) response. This may happen if the host program issues commands to a terminal that is not powered up or is out of range. The terminal must act on the commands before the DCS or gateway allows the host to send more commands. See “Write Display Errors” on page 185 for more information. If CMT22 is disabled, the DCS or gateway handles commands in a transaction-based order. The device expects the host to wait until the response to the command is sent back to the host before the host sends the next command. If the host program violates this protocol by sending several commands to the DCS or gateway in succession without the device fully acting on the command, the commands may be overwritten and lost.
Host Command CMT22,x<cr>
DCS or Gateway Response OK<cr>
X Variable Values S 0 Disables the multiple buffering mode (default). S 1 Enables the multiple buffering mode.
170
Native Terminal Emulation Programmer’s Guide
Page 191
Chapter 5, Data Collection Server and Gateway Commands
Example 1 Multiple buffering disabled Suppose the host program issues the time to a specific terminal every second. For a Native terminal, the command syntax may be W000DB/08:38:00<cr>, followed 1 second later by W000DB/08:38:01<cr>, W000DB/08:38:02<cr>, etc. If multiple buffering is disabled, the transaction may occur as follows. If multiple buffering is disabled, the DCS or gateway does not guarantee that the data will go to the terminal. Results are unpredictable, and depend on factors such as transaction throughput and host overhead. The example above shows that the fifth host command overwrote the second, third, and fourth commands in the DCS or gateway. In this case, the second, third, and fourth commands were not sent to the terminal. Host Command
DCS or Gateway Response
Terminal Display
W000DB/08:38:00
OK<cr>
08:38:00
W000DB/08:38:01
OK<cr>
08:38:00
W000DB/08:38:02
OK<cr>
08:38:00
W000DB/08:38:03
OK<cr>
08:38:00
W000DB/08:38:04
OK<cr>
08:38:04
Example 2 Multiple buffering enabled If multiple buffering is enabled, host commands are not overwritten. Instead, they are buffered in the DCS or gateway and sent to the terminal sequentially. (However, there is no guarantee that these commands will arrive at the terminal 1 second apart.) Following is an example. Host Command
DCS or Gateway Response
Terminal Display
W000DB/08:38:00
OK<cr>
08:38:00
W000DB/08:38:00
OK<cr>
08:38:00
W000DB/08:38:01
OK<cr>
08:38:00
W000DB/08:38:02
OK<cr>
08:38:00
W000DB/08:38:03
OK<cr>
08:38:01
W000DB/08:38:04
OK<cr>
08:38:02
Native Terminal Emulation Programmer’s Guide
171
Page 192
Chapter 5, Data Collection Server and Gateway Commands
CMT27 (6910 IGAP Operating Mode) CMT27 is a mode-switching command that changes the operating mode on the 6910 Integrated Gateway/Access Point (IGAP). You must change the operating mode before you can configure the device parameters. To configure the 6910 IGAP, you establish a local session with it through a VT100 terminal emulation program (such as PROCOMM PLUS) installed on a personal computer. When the program is running, you issue command “CMT27,2” to switch the 6910 IGAP DIAG port from host mode to configuration mode. When entering the command, follow these guidelines: S Type CMT in uppercase and do not enter spaces between characters. S There is a 1-second timeout period between characters. If you wait more than 1 second to type the next character, the command is not recognized. S If you type the wrong character, you cannot use the backspace key to correct it. You must wait 1 second or press [Enter] before you can try again. When you exit the 6910 IGAP configuration menus, the port automatically switches to host mode. For complete information about configuring the 6910 IGAP, refer to the 6910 Integrated and 6910 Telnet Gateway/Access Points User’s Guide (P/N 961-047-122).
Host Command CMT27,2<cr>
6910 IGAP Response OK<cr>
Example Command: CMT27,2<cr> Response: OK<cr> The 6910 IGAP DIAG port is in configuration mode.
172
Native Terminal Emulation Programmer’s Guide
Page 193
Chapter 5, Data Collection Server and Gateway Commands
CMTI (Restore Default Parameters) CMTI restores all parameter commands to their default values.
Host Command CMTI<cr>
DCS or Gateway Response Not applicable
Parameter Commands and Default Values S CMT0
2
S CMT1
255
S CMT2
0
S CMT4
0
S CMT5
0
S CMT8
0
S CMT9
0
S CMT10
0
S CMT13
0
S CMT21
0
S CMT22
0
S CMT27
Host mode
Native Terminal Emulation Programmer’s Guide
173
Page 194
Chapter 5, Data Collection Server and Gateway Commands
? (Get Transmit Message Status) Use the ? command to request the status of the DCS or gateway transmit buffer. The device responds by returning a status code for each terminal in the network (up to 127 codes).
Host Command ?<cr>
DCS or Gateway Response xxx...x<cr>
? (Get Transmit Message Status) Codes S A
Active terminal
S C
Terminal has a pending message
S I
Inactive terminal
S N
Disabled terminal
S P
Inactive terminal has a pending message
Example Command: ?<cr> Response: CCCCAAAAPPPPNNN0N<cr> This response has 127 characters and shows the following: Terminals 000–003 have pending messages. Terminals 004–007 are active. Terminals 008–011 have pending messages, but are inactive. Terminals 012–126 are disabled.
174
Native Terminal Emulation Programmer’s Guide
Page 195
Chapter 5, Data Collection Server and Gateway Commands
E (Enable Terminals) The E command enables the terminals (communication channels) in a network. You can either enable all terminals with one command, or a specific terminal.
Host Command Es0s<cr> (enables terminals 000-126) Ets (enables a specific terminal)
DCS or Gateway Response OK<cr>
Variables S s N = No (disables terminal) Y = Yes (enables terminal) X = “Do not care” (retains current status) S t Terminal number (000–126) The first Y, N, or X setting applies to terminal 000, the second applies to terminal 001, the third to terminal 002, etc. You do not need to list all the terminals. Before a terminal can be polled or sent a message, it must be enabled by the host or allowed to enable and identify itself to the DCS or gateway. Enabling a terminal opens a channel to that terminal.
Example 1 Command: EYYYYYXNNNNNNYYYYYYYYYY<cr> Action: Enables terminals 000–004 and 012–021. Does not change terminal 005. Disables terminals 006–011. Does not change terminals 022–126.
Example 2 Command: E001Y<cr> Action: Enables terminal 001.
Native Terminal Emulation Programmer’s Guide
175
Page 196
Chapter 5, Data Collection Server and Gateway Commands
R (Read) The R command is the idle, polling command. Use it to enable the DCS or gateway to transmit terminal data to the host. This is the only command where the device can send the terminal responses. If the DCS or gateway has a terminal response queued for transmission to the host, it cannot send it in response to a Write Display (WtD) command. It can only send it in response to an R command.
Host Command R<cr>
DCS or Gateway Response tK<cr> tS<cr> tP,x<cr> tD OK<cr>
Variables S t
Terminal number (000–126)
S K
Keyboard data
S S
Scanned data
S P
Terminal has reset or powered-up
S x
Terminal power-up type
S D
Echo data
In general, an R command must follow the commands the host sends to the DCS or gateway. This enables the DCS or gateway to respond to or forward any data it received from a terminal and stored. The DCS or gateway sends an OK<cr> to the host when interactive mode is enabled, and the CMT1 time-out value has been exceeded and the device has no data to send to the host.
176
Native Terminal Emulation Programmer’s Guide