FMT1000 Series Programmer’s Guide 70-16674-01 Revision A October 1995
1995 by Symbol Technologies, Inc. All rights reserved. No part of this publication may be reproduced or used in any form, or by any electrical or mechanical means, without permission in writing from Symbol. This includes electronic or mechanical means, such as photocopying, recording, or information storage and retrieval systems. The material in this manual is subject to change without notice. The software is provided strictly on an “as is” basis.
Symbol Support Center For service information, warranty information, or technical assistance in the U.S.A., call: SYMBOL SUPPORT CENTER 1-800-653-5350 If you purchased your Symbol product from a Symbol Business Partner, contact that Business Partner for service. Canada Mississauga, Ontario Canadian Headquarters (905) 629-7226 Europe Wokingham, England European Headquarters 734-771-222 (Inside UK) 011-44-734-771222 (Outside UK) Asia Singapore Symbol Technologies Asia Inc.
iv
Contents About This Guide Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Key Conventions for the FMT1000 Series Programmer's Guide . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 Chapter 1. FMT1000 Architecture Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . CPU . . . . . . . . . . . . . .
SDA, RDA – Set and Return Aux Data Bits and Parity . . . . . . . . . . . . . . . . . . . . . . . . . . . . SSA, RSA – Set and Return Aux Stop Bits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SHA, RHA – Set and Return Aux Handshake Type. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SPO, RPO – Set and Return Aux Output Prefix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SSO, RSO – Set and Return Aux Output Suffix . . . . . . . . . . . . .
SRP, RRP – Set and Return Peripheral Port Response Path . . . . . . . . . . . . . . . . . . . . . . . . 2-75 S39, R39 – Set and Return Code 3 of 9 Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-76 S25, R25 – Set and Return Interleave 2 of 5 Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-77 SCB, RCB – Set and Return Codabar Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-78 SUP, RUP – Set and Return UPC Mode . . . .
viii
About This Guide Introduction This manual is intended for programmers who are creating programs that will run on the FMT1000 Series of data collection computers. All of the FMT1000 Series computers have the same internal architecture and are covered in this manual. Differences such as keyboard layout are noted where necessary. The most important thing to remember about programming the FMT1000 Series computers is that they are truly DOS PC compatibles and that most software will run without modification.
FMT1000 Series Programmer’s Guide Key Conventions for the FMT1000 Series Programmer's Guide Keys and key sequences are printed in and enclosed in broken brackets. For example: • the enter or return key. • the tab key. • - the FMT1000 Series computer key sequence equivalent of the standard IBM PC key combination. • the F6 function key. • User Defined Key. See page 2-101 for more information about user-defined keys.
Chapter 1 FMT1000 Architecture Introduction The FMT1000 Series includes three models: • the compact FMT1020 • the rugged FMT1040 • the FMT1060 for time clock applications. The specific features of each model are covered in the installation guide provided with each unit. The architecture and command set are common to all models. Throughout this manual all models will be referred to as the FMT1000 Series computer.
FMT1000 Series Programmer’s Guide information coming from I/O devices, either by using the keyboard port, making the data appear as though it had been typed, or by sending it to COM2. Complete details of coprocessor operation and interfacing are contained in Chapter 2 of this manual. Figure 1-1.
FMT1000 Architecture Please continue to refer to Figure 1-1 as the other architectural features of the FMT1000 Series computer are described below. CPU The FMT1000 Series CPU is the Chips & Technology F8680 PC/Chip processor. This highly integrated processor contains much of the basic I/O for the FMT1000 Series computer in addition to the CPU core. This processor, as used in FMT1000 Series computer, executes the 8086 instruction set, with an execution speed comparable to a 12-MHz 80286 processor.
FMT1000 Series Programmer’s Guide Memory The FMT1000 Series computer contains 1 MB of RAM. This memory may be exploited in various ways to afford optimal usage in a variety of systems. The first usage choice is presented during system setup, where a selection is made from two possible memory maps, A and B, as shown in Figure 1-2. Figure 1-2.
FMT1000 Architecture • Configuration A allows a base memory partition of 640 KB, which is the norm for PC-compatible computers. • Configuration B extends the base memory partition by 96 KB to a total of 736 KB. This extra memory is directly usable by DOS without further complication of a memory management program. More space is available, therefore, for loadable device drivers, TSR programs, and/or larger application programs.
FMT1000 Series Programmer’s Guide • HIDOS.SYS, the simpler of the two, is the one which must be used if Expanded Memory is also required. HIDOS.SYS provides no UMB support. • The second Extended Memory Manager is LPHIMEM.SYS. In addition to XMM and HMA, this driver implements UMB storage, allowing use of DEVICEHIGH and LOADHIGH commands from DOS. LPHIMEM.SYS is incompatible with Expanded Memory. EMM is implemented by the driver PCCEMM.SYS.
FMT1000 Architecture Display Programming As can be seen from Figure 1-1, the LCD display is connected to the LPT1 port of the CPU via the I/O chip. This considerably eases the use of the display, since any program capable of writing to LPT1 can write to the display. A modified version of the standard BIOS Int 17 function is provided for this service.
FMT1000 Series Programmer’s Guide Additional functions have been provided (for each function, DX=0 and all functions are in hex): Function in Hexadecimal 1-8 Description AH 10 Initialize port and LCD panel. This is an LCD specific init routine which takes the place of INT 17 FX 01. AH 11 Clear display. The display is written with white space to clear it. AH 12 Update entire display. Writes a complete 80 character buffer to the display. This pointer is in segment: offset style (ES:[DI]).
FMT1000 Architecture Function in Hexadecimal Description AH 16 Return cursor position. Returns the position of the cursor in the screen: BH=Row (0 or 1) BL=Column (0-39) AH 17 Set cursor position. Set the desired cursor position in BH and BL: BH=Row (0 or 1) BL=Column (0-39) Any value outside valid range will be ignored. AH 18 Cursor up one row. AH 19 Cursor down one row. AH 1A Cursor left one column. AH 1B Cursor right one column. AH 1C Return location of display buffer.
FMT1000 Series Programmer’s Guide Function in Hexadecimal 1-10 Description AH 20 Set new tracking mode in BL 1: 1x80 fixed 2: 1x80 follow cursor row 3: 2x40 fixed 4: 2x40 left justified, cursor in second row. A value of 10H is added to the value to set to indicate that a change of state is desired. AH 21 Report tracking position BH: row position 0..23 for 2x40, 0..24 for 1x80 BL: column position 1..39 for 2x40, 0 for 1x80 AH 22 Set tracking box position BH: row position 0..23 for 2x40, 0..
Chapter 2 I/O System Programming I/O system programming consists mainly of selecting the configuration options for the many features of the I/O coprocessor. To understand the programming, it is first necessary to understand the basic characteristics and features of the I/O. Features Much of the power of the FMT1000 Series computer, particularly for industrial and automation applications, lies in its extended I/O capability.
FMT1000 Series Programmer’s Guide - Can transmit its data directly to the keyboard port of the CPU, eliminating the need for any special programming to receive the data. • Digital Input – Two digital inputs can be configured to: - Sense whether they are “On” or “Off” - Detect a change in state and inform the CPU - Count transitions from “Off” to “On” for cycle-counting applications such as printing or machine monitoring.
I/O System Programming Basics of Coprocessor Communications Communicating with the coprocessor has two parts: • sending commands to the processor • receiving replies. As can be seen from Figure 1-1, the two processors can communicate using COM2 and the keyboard port. Sending Commands to the Coprocessor All coprocessor commands are ASCII strings, consisting of a three-character mnemonic followed by any necessary parameters. They are always transmitted via COM2.
FMT1000 Series Programmer’s Guide Many parameters accept string arguments. To embed nonprinting control characters in these strings, use the format ^, which is a two-character sequence. ( refers to the key that would be used in concert with a keyboard control key to generate the code from a keyboard.) Some commonly used values are: Sequence Meaning ^I Tab ^J LF ^M CR ^L FF ^[ Escape Note: These sequences consume two characters in the specified maximum string length for a command.
I/O System Programming • Limit the total characters to fewer than 100. This is often adequate, as most coprocessor commands are short, and the default configuration is adequate for many applications. • Synchronize with the coprocessor by including a command for which you expect a reply, and wait for the reply.
FMT1000 Series Programmer’s Guide Coprocessor Reply Format All replies coming from the coprocessor have a common format: Where: tag prefix data suffix autoenter is a single programmable character is a programmable 16-character string is a 1- to 80-character string is a programmable-16 character string is a mode that determines how a reply is terminated. Response tags, prefixes and suffixes can be used to make messages coming from the coprocessor to the CPU unique.
I/O System Programming Prefixes and Suffixes in RS-232 Auxiliary Port Operations The coprocessor manipulates strings for many operations to make the job of programming the CPU easier. When programming the RS-232 auxiliary port, consider strings to consist of three parts: • prefix • data • suffix. Auxiliary input prefixes and suffixes are used to find the actual data in a data stream and separate it for input to the CPU.
FMT1000 Series Programmer’s Guide A dialing command could then be sent using: SOWDT5551212 Creative use of auxiliary prefixes and suffixes can greatly ease the job of interfacing to external devices. In many cases, correctly setting the prefixes and suffixes for such devices as the scale above can make it possible to interface these devices as keyboard inputs with no special programming.
I/O System Programming I/O Processor Commands The subsequent pages contain a list of I/O controller mnemonics. Each page describes one command. Certain conventions are used for arguments: • indicate the type of information to be passed; for example indicates a string. • Ranges of numbers are indicated as numbers in broken brackets, for example <0-80>. • N/A indicates that no arguments are passed or returned.
FMT1000 Series Programmer’s Guide Command List Command 2-10 Type Pg.# Command Type Pg.
I/O System Programming Command Type Pg.# Command Type Pg.
FMT1000 Series Programmer’s Guide Command 2-12 Type Pg.# Command Type Pg.
I/O System Programming Command Type Pg.# Command Type Pg.
FMT1000 Series Programmer’s Guide Host Comm Port Commands The host comm port commands configure the coprocessor port that is connected to COM2 of the CPU. Ordinarily there is no reason to change them. The commands are: Command SBH, RBH Description Set and Return Host Baud Rate Pg.
I/O System Programming SBH, RBH – Set and Return Host Baud Rate Format SBH <0-6> 0=300 baud 1=600 2=1200 3=2400 4=4800 5=9600 * 6=19200 Summary Returns or sets the data speed for the coprocessor host communications port. This setting is preserved in EEPROM. Returns Baud rate flag value. Description The factory default setting is 9600 baud.
FMT1000 Series Programmer’s Guide SDH, RDH – Set and Return Host Data Bits and Parity Format SDH <0-6> 0=7 bits, even parity 1=7 bits, odd parity 2=7 bits, space parity 3=7 bits, mark parity 4=8 bits, even parity 5=8 bits, odd parity 6=8 bits, no parity * Summary Sets the character length and parity check for the coprocessor host communications port. This setting is preserved in EEPROM. Returns Host data bits and parity flag value Description The factory default is 8 data bits, no parity.
I/O System Programming SSH, RSH – Set and Return Host Stop Bits Format SSH 0 | 1 0 = 1 stop bit * 1 = 2 stop bits Summary Sets the number of stop bits for the coprocessor host communications port. This setting is preserved in EEPROM. Returns Stop bit flag value, 0 or 1. Description The factory default is 1 stop bit.
FMT1000 Series Programmer’s Guide SHH, RHH – Set and Return Host Handshake Type Format SHH 0 | 1 0=None 1=XON/XOFF * Summary Sets the type of hardware handshaking between the coprocessor host communications port and the host CPU communications port COM2. This setting is preserved in EEPROM. Returns Handshake value flag, 0 or 1. Description Enables or disables the use of XON/XOFF handshaking for flow control between the coprocessor and CPU.
I/O System Programming Auxiliary RS-232 Port Commands There are many modes of auxiliary port operation. Using combinations of the features described below, you can readily manipulate almost any RS-232 device. The first group sets the reply format, as defined earlier: Command Description Pg.
FMT1000 Series Programmer’s Guide The RS-232 auxiliary port can perform I/O asynchronously while the CPU does other tasks. Input can occur continuously— desirable if a device that produces data only on demand, e.g., a large fixed station laser scanner, is connected. Or, if your device constantly streams data readings, you can set the port to capture a single reading and hold it.
I/O System Programming SAT, RAT – Set and Return Aux Comm Response Tag Format SAT Length: 1 Summary Sets a unique ID tag to prefix all input from the auxiliary communications port. Returns Aux tag string, 1 character. Description The I/O processor can route input via several devices. On occasion, input from several physical devices may be routed to the same system input port.
FMT1000 Series Programmer’s Guide SAP, RAP – Set and Return Aux Response Prefix Format SAP Max length: 16 Summary Sets the string to be transmitted before each response to an Aux Comm input operation. Returns Response Prefix, string of at most 16 bytes. Description This I/O processor command allows a standard prefix to be prepended to the response to a string of characters input to the auxiliary serial RS-232 port.
I/O System Programming SAS, RAS – Set and Return Aux Response Suffix Format SAS Max length: 16 Summary Sets the string to be appended to the response to each auxiliary comm port input or command reply. Returns Response suffix, string of at most 16 bytes. Description This I/O processor command allows a standard suffix to be sent after the response to each line input to the auxiliary serial RS-232 port, but before the termination string specified by the autoenter mode, if any.
FMT1000 Series Programmer’s Guide SEA, REA – Set and Return Aux Response AutoEnter Mode Format SEA <0-3> 0=Off * 1=CR (carriage return) 2=CR/LF (carriage return/line feed) 3=Tab Summary Sets the type of terminating characters for each response caused by data input via the RS-232 auxiliary port. This setting is preserved in EEPROM. Returns AutoEnter mode flag, integer 0-3. Description This mode sets the character transmitted to the host CPU after the data input from the RS-232 auxiliary port.
I/O System Programming SRA, RRA – Set and Return Aux Comm Response Path Format SRA 0 | 1 0=Keyboard * 1=COM2 host port Summary Sets the RS-232 auxiliary port input path to the keyboard or the host serial port COM2. This setting is preserved in EEPROM. Returns Response path flag, integer 0 or 1. Description The data from the RS-232 auxiliary port can be used to simulate input from the keyboard, or it can be transmitted to the host communications port COM2.
FMT1000 Series Programmer’s Guide SBA, RBA – Set and Return Aux Baud Rate Format SBA <0-6> 0=300 bits per second (bps) 1=600 2=1200 3=2400 4=4800 5=9600 * 6=19200 Summary Returns or sets the data speed for the RS-232 auxiliary serial port. This setting is preserved in EEPROM.
I/O System Programming SDA, RDA – Set and Return Aux Data Bits and Parity Format SDA <0-6> 0=7 bits, even parity 1=7 bits, odd parity 2=7 bits, space parity 3=7 bits, mark parity 4=8 bits, even parity 5=8 bits, odd parity 6=8 bits, no parity * Summary Sets the character length and parity check for the RS-232 auxiliary serial port. This setting is preserved in EEPROM. Returns Data bits and parity flag value. Description The factory default is 8 data bits, no parity.
FMT1000 Series Programmer’s Guide SSA, RSA – Set and Return Aux Stop Bits Format SSA 0 | 1 0=1 stop bit * 1=2 stop bits Summary Sets the number of stop bits for RS-232 auxiliary serial port communications. This setting is preserved in EEPROM. Returns Stop bit flag value, 0 or 1. Description The factory default is 1 stop bit.
I/O System Programming SHA, RHA – Set and Return Aux Handshake Type Format SHA 0 | 1 | 2 0=None 1=XON/XOFF * 2=RTS/CTS hardware handshaking Summary Sets the type of handshaking between the RS-232 auxiliary port and the external device. This setting is preserved in EEPROM. Returns Handshake value flag, 0, 1 or 2. Description Establishes the method by which a device connected to the RS-232 auxiliary port communications port on the FMT1000 Series computer can be directed to start or stop sending data.
FMT1000 Series Programmer’s Guide Note: If CTS is not connected, it does not appear to be asserted, and nothing is transmitted. You should not select this mode without correctly connecting RTS and CTS. You should either connect RTS and CTS to the appropriate signals on a remote device, or, if unused, wire RTS and CTS together. The factory default is XON/XOFF (1).
I/O System Programming SPO, RPO – Set and Return Aux Output Prefix Format SPO Max length of the character string: 16 Summary Sets the string to be sent before each message is output to the RS-232 auxiliary serial port. Returns Output Prefix, a character string of at most 16 bytes. Description This I/O processor command allows a standard prefix to be sent to a serial device connected to the RS-232 auxiliary serial port before each line of output.
FMT1000 Series Programmer’s Guide SSO, RSO – Set and Return Aux Output Suffix Format SSO Max length: 16 Summary Sets the string to be sent after each line is output to the RS-232 auxiliary serial port. Returns Output suffix, a character string of at most 16 bytes. Description This I/O processor command allows a standard suffix to be sent to a serial device connected to the RS-232 auxiliary serial port after each line of output.
I/O System Programming SPI, RPI – Set and Return Aux Input Prefix Format SPI Max length: 16 Summary Sets the string that will be removed from the beginning of each input message coming into the RS-232 auxiliary serial port before sending it to the CPU. Returns Input prefix, a character string of at most 16 bytes. Description This I/O processor command allows a standard prefix to be removed from a string of characters input from the RS-232 auxiliary serial port.
FMT1000 Series Programmer’s Guide SSI, RSI – Set and Return Aux Input Suffix Format SSI Max length: 16 Summary Sets the string to be removed from the end of each message input to the RS-232 auxiliary serial port. Returns Input suffix, a character string of at most 16 bytes. Description This I/O processor command allows a standard suffix to be removed from a message from the RS-232 auxiliary serial port. This string is not removed when passthrough mode (command SPA) is set to ON.
I/O System Programming SIC – Aux Input Cancel Format SIC Summary Cancels the current input request. Returns N/A Description Cancels an outstanding request for input set by the SIR set input read mode command and a read request. This command is useful when RIN returns an error status on input, and can be used as part of an error recovery routine within the program.
FMT1000 Series Programmer’s Guide SIO, RIO – Set and Return Aux Input Timeout Format SIO <0-255> Summary Set the length to wait for input, in seconds. This setting is preserved in EEPROM. Returns Timeout value, integer 0-255. Description Sets the timeout delay before setting the error status 3 (timeout error) for the RIN return input status command. If the delay is set to 0, the device, by definition, will never time out. This is the factory default.
I/O System Programming SIM, RIM – Set and Return Input String Length Format SIM <0-80> (Factory default is 80) Summary Sets the an exact size of the buffer allocated to receive input. This setting is preserved in EEPROM. Returns Size of the string buffer, integer 0-80. Description This command sets an exact expected data size for messages coming into the RS-232 auxiliary serial port. Example rem echo rem echo rem rem rem rem rem rem Set buffer size to 3. SIM3 > COM2 Set for continuous input.
FMT1000 Series Programmer’s Guide SII – Input Buffer Initialize Format SII Summary Resets the auxiliary serial input buffer to empty. Returns N/A Description This command discards any data waiting in the RS-232 auxiliary serial port input buffer. It is useful for being sure the buffer is empty before you expect a device to begin transmitting. Because the input buffer is interrupt-driven, other data may be left over. This obviates the need to continuously read the buffer until it is empty.
I/O System Programming SIB, RIB – Input Beep Enable Format SIB 0 | 1 0=OFF * 1=ON Summary Enables or disables the beep when input is received. This setting is preserved in EEPROM. Returns Beep Enable setting, integer 0 or 1. Description Allows an audible indication when input is received and accepted by the FMT1000 Series computers. Example rem echo Set aux input beep enable to ON.
FMT1000 Series Programmer’s Guide SIR, RIR – Set and Return Input Read Mode Format SIR 0 | 1 0=Single Read 1=Continuous Reads Summary Sets the mode by which input will be accepted from the device attached to the RS-232 auxiliary serial port. Returns N/A Description Single input mode receives and forwards just one reading to the CPU. To enable reading another input record, the command must be reissued.
I/O System Programming RIN – Return Input Status Format RIN Summary Returns the input status of the communications port. Returns Integer, 0-5 0=no error 1=command error 2=parameter error 3=timeout error 4=request was canceled 5=busy Description This command returns the current status for input from the serial port. It reflects the current status condition of the port, as opposed to the last error status, so it is important to retrieve status as needed. Example rem Return aux input status.
FMT1000 Series Programmer’s Guide Return Code Error/Status Description 1 (command error) indicates that the last command mnemonic was incorrect or inappropriately sequenced. 2 (parameter error) indicates that the parameter following the command was incorrect or inappropriate. This error can also occur if a required parameter is missing from a command. 3 (timeout error) occurs if the timeout value is exceeded; see the SIO set input timeout command.
I/O System Programming SOW – Set Output Write Format SOW Length: 1-80 characters Summary Initiates an output write to the RS-232 auxiliary port. Returns N/A Description Initiates an output write to the RS-232 auxiliary port. Example rem rem rem echo echo Write a string 'Hi There' terminated with a . Set output suffix to .
FMT1000 Series Programmer’s Guide SOC – Aux Output Cancel Format SOC Summary Cancels the current output request. Returns N/A Description Cancels an outstanding request for output of the string defined by SOW. This command is useful when ROU returns an error status on output, and can be used as part of an error recovery routine within the program. Example rem echo 2-44 Cancel aux output.
I/O System Programming SOO, ROO – Set and Return Aux Output Timeout Format SOO <0-255> Summary Set the length to wait for output, in seconds. This setting is preserved in EEPROM. Returns Timeout value, integer 0-255. Description Sets the timeout delay before setting the error status 3 (timeout error) for the ROU return output status command. If the delay is set to 0, the device will, by definition, never time out. This is the factory default. Example rem echo Set aux output timeout to 10 seconds.
FMT1000 Series Programmer’s Guide ROU – Return Output Status Format ROU Summary Returns the output status of the RS-232 auxiliary port. Returns Integer, 0-5 0=no error 1=command error 2=parameter error 3=timeout error 4=request was canceled 5=busy Description This command returns the current status for output to the RS-232 auxiliary port. It reflects the current status condition of the port, as opposed to the last error status, so it is important to retrieve status as needed.
I/O System Programming Return Code Error/Status Description 1 (command error) indicates that the last command mnemonic was incorrect or inappropriately sequenced. 2 (parameter error) indicates that the parameter following the command was incorrect or inappropriate. This error can also occur if a required parameter is missing from a command. 3 (timeout error) occurs if the timeout value is exceeded; see the SOO set output timeout command.
FMT1000 Series Programmer’s Guide SPA, RPA – Set or Return Aux Passthrough Mode Format SPA 0 | 1 0=off * 1=on Summary Sets the I/O processor passthrough mode for the RS-232 auxiliary port. Returns N/A Description When passthrough is set to 0 (off), the I/O processor's prefix, suffix, and buffer length filters control the data flow from the serial port. These filters can be set using mnemonic commands.
I/O System Programming STC, RTC – Set and Return Passthrough Termination Characters Format STC Length: 3 characters Summary Sets the character string which the I/O processor will use to recognize the end of passthrough mode. Returns N/A Description When the RS-232 auxiliary port is in passthrough mode, the I/O processor still monitors the data input stream.
FMT1000 Series Programmer’s Guide SAE, RAE – Set and Return Aux Communications Port Enable Format SAE 0 | 1 0=Off 1=On * Summary Enables or disables transmission of RS-232 auxiliary port responses to the CPU. This setting is preserved in EEPROM. Returns Aux comm port enable flag, integer 0 or 1. Description Enables or disables transmission of RS-232 auxiliary port responses to the CPU. Example rem echo 2-50 Set aux comm port enable to OFF.
I/O System Programming Digital I/O and Counter Commands FMT1000 Series computers have two digital inputs and two digital outputs. These are often used for such applications as access control and machine monitoring. The first set of commands configure the response format, defined earlier as the format of messages from the coprocessor to the CPU, in this case for digital I/O commands. Command Description Pg.
FMT1000 Series Programmer’s Guide Note: The terminology on and off is used in regard to digital inputs. The actual inputs are optical isolators. On means that current is flowing through the isolator, and off means that no current is flowing. Also, the input circuit inverts the signal so an input that is on will return a 0 (zero). Command Description Pg.# RS1, RS2 Return State of Input No. 1 or No. 2 2-60 SR1, SR2 Reset Counter No. 1 or No. 2 2-61 RE1, RE2 Read Counter No. 1 or No.
I/O System Programming One other digital I/O command is used: Command Description Pg.# SDE, RDE Set and Return Digital I/O Line Enable 2-67 This command enables or disables the transmission of digital I/O response if the FMT1000 Series computer is programmed for change-of-state detection.
FMT1000 Series Programmer’s Guide SDT, RDT – Set and Return Digital I/O Response Tag Format SDT Length: 1 Summary Sets a unique ID tag to prefix input from the digital I/O lines. Returns Digital I/O tag, 1 character Description The I/O processor can route input via several devices. On occasion, input from several physical devices may be routed to the same system input port. For example, both the RS-232 auxiliary port and the digital I/O can send their data to the keyboard buffer.
I/O System Programming SDP, RDP – Set and Return Digital I/O Response Prefix Format SDP Max length: 16 Summary Sets the string to be prepended before each response containing data from the digital I/O. Returns Response Prefix, string of at most 16 bytes. Description This I/O processor command allows a standard prefix to be added to the response to a string of characters input from or output to the digital I/O lines.
FMT1000 Series Programmer’s Guide SDS, RDS – Set and Return Digital I/O Response Suffix Format SDS Max length: 16 Summary Sets the string to be appended to the response to each input from the digital I/O lines. Returns Response suffix, string of at most 16 bytes. Description This I/O processor command allows a standard suffix to be sent after the response to an input change of state, but before the termination string specified by the autoenter mode, if any.
I/O System Programming SED, RED – Set and Return Digital I/O Response AutoEnter Mode Format SED <0-3> 0=Off * 1=CR (carriage return) 2=CR/LF (carriage return/line feed) 3=Tab Summary Sets the type of terminating characters for data input via the digital I/O lines. This setting is preserved in EEPROM. Returns AutoEnter mode flag, integer 0-3. Description This mode sets the character(s) transmitted to the host CPU after the data input from the digital I/O.
FMT1000 Series Programmer’s Guide SRD, RRD – Set and Return Digital I/O Response Path Format SRD 0 | 1 0=Keyboard * 1=COM2 host port Summary Sets the digital I/O input path to the keyboard or the host serial port COM2. This setting is preserved in EEPROM. Returns Response path flag, integer 0 or 1. Description The data from the digital I/O can be used to simulate input from the keyboard, or it can be transmitted to the host communications port COM2.
I/O System Programming SI1, RI1, SI2, RI2 – Set and Return Input No. 1 or No. 2 Response String Format SI1 SI2 RI1 RI2 Max String Length: 80 Summary Sets or returns the string sent to the CPU when an OFF to ON change of state occurs on a digital input. Returns The response string, if any. Description This command is used to set a response string that is sent to the CPU, with normal response format processing, in response to an OFF to ON change of state of the designated input.
FMT1000 Series Programmer’s Guide RS1, RS2 – Return State of Input No. 1 or No. 2 Format RS1 RS2 Summary Returns the binary state of digital input No. 1 or No. 2. Returns String, 0 or 1 1=Off, no current flowing through opto-isolation. 0=On, current is flowing through opto-isolation. Description This command is used to read the current state of digital input No. 1 or No. 2. Example rem echo rem 2-60 Read input #1. RS1 > COM2 The return string will be '0' or '1'.
I/O System Programming SR1, SR2 – Reset Counter No. 1 or No. 2 Format: SR1 SR2 Summary Resets to 0 the value of the counter for input line No. 1 or No. 2. Returns N/A Description This command sets the value of the counter to 0. The counter is unsigned, 32 bit. Example rem echo Reset counter #1 to 0.
FMT1000 Series Programmer’s Guide RE1, RE2 – Read Counter No. 1 or No. 2 Format RE1 RE2 Summary Returns the value of the counter for input line No. 1 or No. 2. Returns An ASCII string representing the current value of the internal counter as decimal digits. Description This command retrieves the value of the counter for input lines No. 1 or No. 2. The counter is unsigned, 32 bit. Example rem echo 2-62 Read counter #1.
I/O System Programming RR1, RR2 – Read and Reset Counter No. 1 or No. 2 Format RR1 RR2 Summary Returns the value of the input counter for line No. 1 or No. 2 and resets that counter to 0. Returns An ASCII string representing the current value of the internal counter as decimal digits. Description This command returns the current value of the counter for digital input lines No. 1 or No. 2, and then resets the value of the counter to 0. The counter is unsigned, 32 bit.
FMT1000 Series Programmer’s Guide SM1, SM2, RM1, RM2 – Set and Return Counter No. 1 or No. 2 Value Match Format SM1<0-1,000,000> SM2<0-1,000,000> RM1 RM2 0=Off 1-1,000,000=Count to match Summary Sets counter-match value. Returns Counter-match value, 0-1,000,000. Description This command set sa target value for a counter. When the value is reached, a response string is sent to the CPU via the digital I/O response path. Also see S1M and S2M, page 85.
I/O System Programming S1M, R1M, S2M, R2M – Set and Return Counter No. 1 or No. 2 Response String Format S1M S2M R1M R2M Max string length: 80 Summary Sets counter response string. Returns Counter-match response string, string 0-80 characters. Description This command sets a response string that is sent to the CPU when a target counter-match value is reached. The response is sent via the digital I/O response path. Also see SM1 and SM2, page 2-64.
FMT1000 Series Programmer’s Guide ST1, RT1, ST2, RT2 – Set and Return Momentary Timeout for Output No. 1 and No. 2 Format ST1 <0-999> 0=Off 999=On 1-998=Time value in tenths of a second Summary Activates, deactivates, or temporarily activates a digital output. Returns Timeout value, integer 0-999. Description This command can be used to activate, deactivate, or temporarily activate a digital output. Temporary activation, known as momentary mode, activates the digital output for from 0.1 to 99.
I/O System Programming SDE, RDE – Set and Return Digital I/O Response Enable Format SDE 0 | 1 0=Off 1=On * Summary Enables or disables the response to changes of state on digital inputs. This setting is preserved in EEPROM. Returns Digital I/O line enable setting, integer 0 or 1. Description Enables or disables the response to changes of state on digital inputs. All other messages, such as the responses to commands to read the state of an input, or a counter, are unaffected.
FMT1000 Series Programmer’s Guide Bar Code and Wand Control Commands These commands control the peripheral inputs to the I/O coprocessor. These inputs can connect one or two bar code devices, or a bar code device and a magnetic stripe reader. Note that there are no specific commands to control the magnetic stripe reader. The first set of commands configure the response format, defined earlier as the format of messages from the coprocessor to the CPU, in this case for peripheral input commands.
I/O System Programming The last set of commands sets various control parameters for peripheral input. Command Description Pg.
FMT1000 Series Programmer’s Guide SP5, RP5, SP9, RP9 – Set and Return Peripheral (5-Pin Connector) Tag and (9-Pin Connector) Tag Format SP5 SP9 RP5 RP9 Length: 1 Summary Sets a unique ID tag to prefix bar code data from each connector. Returns Peripheral connector tag, 1 character Description This command set a tag which is added to the input from either bar code connector to identify the source of the input.
I/O System Programming SPT, RPT – Set and Return Peripheral Response Tag Format SPT Length: 1 Summary Sets a unique ID tag to prefix all input from the peripheral communications port. Returns Peripheral tag string, 1 character. Description The I/O processor can route input via several devices. On occasion, input from several physical devices may be routed to the same system input port. For example, both the RS-232 auxiliary port and peripheral ports can send their data to the keyboard buffer.
FMT1000 Series Programmer’s Guide SPP, RPP – Set and Return Peripheral Response Prefix Format SPP Max length: 16 Summary Sets the string to be prepended before each response containing data from a peripheral port. Returns Response prefix, string of at most 16 bytes. Description This I/O processor command allows a standard prefix to be added to the response to a string of bar code or magstripe characters read at the peripheral port.
I/O System Programming SPS, RPS – Set and Return Peripheral Response Suffix Format SPS Max length: 16 Summary Sets the string to be appended to the response to each input from the peripheral port. Returns Response suffix, string of at most 16 bytes. Description This I/O processor command allows a standard suffix to be sent after the response to each line of input, but before the terminating character(s) set by the state of the autoenter mode.
FMT1000 Series Programmer’s Guide SEP, REP – Set and Return Peripheral Response AutoEnter Mode Format SEP <0-3> 0=Off * 1=CR (carriage return) 2=CR/LF (carriage return/line feed) 3=Tab Summary Sets the type of terminating characters for data input via the peripheral port. This setting is preserved in EEPROM. Returns AutoEnter mode setting, integer 0-3. Description This mode sets the character(s) transmitted to the host CPU after the data input from the peripheral port.
I/O System Programming SRP, RRP – Set and Return Peripheral Port Response Path Format SRP 0 | 1 0=Keyboard * 1=COM2 host port Summary Sets the peripheral port input path to the keyboard or the host serial port COM2. This setting is preserved in EEPROM. Returns Response path flag, integer 0 or 1. Description The data from the peripheral port can be used to simulate input from the keyboard, or it can be transmitted to the host communications port COM2.
FMT1000 Series Programmer’s Guide S39, R39 – Set and Return Code 3 of 9 Mode Format S39 <0-3> 0=Off 1=Code 3 of 9 * 2=Code 3 of 9 Mod 43 3=Full ASCII code 3 of 9 Summary Enable and set the type of Code 3 of 9 bar code to decode. This setting is preserved in EEPROM. Returns Code 3 of 9 setting, integer 0-3. Description Enables or disables the decoding of Code 39 and sets the variant of the symbology to be decoded if enabled.
I/O System Programming S25, R25 – Set and Return Interleave 2 of 5 Mode Format S25 0 | 1 0=Off 1=On * Summary Enable or disable bar code type Interleave 2 of 5. This setting is preserved in EEPROM. Returns Interleave 2 of 5 enable setting, 0 or 1. Description Enables or disables the decoding of bar code type Interleave 2 of 5. The factory default is ON. Example rem echo Set interleaved 2 of 5 code mode to ON.
FMT1000 Series Programmer’s Guide SCB, RCB – Set and Return Codabar Mode Format SCB 0 | 1 0=Off 1=On * Summary Enables or disables the decoding of bar code type CODABAR. This setting is preserved in EEPROM. Returns Codabar enable setting, string 0 or 1. Description Enables or disables the decoding of bar code type CODABAR. The factory default is ON.
I/O System Programming SUP, RUP – Set and Return UPC Mode Format SUP 0 | 1 0=Off 1=On * Summary Enables or disables the decoding of bar code type UPC. This setting is preserved in EEPROM. Returns UPC enable setting, string 0 or 1. Description This command enables or disables the decoding of Universal Product Code (UPC) bar codes. This includes the decoding of EAN codes. All true UPC codes will be 13 digit numbers, prefixed by 0 (for U.S. country code).
FMT1000 Series Programmer’s Guide S28, R28 – Set and Return Code 128 Mode Format S28 0 | 1 0=Off 1=On * Summary Enables or disables the decoding of bar code type Code 128. This setting is preserved in EEPROM. Returns Code 128 enable setting, string 0 or 1. Description Enables or disables the decoding of bar code type Code 128. All three code sets are supported. The factory default is ON. Example rem echo 2-80 Set Code 128 mode to ON.
I/O System Programming SSC, RSC – Set and Return Concatenate Mode Format SSC 0 | 1 0=Off * 1=On Summary Selects whether to concatenate bar codes or not. This setting is preserved in EEPROM. Returns Mode flag, string 0 or 1. Description When this mode is enabled, all bar codes which have a leading space are sent without the space and the peripheral response tag, prefix, suffix, and autoenter strings are not added to the response data.
FMT1000 Series Programmer’s Guide SSM, RSM – Set and Return String Match Length Format SSM <0-80> 0=Off (no length matching) Min length for matching: 1 Max length: 80 Summary Sets the length against which input bar codes are matched. This setting is preserved in EEPROM. Returns Match length, string 0-80. Description Sets a length against which the input bar code is matched. If it does not match, the bar code input is not accepted or processed.
I/O System Programming SSB, RSB – Set and Return Read Beep Enable Format SSB 0 | 1 0=Off 1=On* Summary Enables or disables a beep upon successful decoding of a bar code. This setting is preserved in EEPROM. Returns Beep status setting, string 0 or 1. Description When a bar code has been successfully scanned, by default the coprocessor beeps indicating a successful read. However, if no beep is preferred, it can be disabled with this command. Example rem echo Set read beep enable to ON.
FMT1000 Series Programmer’s Guide SPE, RPE – Set and Return Peripheral Port Enable Format SPE 0 | 1 0=Off 1=On * Summary Enables or disables transmission peripheral port responses. This setting is preserved in EEPROM. Returns Peripheral port enable setting, string 0 or 1. Description Enables or disables transmission peripheral port responses from bar codes or magstripe input. All peripheral port commands that elicit a response are unaffected. Example rem echo 2-84 Set peripheral port enable to ON.
I/O System Programming System Commands The system commands include commands for controlling the keyboard and display and various other internal functions. The first set of commands configure the response format, defined earlier as the format of messages from the coprocessor to the CPU, in this case for system commands, also referred to as internal commands. Note that this format is used for all replies to CPU commands that come from the coprocessor, regardless of the internal subsystem to which they apply.
FMT1000 Series Programmer’s Guide SKR, RKR Set and Return Keyboard Repeat 2-98 SKC, RKC Set and Return Keyboard Click 2-99 SCD, RCD Set and Return Keyboard Intercharacter Delay 2-100 SnD, SnU RnD, RnU Set and Return User Defined Key Up and Down Scan 2-101 Codes (n=1, 2, 3, or 4) The following are miscellaneous other commands: 2-86 Command Description Pg.
I/O System Programming SIT, RIT – Set and Return Internal Command Response Tag Format SIT Length: 1 Summary Sets a unique ID tag to prefix all input from the I/O processor in response to an internal command. Returns Aux tag string, 1 character. Description The I/O processor can route input via several devices. On occasion, input from several physical devices may be routed to the same system input port.
FMT1000 Series Programmer’s Guide SIP, RIP – Set and Return Internal Command Response Prefix Format SIP Max length: 16 Summary Sets the string to be prepended before each response to an internal command Returns Response prefix, string of at most 16 bytes. Description This I/O processor command allows a standard prefix to be added to the response to internal command mnemonics. There is no factory default for this command, and it will not be reset using the SFD set factory defaults command.
I/O System Programming SIS, RIS – Set and Return Internal Command Response Suffix Format SIS Max length: 16 Summary Sets the string to be appended to the response to each internal command. Returns Response suffix, string of at most 16 bytes. Description This I/O processor command allows a standard suffix to be sent after the response to a command mnemonic, but before the terminating character set by the state of the autoenter mode.
FMT1000 Series Programmer’s Guide SEI, REI – Set Internal Command Response AutoEnter Mode Format SEI <0-3> 0=Off * 1=CR (carriage return) 2=CR/LF (carriage return/line feed) 3=Tab Summary Sets the type of terminating characters for internal commands. This setting is preserved in EEPROM. Returns AutoEnter mode flag, string 0-3. Description This mode sets the character transmitted to the host CPU after the data input from internal commands.
I/O System Programming SRI, RRI – Set and Return Internal Command Response Path Format SRI 0 | 1 0=Keyboard * 1=COM2 host port Summary Sets the internal command response path to the keyboard or the host serial port COM2. This setting is preserved in EEPROM. Returns Response path flag, string 0 or 1. Description The data from internal commands can be used to simulate input from the keyboard, or it can be transmitted to the host communications port COM2.
FMT1000 Series Programmer’s Guide SBL, RBL – Set Backlight Format SBL <0-2> 0 = Off 1 = On 2 = Automatic * Summary Sets the LCD display backlight mode. This setting is preserved in EEPROM. Returns Backlight mode setting, string 0, 1, or 2. Description Sets the mode of backlighting for the LCD display. Automatic mode turns the backlight on in response to keyboard activity and off after 10 minutes of no keyboard activity. Because backlights have a finite lifetime, automatic and off are the usual choices.
I/O System Programming SVA, RVA – Set and Return Viewing Angle Format SVA <0-100> Summary Sets the viewing angle for the LCD display. This setting is preserved in EEPROM. Returns Viewing angle, integer 0-100. Description The SVA command allows customizing of the viewing angle for the LCD display on the FMT1000 Series computer. The defaults are set as a result of issuing a SKT set keyboard type command; however, SKT can be overridden by SVA.
FMT1000 Series Programmer’s Guide SAD, RAD – Set and Return Keyboard Auto Detect Format SAD 0 | 1 0=disable auto detect 1=enable auto detect* Summary Enables or disables keyboard auto detection feature. This setting is preserved in EEPROM. Returns Keyboard auto detect setting, integer 0 or 1. Description This feature, when enabled, allows the FMT1000 Series computer to detect which of the five keyboard configurations is being used.
I/O System Programming SKH, RKH – Set and Return Keyboard Hardware Reset Enable Format SKH 0 | 1 0=Off 1=On * Summary This key combination enables or disables system hard resets from the keyboard. This setting is preserved in EEPROM. Returns Reset enable setting, integer 0 or 1 Description While the well known key combination will software reset a DOS computer and cause it to reboot, at times a hard, hardware reset is required.
FMT1000 Series Programmer’s Guide SKE, RKE – Set and Return Keyboard Enable Mode Format SKE 0 | 1 0=Off 1=On * Summary Enables or disables the keyboard. This setting is preserved in EEPROM. Returns Keyboard enable setting, string 0 or 1. Description Allows the keyboard to be disabled. Input from other devices will still be accepted. Note that the (character R) hardware reset sequence will still cause a reset if enabled, regardless of the setting of the keyboard enable.
I/O System Programming SKT, RKT – Set and Return Keyboard Type Format SKT <0-4> 0=FMT1020 QWERTY * 1=FMT1020 Alpha-numeric 2=FMT1020 Numeric 3=FMT1060 4=FMT1040 Summary Sets the type of keyboard which is installed in the system. This setting is preserved in EEPROM. Returns Keyboard type, string 0-4. Description Sets the type of keyboard that is installed in the FMT1000 Series computer. This command is used when the keyboard is changed.
FMT1000 Series Programmer’s Guide SKR, RKR – Set and Return Keyboard Repeat Format SKR 0 | 1 0=Off 1=On * Summary Enables or disables key repeat for the keyboard. This setting is preserved in EEPROM. Returns Key repeat enable, string 0 or 1. Description When this setting is OFF, pressing a key will generate only one character or function. When it is on, the key starts repeating after it has been pressed and held for one second, and then continues repeating at a rate of five per second.
I/O System Programming SKC, RKC – Set and Return Keyboard Click Format SKC 0 | 1 0=Disabled 1=Enabled* Summary Enables or disables the click speaker sound on keypress. This setting is preserved in EEPROM. Returns Click setting, string 0 or 1. Description This command controls the sound generated when a key is pressed on the keyboard. Example rem echo Set keyboard click ON.
FMT1000 Series Programmer’s Guide SCD, RCD – Set and Return Keyboard Intercharacter Delay Format SCD <0-255> Summary Sets the delay in tens of milliseconds between each key generated. This setting is preserved in EEPROM. Returns Intercharacter delay, integer 0-255.
I/O System Programming SnD, SnU – Set User Defined Key Up and Down Scan Codes RnD, RnU – Return User Defined Key Up and Down Scan Codes Note: n = 1, 2, 3, or 4 Format SnD SnU RnD RnU Summary Sets the scan codes sent in response to pressing and releasing the user-defined keys or UDKs. This setting is preserved in EEPROM. Returns Description These functions allow the user to define keys to do any special key sequence that cannot be generated by the keyboard.
FMT1000 Series Programmer’s Guide Example (SnD and SnU): To implement on UDK1, the following commands would be used: S1D\1D\EO\46\EO\C6 Set User Defined Key 1 Down (UDK1 DOWN) S1U\9D Set User Defined Key 1 Up (UDK1 UP) Implementing hardware reset is a special case.
I/O System Programming RVR – Return Firmware Version Format RVR Summary Returns the current firmware revision level of the I/O coprocessor Returns A string of the format I/O Coprocessor v XX.YY. Description Returns information pertaining to the revision levels of the firmware in the I/O coprocessor board. XX denotes the major version number, and YY designates the revision level within the version.
FMT1000 Series Programmer’s Guide SFD – Reset to Factory Defaults Format SFD Summary Resets I/O configuration parameters to their factory defaults. Returns Single beep if successful. Description This command resets most configuration parameters to factory defaults. If a parameter does not have a factory default, it is not reset. These parameters are noted in this manual. This command does not reset the keyboard type, as set by the SKT command, or the viewing angle.
I/O System Programming SEE – Write Setup to EEPROM Format SEE Summary Writes the I/O configuration data to the EEPROM. Returns Single beep if successful. Description Once changes have been made and verified in the I/O processor configuration, they can be written to the EEPROM so that the FMT1000 Series computer will remember them every time it is powered up. Example rem echo Write configuration data to EEPROM.
FMT1000 Series Programmer’s Guide RER – Return Error Code Format RER Summary Returns an error code relating to the last command. Returns Error code, integer 0-5 0=no error 1=command error 2=parameter error 3=timeout error 4=request was canceled 5=busy Description This command returns an error code relating to the last command executed. It allows sync with I/O processing. RER may be performed after each command.
I/O System Programming Return Code Error/Status Description 1 (command error) indicates that the last command mnemonic was incorrect or inappropriately sequenced. 2 (parameter error) indicates that the parameter following the command was incorrect or inappropriate. This error can also occur if a required parameter is missing from a command. 3 (timeout error) occurs if the timeout value is exceeded; see the SOO set output timeout or SIO set input commands.
FMT1000 Series Programmer’s Guide SBP – Set Beeper Tones Format SBP <0-5> 0=high pitch 1=high, low pitches 2=high, high pitches 3=high, low, high pitches 4=high, high, high pitches 5=tick sound Summary Allows different beep tones to be generated by the internal beeper. Returns N/A Description This command allows the user to easily generate a variety of beep patterns for application specific use. One beep pattern sounds each time the command is executed.
I/O System Programming SSS, RSS – Set and Return Startup String Format SSS Max length: 16 Summary Sets a string that may be recalled upon demand to execute a terminal specific command on startup. This setting is preserved in EEPROM. Returns Startup message, string no more than 16 characters. Description This string is provided to allow a simple method for each FMT1000 Series computer to take a custom action on booting. In general the technique is as follows: 1.
FMT1000 Series Programmer’s Guide RES – Echo String Via Current Internal Response Path Format RES Max length: 80 Summary Echoes the string to current internal response path. Returns Description Used for diagnostic purposes, to check out coprocessor communications. Example echo rem rem 2-110 RES This is a test. > COM2 'This is a test.' will be sent to the CPU via the internal path.
I/O System Programming ROB – Return State of Battery Sense Format ROB Summary Returns an integer that indicates on-battery operation. Returns Battery state, integer 0 or 1 0=Voltage input is 12VDC supply 1=Voltage input is battery pack Description This command is used to read the battery sense input. When the power input is lost, and the battery pack takes over, this input will switch from 0 to 1. Example rem echo rem Read battery sense bit. ROB > COM2 The return string will be '0' or '1'.
FMT1000 Series Programmer’s Guide SBE, RBE – Set and Return Battery Sense Enable Format SBE 0 | 1 0=disable 1=enable Summary Enables or disables automatic battery power sense. Returns Battery sense enable, 0 or 1. Description This command enables the automatic battery power sense feature. This feature senses the switchover to battery power within 20 seconds of primary power loss. A string is sent to the CPU via the internal path to alert the application of the condition.
I/O System Programming SBS, RBS – Set and Return Switched to Battery String Format SBS Maximum string length: 16 characters Summary Set switched to battery string. Returns Switched to battery string 0-16 characters. Description This command sets the switched to battery string used by the automatic battery power sense feature. This feature senses the switchover to battery power within 20 seconds of primary power loss.
FMT1000 Series Programmer’s Guide 2-114
Appendix A Sample Applications Sample applications are included on the Network Drivers and Utilities diskette provided with the FMT1000 Series computer. All the applications were written in QBasic. QBasic is included in MS DOS 5.0. These applications are meant to be samples. They provide some very simple methods of accessing the various features of FMT1000 Series computers. Some of the samples adjust the factory default settings.
FMT1000 Series Programmer’s Guide 4. Interfacing with RS-232 Devices through COM1 (COM1DEMO.BAS): This application shows how to communicate with an RS-232 device connected to COMI. The device we selected is one of our OEM microterminals. For details about the RS-232 auxiliary port please refer to the Chapter 2 of this manual. To run this program, you will need a character mode RS-232 terminal and a null modem cable with CTS and DTR pulled high.
Appendix B XT 101 Keyboard Scan Codes For the sake of legibility, the keyboard scan codes are divided into two graphics: • Section A Keyboard • Section B Keyboard. Figure B-1, Figure B-2, and Figure B-3 identify the sections of the keyboard and the scan codes specific to each.
FMT1000 Series Programmer’s Guide Figure B-1.
XT 101 Keyboard Scan Codes Figure B-2.
FMT1000 Series Programmer’s Guide NOTES: 1. PRINT SCREEN key: DOWN code is E0 2A E0 7C. UP code is E0 B7 E0 AA. If CTRL KEY IS down, DOWN code is E0 37 and UP code is E0B7. If ALT key is down, DOWN code is 54 and UP code is D4. 2. PAUSE key: DOWN code is E1 1D 45 E1 9D C5. There is no UP CODE. BREAK is active when CTRL is down. DOWN code is E0 46 E0 C6. There is no UP code. 3. / key: DOWN code is E0 35. If LEFT SHIFT is down, the code is E0 AA D0 35 and the UP code is E0 B5 E0 2A.
XT 101 Keyboard Scan Codes Keyboard Redefinition Using ANSI.SYS In DOS version 5.0 and higher, individual keys may be redefined using the ANSI.SYS driver. In particular, use the following invocation in CONFIG.SYS to enable full 101-key compatibility: DEVICE=(drive:\path\)ANSI.
FMT1000 Series Programmer’s Guide B-6