Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 6 of 8

2320 Operator's Guide: Commands and Functions

Pages 31 to 44 of 54, from 2320 Operator's Guide

The original document is the PDF (464 KB). 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 LXE 2320

Page 31

Commands and Functions The 2320 operating system is compatible with DOS 5.0 commands and files. This section contains further description of the files delivered with the 2320.

ATTRIB The ATTRIB command either displays or modifies the attribute of a file. Syntax ATTRIB [+ | -] [option] [filespec] The ATTRIB command modifies file attributes if modify commands are given to ATTRIB. Option Description +/Add (+) or remove (-) attribute A Archive attribute C Clear all attributes H Hidden attribute R Read-only attribute S System attribute If no modify commands are found by ATTRIB, then the files are displayed along with the file names.

BLINK BLINK toggles the cursor blink on or off. Syntax BLINK [ON|OFF]

BREAK The BREAK command stops certain batch and program operations when you press the <Ctrl> and <C> keys at the same time. Syntax BREAK [ON|OFF]

BUFFERS ROM-DOS has internal buffers to temporarily hold data read from the disk. Increasing the number of internal buffers speeds system performance. Syntax BUFFERS = number

153750-0001

February 1996

2320 Operator’s Guide

Page 32

22

Commands and Functions

CALIB CALIB reports computer and clock speeds. Syntax CALIB

CALL The CALL subcommand invokes execution of a secondary batch file without exiting the primary batch file. Control is returned to the primary batch file when the secondary batch file is finished executing. Syntax CALL batchfile [batchfile arguments] Parameters for the secondary batch file may also be included, if appropriate.

CDS CDS is a utility that enables you to change a directory. This utility is closely related to two other utilities: MDS and RDS. These three utilities allow you to change, make, or remove ‘secret’ directories. They work like their ‘non-secret’ DOS counterparts: CD, MD, and RD except that they take no DOS arguments. DOS allows you to create files with hidden attributes, but not directories. Syntax CDS

CHKDSK The CHKDSK command checks the disk directories and File Allocation Table and displays a disk and memory report. Syntax CHKDSK [d:][/F][/V] [filespec] Options /F fixes errors on the disk if any are found. The errors that can be found are directory or FAT errors. If the /F is not specified, then CHKDSK acts as if it is fixing the disk, but the corrections are not written out to the disk. /V displays each path and file as it is processed.

2320 Operator’s Guide

February 1996

153750-0001

Page 33

Commands and Functions

23

CLICK CLICK toggles the keyboard click on or off. Syntax CLICK [ON|OFF]

CLS The CLS command clears the monitor to display a blank screen. Syntax CLS

COMMAND This command starts a new command processor. Syntax COMMAND [/option][commandstring] This command starts a new copy of the ROM-DOS command processor. The command processor is the program that has all the internal DOS commands in it. Starting a new command processor also produces a new environment. The size of the environment is 128 bytes by default. Options /C causes COMMAND to execute a command in the string and then terminate. The string command can be any internal or external command. /P causes COMMAND not to exit. The /P switch is used when COMMAND is used in a CONFIG.SYS SHELL statement.

CONFIG.SYS Certain standard settings for your system's operation can be stored in a file called CONFIG.SYS. The CONFIG.SYS file must be placed in the root directory of the drive that is used for system boot-up. Items in the file may be listed in any order. Note:

If a CONFIG.SYS file is found on either Drive B or Drive C, it is executed using the newfile command. Control is not returned to Drive A’s CONFIG.SYS file; therefore, the remaining command lines are ignored. You must provide for the lines in your own CONFIG.SYS file. DOS commands that you can include in the CONFIG.SYS file: BREAK, BUFFERS, DEVICE, FCBS, FILES, INSTALL, LASTDRIVE, REM, SHELL.

153750-0001

February 1996

2320 Operator’s Guide

Page 34

24

Commands and Functions

