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 14 of 23

DuraTrax/LaserLite, LaserLite Pro/LaserLite Mx Developer's Reference, pages 131 to 140

Pages 131 to 140 of 229

The original document is the PDF (797 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 Videx DuraTrax, Videx LaserLite, Videx LaserLite Mx and Videx LaserLite Pro

Page 131

Example 1: Open an indexed file with table size 2203 and filename test1: P o 2203 I "test1" or P o &089B I "test1" or P o 03 Returns: &03

File opened successfully; 03 hexadecimal is file handle.

39

Memory full.

Example 2: Open the ID file with the filename Videx: P o D "Videx" Returns: &01

ID file created successfully, with Videx as the card ID and assigned to file handle 01.

"092612456" An ID file could not be created because an ID file already exists with 092612456 as the real card ID. Successful return values: File handle number or card ID name. Possible error codes that can be returned from this command: 01, 03, 04, 07, 10, 31, 33, 39, 40, 51, 52, 63 (See pages 128–129 for a description of the error codes.)

Chapter 5 LaserLite Mx Memory Card Data Management

123

Page 132

Q {file type} {filename} Calculates the CRC of a file and send it back to the host. This command is useful when sending a file to the memory card from the computer. Vxcom automatically calls this command when sending files to the memory card. Example: Check the CRC of a boot file: P q B "CPU" Returns: &B001

The 16-bit CRC of the boot file (boot files on the LaserLite Mx system must always return a CRC of &B001).

Successful return values: 16 bit CRC of the file. Possible error codes that can be returned from this command: 01, 03, 04, 10, 31, 32, 51, 52, 63 (See pages 128–129 for a description of the error codes.)

124

Chapter 5 LaserLite Mx Memory Card Data Management

Page 133

S {field number/bytes} {F/R} {string} Performs a search within the memory card’s open file. For an indexed file (type I or H), this command searches for a record within the given number of records with the given string. The field number limits the search at the particular field. A zero field number forces the program to search through the entire record for the given string. The key field is the number one field. The field number is the fourth byte of the first parameter and the number of records that were searched is given as the three least significant bytes of the first parameter. For a binary file, this command searches through the number of bytes trying to match the given string. Without any parameters, it reads the last record or 256 bytes found. This command uses the same pointer as the M command. Since this command does not use indexing, there may be some noticeable delay when using this command to search through large amounts of data. Example: Search the open indexed file test1 for a record in field two with the pattern “abcdefg” within the next 129838 records from the current move pointer: P s &0201FB2E F "record" Returns: "abcdefghijklmnop"

Record found.

Successful return values: A record or 256 bytes of binary data containing the search string. Possible error codes that can be returned from this command: 01, 03, 04, 10, 23, 35, 36, 37, 39, 40, 63, 65 (See pages 128–129 for a description of the error codes.)

Chapter 5 LaserLite Mx Memory Card Data Management

125

Page 134

V Reads the memory card’s program version. The version is sent out in ASCII format. The version number for the DMS is: VTDMSx.xx The version number of the firmware is: VTMCFx.xx Example: Read the DMS version: P v Returns: "VTDMS1.02"

The DMS version.

Successful return values: Version number of the DMS or firmware. Possible error codes that can be returned from this command: 03, 04, 10 (See pages 128–129 for a description of the error codes.)

126

Chapter 5 LaserLite Mx Memory Card Data Management

Page 135

Y Repeats the data sent by the memory card processor. Example: If the last command was the V example described above: P y Returns: The DMS version.

VTDMS1.02 Successful return values: Last data.

Possible error codes that can be returned from this command: 03, 04, 10 (See pages 128–129 for a description of the error codes.)

Z Puts the data collector in sleep mode. Example: Put the data collector to sleep: P z Returns: 00

Data collector put to sleep.

Successful return values: 00 Possible error codes that can be returned from this command: 03, 04, 10 (See pages 128–129 for a description of the error codes.)

Chapter 5 LaserLite Mx Memory Card Data Management

127

Page 136

The following table lists the status and error codes: Code (Mem Card) 00 01

Code (Comm SW) 21000 21001

02 03 04 05 06 07 08 09 10 22 23 31 32 33 34

21002 21003 21004 21005 21006 21007 21008 21009 21010 21022 21023 21031 21032 21033 21034

35 36 37 38 39 40 41 42 43

21035 21036 21037 21038 21039 21040 21041 21042 21043

128

Chapter 5 LaserLite Mx Memory Card Data Management

Description

Operation successful. Unrecognized memory card. This version recognizes Toshiba’s SSFDC 2, 4, and 8 MB memory cards. Unrecognized memory card. Syntax error. CRC of command did not match. Unknown command. Missing parameters for this command. Incorrect parameters for this command. Binary file. Incorrect file type. Too much data in the command. No ID file. No data. No such file exists. No file opened. Too many files (>60 files). The page has already been written to four times. (Note: Toshiba only allows you to write to a page four times.) No such record exists. End of file. Beginning of file. Timeout occurred. Memory full. Write/protect encountered. Record too large (>1024 bytes). Field too large (>255 bytes). Some of the physical functions are locked to avoid data corruption. Try: N &0129 to unlock.

Page 137

Code (Mem Card) 51 52 53 54

Code (Comm SW) 21051 21052 21053 21054

55

21055

61 62 63 64, 65 66 67

21061 21062 21063 21064, 21065 21066 21067

68

21068

Description

File management error (control data was changed). Sequential file corrupted (by accidental power failure). Data corrupted. CRC of boot file did not match (program data may be corrupted). The boot file program is too large (must be less than 24 KB). Memory card program failed (card may be worn out). Block erase failed (card may be worn out). Unknown memory card format. First block of memory is bad (broken card). Too many bad blocks (card may be damaged). Most of the reserved control blocks are bad (card worn out). The memory card has been erased more than 32,768 times (each K &1092 or N &1092 counts as one erasing).

Chapter 5 LaserLite Mx Memory Card Data Management

129

Page 138

Transferring Files Between the Memory Card and the Computer To transfer files to and from the memory card, you must use either the Vxcom (Windows 95/98/NT) or Download (DOS) communications program’s commands file. Vxcom and Download are discussed in Chapter 1. The syntax for the Vxcom command line is: Vxcomxxx [app.s] [REF.CRF] [sys.os] [cmd.txt] {arguments} or Vxcomxxx [image.img] [cmd.txt] {arguments} The syntax for the Download.exe command line is: DOWNLOAD [app.s] [REF.CRF] [sys.os] [cmd.txt] {arguments} or DOWNLOAD [image.img] [cmd.txt] {arguments} The [cmd.txt] parameter represents the commands file.

130

Chapter 5 LaserLite Mx Memory Card Data Management

Page 139

Commands File A commands file is an ASCII text file that ends with a .TXT, .VDX, or no extension. The communications program attempts to open any text document as a commands file. You can create a commands file with a text editor or generate it from a custom application program. If the communications program encounters more than one commands file, it only opens and attempts to execute from the last one listed on the command line. The commands file is a list of instructions to the communications program telling it what actions to perform. The communications program attempts to execute the commands sequentially from the top to the bottom of the file. If it encounters an error, it automatically stops executing and notifies the user of the error. A commands file typically includes commands to: •= send and retrieve files from the memory card, •= send cross-reference files (.TXT files) to the memory card, •= receive the data file, •= change the ID on the LaserLite Mx, •= set the clock to the computer’s time, •= resend the operating system software (.OS file), and so on. It is important to list the commands in an order that matches an expected flow of operation for the LaserLite Mx. For example, the LaserLite Mx must be unlocked before it can accept any of the other commands in the list, so each commands file list will typically begin with an I (Unlock) command. Also, important data should be transferred from the LaserLite Mx prior to loading new operating system, application, or cross-reference files.

Chapter 5 LaserLite Mx Memory Card Data Management

131

Page 140

Commands File Commands The following table summarizes the commands file’s commands. The commands indicated by an asterisk (*) have been added or enhanced for use with LaserLite Mx and memory cards; additional information on these commands can be found on the pages indicated. Information on the other commands is in Chapter 1 of this manual. Command

Description

' C <id>

Comment indicator. Set or change the unit’s ID to the given ID. If no ID is given, the command fails. Delete file from memory card (page 134). Display memory card’s file management report (page 135). Run the current application using the operating system Go command. Send an Unlock command to the LaserLite Mx using the given ID. The command is sent every 5 seconds for 35 seconds. Remove deleted files from memory card (page 134). Send a Lock command and put the LaserLite Mx to sleep. When the unit is awakened with a keypress, it immediately runs the current application. Set display line 1 to the given message. Set display line 2 to the given message. Send file to LaserLite Mx (page 133). Get file from LaserLite Mx (page 134). Set the time on the LaserLite Mx to the computer’s time (synchronize the clocks). Clear the data in the data collector.

*D *F

<file type> <filename> [<output filename>]

G I <id>

*K

L

M1 <message> M2 <message> *R [<# of bins>] <file type> <filename> *S [<folder path>] <file type> <filename> T Z

Note: A space is required between the command and the arguments. The communications program interprets the commands in the commands file in order. It issues the appropriate series of P commands (see pages 105–129 for information on the P command) to the operating system, which passes commands directly to the memory card module processor. The communications program uses the CRC checked commands and automatically adds the CRC to each command string. 132

Chapter 5 LaserLite Mx Memory Card Data Management