The text of a manual · part 23 of 23
DuraTrax/LaserLite, LaserLite Pro/LaserLite Mx Developer's Reference, pages 221 to 229
Pages 221 to 229 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 221
Memory Card Errors Error Codes for LaserLite Mx Only Global Errors Returned by Operating System via CARDCMD: These errors prevent sending a statement to the memory card software system (LaserLite Mx only). Error -1
Description Communications with the memory card timed out.
Possible Cause The memory card software system is busy processing the last command set it received or it didn’t have enough time to finish processing the current command. In either case, try using the CARDCMD statement with the [!] option on commands that require more time than 800ms to process.
-2
A memory card module was not detected at startup.
CARDCMD reads the system startup flags before attempting to communicate with the memory card software system.
-3
A memory card was not detected at startup.
If a memory card is inserted, the system should be restarted to properly set the flags that a card is present.
-4
The memory card does not have a recognized format.
Unformatted card.
-11
The memory card processor is asleep and cannot receive a command.
Removing the memory card without first turning off the LaserLite Mx can cause this error.
Appendix C Error Codes
213
Page 222
Errors Returned by Memory Card Software System via CARDSTATUS (LaserLite Mx only): Error -1 -2
-3
-5
-6 -7
-8
-10 -11 -15
214
Description Communications with the memory card timed out. A memory card module was not detected at startup.
A memory card was not detected in the module at startup. The CRC of the return from the memory card system does not match the one calculated by CARDSTATUS. The return from the memory card is unrecognized. The designated string is too short for return from the memory card. No CARDCMD was issued since the last call to CARDSTATUS. Card is still busy when CARDSTATUS called. Card is asleep when CARDSTATUS called. The return from the memory card has exceeded the 2K buffer.
Appendix C Error Codes
Note The memory card software system does not respond. As with the CARDCMD statement, CARDSTATUS first checks the system flags before attempting to communicate with the memory card module. Errors -2 and -3 will be returned if the system flags indicate.
System communications problem between the main CPU and the memory card module. Same as above. Dimension the string memory variable that receives data from CARDSTATUS to a larger value. This indicates a coding error. The system expects CARDCMD and CARDSTATUS to be called in pairs. The memory card software system is still processing an instruction. Removing the memory card during operations can cause this error. This should occur only with 1K data records containing ‘&’ as every 2nd character.
Page 223
Index A A (add record to memory card file) command, 107, 109 add new record to memory card file, 107, 109 add record to memory card file (A) command, 107, 109 alkaline batteries, 190, 191 ampersand (&) hexadecimal notation, 110 Application Builder Describe.src, 89–101 Source Template, 75–102 application files, 23 application program, 7
B backspace, 140 Base Station, 197 batteries, 191, 194 alkaline, 190, 191 lithium back-up, 190, 195 nickel-cadmium, 190, 191 boot file (B), 104, 122, 136 button touch circuit, 194
C C (list card info) command, 107, 109– 13 C (set or change unit ID) commands file command, 132 cable, host modem, 201, 202 cable, remote modem, 203 calculate CRC (Q) command, 108, 124 calculate CRC of file, 108, 124 card ID, 121, 122 carriage return, 140 Central Processing Unit, 193 change ID, 14, 29–36 DOS, 32–34
Macintosh, 35–36 Windows, 29–31 clear data (Z) commands file command, 132 Codabar, 180 Code 128, 180 Code 3 of 9, 178, 180 code generation directive, 80–88 commands file, 7, 12, 14, 24–39, 138 comment indicator for commands file, 132 communications program, 3–39, 130 commands file, 7, 12, 14, 24–39, 138 commands, 26–39, 132–35 C (set or change unit ID), 132 D (delete file from memory card), 132, 134 F (file management report), 132, 135 G (run application), 132 I (Unlock), 132 K (remove deleted files from memory card), 132, 134 L (lock), 132 M (message), 132 R (send file), 132, 133 S (get file), 132, 134 T (set time), 132 Z (clear data), 132 comment indicator, 132 default commands, 24 examples, 137 looping commands, 28–39 Unlock (I) command, 24, 26, 28, 38, 39, 40, 41, 42, 138 IDs.txt file, 39, 40, 41, 42 loop_id argument, 39 DOS, 4, 10 Download.exe, 10 parameters, 13–19 arguments, 15–19 Macintosh, 4, 10, 23 Videx Download, 23 Vxcom, 11–20 Index
215
Page 224
parameters, 13–19 arguments, 15–19 Windows, 4, 10, 11–20 convert CRF file, 182–88 convert TXT cross-reference file to CRF file, 182–88 CPU, 193, 194 CPU Boot ROM, 193 CPU Internal RAM, 193 create CRF file, 182 create cross-reference file, 149, 182 CRF convert program DOS, 184 Vxcrf.exe, 184 Vxcrfw.exe, 183 Windows, 183 CRF file, 13, 181–88 convert, 182–88 create, 182 from existing database, 182–88 from text file, 182–88 troubleshoot, 188 cross-reference (CRF) file, 181–88 cross-reference file, 13, 23, 131, 136, 137, 147, 149 cross-reference file (*.CRF), 8 cross-reference file (text), 8
D D (delete file from memory card) commands file command, 132, 134 D (delete memory card file) command, 107, 114 data, 173, 178 data file, 9, 27, 136, 138, 147, 148, 170–80 default, 9, 170 Data.txt, 9 Header, 172 origin of data, 173 scan.s, 171 Tailer, 174 default application, 62, 66–69 default.s, 66–69 sounds, 69 variables, 89–94 default commands, 24 216
Index default data file, 170 delete file from memory card (D) commands file command, 132, 134 delete memory card file, 107, 114, 132, 134 delete memory card file (D) command, 107, 114 delete record from memory card file, 107, 115, 116 delete record from memory card file (H) command, 107, 115, 116 Describe.src, 89–101 sounds, 99 subroutines, 95–98 variables, 89–94 determine card ID, 108, 121, 122 display, 27, 132 DMS (Data Management System), 122, 126 DOS communications program, 10 DOS CRF convert program, 184 DOS quiet mode, 16 Download.exe, 4, 10, 32–34, 130, 133, 187 commands file, 24–39 parameters, 13–19 arguments, 15–19 quiet mode, 16 DuraTrax change ID, 29–36 DOS, 32–34 Macintosh, 35–36
E EAN, 180 errors, 156 CARDCMD errors, 159–63 CARDSTATUS errors, 164–68 operating system errors, 157–58 Export Binary command, 185 Export Source Only command, 185
F F (file management report) commands file command, 132, 135
Page 225
Interleaved 2 of 5, 180 IR communications, 195 IRAM, 193 IRDA, 193
F (search for record with key field) command, 107, 115, 116 file management report, 107, 109–13, 132, 135 file types, 104, 136 flash memory, 15, 53, 63 format card (N) command, 108, 121, 122 format memory card, 108, 121, 206, 208 previously formatted, 208 unformatted, 206
K &1092 (remove deleted files) command, 107, 117 K (remove deleted files) commands file command, 132, 134 keypad, 178, 180
G
L
G (run application) commands file command, 132 get file, 132, 134 get file (S) commands file command, 132, 134
L (lock) commands file command, 132 laser scanner, 190 LaserLite change ID, 29–36 DOS, 32–34 Macintosh, 35–36 LaserLite Mx, 53 change ID, 29–36 DOS, 32–34 Windows, 29–31 flash memory, 15, 53, 63 LaserLite Mx memory card command set, 107–8 A (add record to memory card file) command, 107, 109 C (list card info) command, 107, 109–13 D (delete memory card file) command, 107, 114 error codes, 128 F (search for record with key field) command, 107, 115, 116 H (delete record from memory card file) command, 107, 116 K &1092 (remove deleted files) command, 107, 117 M (move pointer) command, 107, 118–20 N (format card) command, 108, 121, 122 O (open memory card file) command, 108, 122
H H (delete record from memory card file) command, 107, 115, 116 hash table, 141 Header, 171, 172, 177 hexadecimal, 110 host modem cable, 201, 202
I I (Unlock) commands file command, 131, 132, 138 ID, 60, 63 ID, 7, 23, 24, 26, 38, 39, 61, 62, 172 ID, change, 14 identification file (D), 104, 122, 136 IDs.txt file, 39, 40, 41, 42 image file, 9, 14, 15, 16, 18, 53, 210 index number, 176 indexed file (I/H), 104, 115, 122, 125, 136, 142, 149 indexing data, 176 Infrared Communications, 193 initialize memory card, 108, 121 Input Handler ID number, 77, 176, 178
K
Index
217
Page 226
Q (calculate CRC) command, 108, 124 S (search for record) command, 108, 125 status codes, 128 V (version number) command, 108, 126 Y (repeat) command, 108, 127 Z (sleep) command, 108, 127 LaserLite Pro, 53 change ID, 29–36 DOS, 32–34 Macintosh, 35–36 Windows, 29–31 flash memory, 15, 53, 63 LCD, 193 Liquid Crystal Display, 193 list card info (C) command, 107, 109– 13 list file management report, 107, 109– 13, 135 list status information, 107, 109–13 lithium back-up battery, 190, 195 lock (L) commands file command, 132 loop_id, 39 looping commands, 28–39
M M (message) commands file command, 132 M (move pointer) command, 107, 118– 20, 125 Macintosh communications program, 23 main board, 194 memory card add new record to file, 107, 109 boot file (B), 104, 122, 136 calculate CRC, 124 calculate CRC of file, 108 capabilities, 104, 136 delete file, 107, 114, 132, 134 delete record from file, 107, 115, 116 determine card ID, 108, 121, 122 file management report, 107, 109– 13, 132, 135 218
Index file types, 104, 136 format card, 108, 121, 206, 208 identification file (D), 104, 122, 136 indexed file, 149 indexed file (I/H), 104, 115, 122, 125, 136 initialize card, 108 open file, 108, 122 precautions, 143 read program version, 108, 126 remove deleted files, 107, 117, 132, 134 repeat last status byte or data, 108 sequential file (S), 104, 122, 136 status information, 107, 109–13 memory dumping, 51 memory map, 48–50 message (M) commands file command, 132 modem cable, 201, 202, 203, 204 modem communications, 199 modem transfer set up, 200 modulus, 122, 141, 142 monitor mode, 44 monitor mode, reset, 44 monitor program, 7, 191 move pointer, 118–20 move pointer (M) command, 107, 118– 20, 125 move pointer in memory card file, 107, 118–20, 125 multiple data collectors, 7 MXFORMAT utility, 9
N N (format card) command, 108, 121, 122 nickel-cadmium batteries, 190, 191
O O (open memory card file) command, 108, 122 open memory card file, 108, 122 open memory card file (O) command, 108, 122
Page 227
operating system P (pass to memory card) command, 132 operating system software, 7, 14, 23, 59–65, 131, 132 command line, 61 commands, 62–65 Battery (B) command, 62 Clear Data (Z) command, 65 Default Application (D) command, 62 Go (G) command, 63 Load from Flash (L) command, 63 Lock (L) command, 64 Message (M) command, 64 Pass to Memory Card (P) command, 64, 105–29 Quit Operating System (Q) command, 64 Receive (R) command, 64 Reset Memory Card (X) command, 65 Send (S) command, 65 Set ID (C) command, 62 Time (T) command, 65 Unlock (I) command, 63 origin of data, 173, 178, 180 OS, 7, 23, 59–65, 131
P Pass to Memory Card (P) command, 105–29, 132 A (add record to memory card file) command, 107, 109 C (list card info) command, 107, 109–13 D (delete memory card file) command, 107, 114 F (search for record with keyfield) command, 107, 115, 116 H (delete record from memory card file) command, 107, 115, 116 K &1092 (remove deleted files) command, 107, 117 M (move pointer) command, 107, 118–20, 125
N (format card) command, 108, 121, 122 O (open memory card file) command, 108, 122 Q (calculate CRC) command, 108, 124 S (search for record) command, 108, 125 V (version number) command, 108, 126 Y (repeat) command, 108, 127 Z (sleep) command, 108, 127 perform search in memory card file, 108, 125 plug-ins, 100–101 program version, 108, 126
Q Q (calculate CRC) command, 108, 124 quiet mode, DOS, 16
R R (send file) commands file command, 132, 133 raw data file, 171 data, 173 Header, 172 origin of data, 173 Tailer, 174 TimeWand II-style, 175 read head, 196 read program version, 108, 126 Real-time clock (RTC), 190, 193, 194 record length, maximum, 149 remote modem cable, 203 remove deleted files (K &1092) command, 107, 117 remove deleted files (K) commands file command, 132, 134 remove deleted files from memory card, 107, 117, 134 repeat (Y) command, 108, 127 repeat last byte or data, 127 repeat last status byte or data, 108 reset to monitor mode, 44
Index
219
Page 228
retrieve file, 132, 134 ROM, 193 run application (G) commands file command, 132
S S (get file) commands file command, 132, 134 S (search for record) command, 108, 125 scan board, 196 DuraTrax, 196 LaserLite, 196 LaserLite Mx, 196 LaserLite Pro, 196 scan.s data file, 171 scanpad, 178, 180 search for record (S) command, 108, 125 search for record in memory card file, 115 search for record with key field (F) command, 107, 115, 116 search for record with key field in memory card file, 107 send file (R) commands file command, 132, 133 sequential file (S), 104, 122, 136 serial port, 7, 16, 17, 23, 44, 45, 60, 61, 187, 197, 210 set or change unit ID (C) commands file command, 132 set time (T) commands file command, 132 sleep (Z) command, 108, 127 sleep mode, 108, 127 Source Template, 75–102 code generation directives, 80–88 status code, 128 status information, 107, 109–13 STATUS.TXT file, 16, 17 error codes, 17
T T (set time) commands file command, 132 220
Index
Tailer, 171, 174, 179 Timewand.src, 101, 175–80 Theory of Operation, 190–98 Touch Memory button, 180 transfer data, 37 multiple data collectors, 37 transfer data file, 23
U unit ID, 132 Unlock (I) command, 24, 26, 28, 38, 39, 41, 42, 138 IDs.txt file, 39, 40, 41, 42 loop_id argument, 39, 42 Unlock (I) commands file command, 131, 132 UPC, 178, 180
V V (version number) command, 108, 126 version number (V) command, 108, 126 Videx Download, 35–36 Videx Download communications program, 4, 10, 23 Vxbasic.exe, 187 Vxcom, 11–20, 29–31 Vxcom communications program, 4, 10, 130, 133 commands file, 24–39 parameters, 13–19 arguments, 15–19 Vxcrf.exe, 182, 183, 184–88 Vxcrfw.exe, 182, 183
W wake-up circuit, 194 Windows communications program, 11–20 Windows CRF convert program, 183
Page 229
X XRAM, 193
Y
Z Z (clear data) commands file command, 132 Z (sleep) command, 108, 127
Y (repeat) command, 108, 127
Index
221