FIND The FIND command is a filter to display only lines that contain a specified string. The input to FIND may come from a file, or it may be piped in from another filter or a DOS command. Syntax FIND [/option] string [filename] [/option] Options /C causes FIND to display the count of lines found with the specified string. /N causes FIND to display the line number of the line found containing the string. /V causes FIND to display the lines that do not contain the string. /I ignores the case of characters when searching for the string.

FMT FMT allows the 2320 to format a Release 1.0 PC card. You are given a choice of card memory sizes, followed by a warning that all data in the card will be destroyed. Enter a Y to format the card; enter any other key to return to the DOS prompt without formatting the card. Use FMT with caution as it will delete all of the files on the PC card. Syntax FMT

GETFILE GETFILE prompts you (usually from within a batch file) for a file name and outputs the string “FNAME=[whatever you typed]”. This string can be piped into the XSET command to place the whole thing in the environment.

GOTO The GOTO subcommand transfers control to another line of the batch file. Syntax GOTO [:]label The label is another line in the batch file consisting of a string up to eight characters long. The string may be preceded by a colon (:). The label may be an environment variable. If the specified :label is not found, then the batch file terminates with the error message: Label not found.

IFEXIST IFEXIST reports the existence of a file. It is used in the 2320's AUTOEXEC.BAT file. Syntax IFEXIST

2320 Operator’s Guide

February 1996

153750-0001

Page 35

Commands and Functions

25

ISCARD ISCARD checks to see if a PC card is present. It is used in the 2320's AUTOEXEC.BAT file. Syntax ISCARD

KC KC is a hex & decimal value keycode reporting utility. Syntax KC

LABEL The LABEL command sets or deletes a disk volume label. Syntax LABEL [d:] The volume label may be up to 11 characters in length. LABEL only uses the first 11 characters of a volume label that is more than 11 characters long. The characters that are usable in a volume label are the same as used for a file name.

LX The LX program demonstrates scanning with the laser scanner and entry of information on the keyboard. Syntax LX The entries from either source are stored in the DATA file. The DATA file is cleared every time the program starts. The DATA file closes after every entry ensuring that the data is saved even if you exit the program without pressing the <ESC> key. The DATA file can be sent out the serial port to a printer with the DOS copy command. Keyboard entries cannot be made until F3 is entered.

MDS MDS is a utility that enables you to make a directory. This utility is closely related to two other utilities: CDS and RDS. These three utilities allow you to change, make, or remove ‘secret’ directories. They work like their ‘non-secret’ DOS counterparts: CD, MD, and RD except that they take no DOS arguments. DOS allows you to create files with hidden attributes, but not directories. Syntax MDS

153750-0001

February 1996

2320 Operator’s Guide

Page 36

26

Commands and Functions

MEM MEM reports free memory in bytes. Syntax MEM

MODE The MODE command modifies the operation of the printer and serial port. Syntax MODE LPT#[:]=COM#[:] or MODE COM#:baud[,parity[,databits[,stopbits[,P]]]] The first format above causes the output sent to the specified line printer (P - printer port) to be redirected to the serial port. The second format above changes the operation of the specified communications port. The following options can be modified: MODE for the 23203 supports the following: COM port Baud rate Parity Data Bits Stop Bits

1, 2 Default=1 1200, 2400, 4800, 9600 N (none), E (even), O (odd) Default=E 7, 8 Default=7 1

Note:

The right module connector on the 2320 is COM1 and the left module connector is COM2. Invalid values for any of the options are flagged with an error message. Using the “P” option as the last argument causes output to be sent repeatedly to the printer port until it is successfully received. Without the “P,” output is sent only once, causing a critical error if unsuccessful. Note:

A serial port should be initialized before an LPT device is redirected to it.

O'Neil Printer The 2320 communicates with the O'Neil Printer through the IR (infra-red) module. Use the O'Neil configuration software diskette to configure the printer. Setup the necessary parameters according to your needs. Refer to the O'Neil User and Technical Guide for more information. If you have any questions, call your O'Neil representative. Note:

3

You must place the IR receiving printer within three feet (line of sight) of the 2320's IR module.

The 2320 MODE command accepts only N,8,1; O,7,1; or E,7,1.

2320 Operator’s Guide

February 1996

153750-0001

Page 37

Commands and Functions

27

MORE The MORE command displays a text file one screen at a time. Syntax MORE [filename] <command> | MORE Option B <Enter> T Spacebar Q

Description Display the last full page shown Display just one more line Display starting at the top of the file Display the next full page of text Quit MORE

MP MP allows modifying the PATH environment variable. It is used in the 2320's AUTOEXEC.BAT file. Syntax MP [-{p|a} newpathnode | -r oldpathnode [newpathnode] ]* MP modifies the working path for MS DOS environments by prepending (“-p”) or appending (“a”) a new path node to an existing path environment or by replacing (“-r”) an old path node (“oldpathnode”) with a new path node (“newpathnode”) within the existing path. For the -r switch, the field specifying “newpathnode” can be empty, thus deleting “oldpathnode” from the search path entirely. Since switches are processed in the order entered, a -r followed by a -p or -a can be used to move a node from the interior of a PATH list to the beginning or end of that list. The path node names are case sensitive! This program operates on the parent process environment, thus eliminating the requirement to use a batch file or enter a complete new path specification to make minor modifications to the working path.

PACK PACK is a small and fast LZW file compressor and decompressor. It reduces the size of most files by 50% or more and is useful for greatly reducing file transfer times over the serial port. The larger the file the better the compression. Syntax >PACK infile outfile [/p] [/u] [/q] Options /p = pack infile to outfile /u = unpack infile to outfile /q = quiet mode (no sign-on banner)

153750-0001

February 1996

2320 Operator’s Guide

Page 38

28

Commands and Functions

PRINT The PRINT command prints a list of files. Syntax PRINT [/d:] [filename] [/options] PRINT allows you to enter between 1 and 32 files for spooling to the printer. The files are output to the device in a spooled manner while the user performs other operations. If PRINT is entered without any parameters it displays all the files that are in the queue. Options /B allows the user to set the buffer size. The default buffer size is 512 bytes. A larger buffer size causes PRINT to operate faster. The maximum buffer size is 32Kb and the minimum size is 256 bytes. This option is only allowed the first time PRINT is run. /C cancels the file names listed after the /C command. /F allows the user to set the maximum number of files to be queued up at one time. The default number of files is 10. The minimum is 2 and the maximum is 32. Support for more files is often useful when using wild cards in file names. This option is only allowed the first time PRINT is run. /P causes all files listed after this option to be submitted for printing. This is the default for filenames encountered on the PRINT command line. /T cancels all the files from the print queue (list). Think of this as a terminator. The /H option displays the help screen.

PSRAM The PSRAM device driver provides support for accessing Drive C in upper memory. Syntax device = [d:] [path] PSRAM.SYS "Device = PSRAM.SYS" installs the PSRAM device driver. Once this driver is installed, calls for the PSRAM are legal. The PSRAM driver will fail to load if the machine does not have enough memory for PSRAM or if the machine does not provide support for it.

2320 Operator’s Guide

February 1996

153750-0001

Page 39

Commands and Functions

29

PUTENV PUTENV is for use with the external XSET command. It accepts a prompt string and the name of an environment variable, then waits for user input. Once the user presses <Enter>, it builds the argument list for the XSET command and must have its output piped to XSET. Syntax PUTENV [stdout] [stdin] Arguments to the PUTENV command or any DOS command that accepts strings must be enclosed in double quotes if it contains the space character. The above command prints the prompt “This prompt has spaces.” (minus the quotes), waits for input, then sends the string “So does this ENV variable Name.=[whatever was typed]” (again without quotes) to the XSET command, which places it in the master environment. You can embed a tilde character ('~') in the prompt string to represent <CRLF>, which enables you to create multi-line prompts.

RDS RDS is a utility that enables you to remove a directory. This utility is closely related to two other utilities: CDS and RDS. These three utilities allow you to change, make, or remove ‘secret’ directories. They work like their ‘non-secret’ DOS counterparts: CD, MD, and RD except that they take no DOS arguments. DOS allows you to create files with hidden attributes, but not directories. Syntax RDS

RECALL RECALL is a program equivalent of DOSKEY. RECALL is automatically installed during startup of the 2320. RECALL takes two optional arguments on the command line: • the number of bytes (256 - 32767) to use for history storage for COMMAND

• the number of bytes (256 - 32767) to use for other programs

If only one argument is given, it is taken as the number of bytes for COMMAND. If an argument is missing, the minimum, 256, is used. If a number less than 256 is given, it is treated as 256. If a number larger than 32767 is given, it is treated as 32767. The history buffer is circular; i.e., when space is exhausted, the oldest commands are deleted. The sum of the two arguments should not be greater than about 55000 (usually a much smaller sum is appropriate). A value of 1000-2000 is generally appropriate for the first argument. A much smaller value is usually adequate for the second argument. The default of 256 bytes is generally adequate. Note:

Use the CLS command frequently to move the prompt to row 1, column 1 on the 2320 LCD screen. When using WRAPON, pressing the up arrow retrieves the entire string. When using WRAPOFF, pressing the up arrow retrieves 20 characters.

Entering commands with RECALL is similar to doing so in the standard command processor but there are numerous additional editing options: Key

153750-0001

Description

February 1996

2320 Operator’s Guide

Page 40

30

Commands and Functions

Key <Up Arrow>

<Down Arrow>

<Left Arrow> <Right Arrow> <Home> <Del> <Backspace> <Ctrl> <T> <Ctrl> <W>

Description Recall previous command line Repeated application gets successively earlier command arrowlines. If there is no previous command line (or it has not been kept in the history), the bell will sound. The <Ctrl> <U>, <Ctrl> <X>, and <Esc> editing commands reset the internal pointer to the end so the next up arrow gets the last command line executed again. Recall the next command (assuming a previous command has been recalled with up arrow and is being edited); if there is no next command, sound bell Go back one character Go forward one character Go to start of line Delete current character Delete previous character Delete to beginning of next word Delete back to beginning of word

REMAP REMAP is used to compile a terminate-and-stay-resident (TSR) program that hooks into the back end of the keyboard interrupt and remaps the scan codes received from the PIC processor according to the translation tables in TABLE. The following two tables are provided: normkeytbl:

for all ‘normal’ key presses extkeytbl:

for keys pressed while the ‘ƒ’ key is held down.

In order to translate a key, find its scan code in the correct table, change the value to the desired scan code, and reassemble. You can refer to any DOS or BIOS reference for a list of scan codes. SCANCODE lists the default 2320 scan codes. When indexing into the tables, only the significant byte is used; i.e., scan code 00 40 and scan code 40 00 both refer to the 40th (hex) entry in the associated table.

REPEAT REPEAT toggles the keyboard repeat on or off. Syntax REPEAT [ON|OFF]

SCANCODE SCANCODE.DOC is a text file that lists the default 2320 keyboard scan codes. Refer to “REMAP” in this section for additional information.

2320 Operator’s Guide

February 1996

153750-0001

Page 41

Commands and Functions

31

SET The SET command sets and modifies environment variables. Syntax SET [variable = [string]] A current list of environment variables is displayed if only SET is entered. Using SET variable = with no argument string clears the current environment string for the named variable.

SLEEP SLEEP sets the amount of idle time the 2320 waits before going into sleep mode. The BIOS default is five minutes. You can set it anywhere from one second to one hour. Setting it to zero disables sleep mode entirely. Syntax SLEEP [# of seconds]

SORT The SORT filter sorts a text file and displays the output to the standard device. Syntax SORT [/options] [filename] Options th

/+n causes SORT to begin its alphabetical sorting starting at the n position in the string. /r causes SORT to sort in reverse alphabetical order.

STUFF STUFF stuffs up to 15 characters into the keyboard buffer. It is useful for running programs that take keyboard input when you know in advance what input to give. When used in a batch file, it can reduce the amount of typing necessary to run a program while retaining the program’s input flexibility. Note:

STUFF does not enter the space separating the program name from the parameters. To use a carriage return as part of the string, enter a tilde (~) which will be interpreted as a carriage return (0dh).

Note:

The 2320 has a non-buffered keyboard.

TABLE This file is a table of key assignments that is used with the REMAP.ASM file. Refer to "REMAP.ASM" in this section for more information.

153750-0001

February 1996

2320 Operator’s Guide

Page 42

32

Commands and Functions

TL TL is a simple demo program that allows a 2320, with a touch module mounted on the left, to read a Touch Memory button and report its serial number to the screen. Press <ESC> to exit the program. Syntax TL

TR TR is a simple demo program that allows a 2320, with a touch module mounted on the right, to read a Touch Memory button and report its serial number to the screen. Press <ESC> to exit the program. Syntax TR

TREE The TREE command displays each subdirectory and the files within them for a specified drive. Syntax TREE [d:] [/options] The [d:] specifies the drive that TREE displays the subdirectories from; this argument must be specified. Option The /F switch causes TREE to display the files in each subdirectory.

WRAPOFF WRAPOFF turns screen wrap off. The screen would normally wrap at 21 characters. Use the arrow keys to view the end of lines. Syntax WRAPOFF

WRAPON WRAPON turns screen wrap on. The screen wraps text to the next line at 21 characters. Syntax WRAPON

2320 Operator’s Guide

February 1996

153750-0001

Page 43

Commands and Functions

33

XCOPY The XCOPY command copies multiple files and subdirectories from one directory to another. Syntax XCOPY [source] [target] [/options] The source and the target parameters are complete drive path and file specification descriptions. XCOPY assumes the default path if you do not specify a path. Wildcard “*.*” is assumed if a file name is not specified. The ATTRIB command may be used to modify the archive bit for the various XCOPY options that check the archive. Options /A copies only source files that have the archive bit set in them; the archive is not reset. /D<mm-dd-yy> copies only those files with a date later than the date specified in the /D option. /E creates subdirectories on the target even if they are empty. /M copies only those source files that have the archive bit set. Once the source file is copied, the archive bit is reset. /P prompts before each file is copied. /S copies files in the subdirectories of the source directory. /V verifies each write to the disk. /W waits before starting to copy files.

XFER XFER performs file transfer functions and supports COM1 and COM2. COM1 is on the right side of the 2320 when you are looking at the LCD screen. COM2 is on the left side. Syntax XFER -B<num> -C<num> -P<char> -F<string> [-R|-S] Parameter -B<num>

Description Baud rate. Values: 1200, 2400, 4800, 9600, 19200, 38400, 57600 115200. Default: 9600 -C<num> COM Port. Values: 1, 2. Default: 1 -P<char> Protocol. Values: X,K,Y,G. Default: X -F<string> Filename. Value: maximum of 11 characters [-R|-S] Receive (-R) or send (-S) a file The default values are used if you do not indicate a value.

153750-0001

February 1996

2320 Operator’s Guide

Page 44

34

Commands and Functions

XSET The XSET command can be used in either of two forms. XSET (AUTOEXEC.BAT File) XSET is similar to the SET command, except it modifies the master environment instead of the current copy. This means that XSET works while shelled out from other programs, where the builtin SET command fails. It may be used with GETFILE. XSET (DOS Command) XSET, all by itself, accepts standard input and interprets it line-by-line as if you had typed each line on the XSET command line.

2320 Operator’s Guide

February 1996

153750-0001