The text of a manual · part 2 of 10
TCLOAD Reference Manual, pages 11 to 20
Pages 11 to 20 of 96
The original document is the PDF (2.2 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the VeriFone Tranz 330
Page 11
Comments Directive
Data Declaration Directive
2. Getting Started
For example, to direct TCLOAD to include the Root file found in your Source directory, type:
@C:\source\Root.EXT
Note: TCLOAD permits the nesting of include files; the maximum permissible level depends on your system configuration. Please refer to your DOS system manual for details.
VeriFone recommends that for large applications, you create separate TCL files for each function. You can then create an include file containing the OPSYS software version and the path names for each each of the TCL function files. The following example shows an include file which links two TCL files.
%3E2CU300 @C:\BATCH.INC @C:\DATA.INC
TCLOAD allows you to document your application code by including comments after TCL commands. You can write comments anywhere in the TCL file using the semi-colon (;) comments directive. When writing comments, begin them with a semi-colon and terminate the comment with a carriage return and line feed.
The following example shows various uses of the comments directive.
%3E2CU300 ; this is version 3.00 of the OPSYS @C:\Batch.INC ; include the batch settlement file ; A comment directive can also begin on column one.
The data declaration directive, the equal (=) sign, assigns a string of data to a memory location. When using the data declaration directive, write the 3- or 4-digit memory location address beginning in column one, and use the following format: NNN=STRING NNNN=STRING
Where:
NNN = the 3-digit memory location address; NNNN = the 4-digit memory location address ; STRING = the string of data.
Page 12
Command String
Declaration
Directive
Partial Download Directive
TCLOAD Reference Manual
The following example shows a prompt being assigned to Location 123.
123=ENTER DATE
The command string declaration directive, the dollar ($) sign, assigns a TCL control string to a memory location. When using the control string declaration directive, write the 3- or 4-digit memory location address beginning in column one, and use the following format:
NNN$STRING NNNNSSTRING
Where: NNN = 3-digit memory location address;
NNNN = 4-digit memory location address; STRING = the TCL control string
Note: You can enter any number of spaces, comments or TCL commands following the $ directive. To terminate a command string directive, either write another file directive or end the file.
In the following example, a control string is assigned to Memory Locations 131 and 143, and then the file ends.
131$ G ; Clear buffer A50 ; Get first prompt V.2.4 ; Put it up and wait
143$ GA29_; Clear and append buffer
A partial download is a download in which only selected memory locations are downloaded to an XL or TRANZ terminal. This type of download is ideal for updating phone numbers and control strings without downloading the entire program. You can select memory locations for partial download using the ampersand (&) partial download directive.
When marking memory locations for partial download, remember to place the "&" directive in column one and to use the following format:
&NNNSSTRING &NNNNSSTRING
Where: NNN = 3-digit memory location
Page 13
Memory Image Terminal File Format
TRANZ UDL Terminal File Format
2. Getting Started
NNNN = 4-digit memory location STRING = the TCL control string or
&NNN=STRING &NNNN=STRING
Where:
NNN = 3-digit memory location NNNN = 4-digit memory location STRING = the string of data
This partial download directive only affects the UDL file. The following example marks the control string for a partial download stored in Memory Location 131.
&131$ G ; Clear buffer A50 ; Get first prompt V.2.4 ; Put it up and wait
Note: You can also use the ZONTALK “Mark Entry" feature to mark memory locations for partial download. Consult the ZONTALK 2000 Reference Manual for more information on marking memory locations for partial download.
File lines pertaining to full or partial downloads to a memory image terminal (XL, TRANZ 330 or TRANZ 420) look like this:
Xnnndata where X=0 for partial download and X=1 for full download.
The remaining TRANZ family of UDL terminals (TRANZ 380, TRANZ 460, TRANZ 470 and higher) support 2000 memory locations. A UDL file line must be able to accommodate larger memory addresses and looks like this:
X,nnn,data where "nnn" may be a 1-, 2-, 3-, or 4-digit address.
Page 14
TCLOAD Reference Manual
Page 15
3. Executing TCLOAD
Running the TCLOAD Program
Now that you’ve written your TCL files using the TCL commands and the TCLOAD file directives, you’re ready to run the TCLOAD program. At the MS-DOS prompt, type:
TCLOAD filename.ext -option1 -option2 ... Where:
TCLOAD = the program command name fillename.ext = the name of your application program file option = one of the TCLOAD options
TCLOAD options include:
Use alternate database file. This option requires the name of a valid database file to follow the command option.
Use alternate EPROM version. This option requires a valid EPROM ID following the command. It may be used to override the EPROM ID listed in the text file, or it can be used to provide an EPROM ID if one is not provided, as in a device download without a text file, or when the text file does not list the EPROM ID.
Add device driver. This option requires the name of a valid Device Driver file to follow the command option. This command may be used as with a TCL program or ina standalone fashion. When used alone, it must be accompanied by the -V option to provide an EPROM ID. (Not supported by the TRANZ UDL terminal.)
Create memory image file. This command directs TCLOAD to create a .DTZ/.DXL file for direct downloads with VLOAD. This option must be used with a TCL test file in order to create a -DTZ/.DXL file. (Not supported by the TRANZ UDL terminal.)
Create .UDL file for ZONTALK downloads. This option must be used with a TCL text file in order to generate a .UDL file.
Device drivers specified with the -Z option are included in the -UDL file.
Page 16
Memory Image
Options D and Tn
TCLOAD Reference Manual
Mark all .UDL locations for parameter download. This option directs ZONTALK to download all locations during a partial download, in effect, causing a full download.
Direct download to a terminal. This option downloads the terminal with a TCL program or a Device Driver or both. An optional parameter ("n") may follow the command to specify which port to download from. The default is COMM 1 if "n" is not supplied.
Create .RCL file for RAM cartridge downloads. This option must be used with a TCL text file in order to generate a .RCL file.
This option has been eliminated.
Note: Option commands are not case sensitive. Separate each option command with one or more spaces. Options may be combined and are interpreted from left to right. [CTRL] [C] aborts the download process.
To view the TCLOAD options, just type "TCLOAD" without any arguments.
As the TCLOAD program runs, it assembles the TCL files and creates a temporary storage area in the PC’s memory. This PC storage area is called a memory image because it is identical to the application memory area of XL/TRANZ. Two command options control the storage direction of the memory image: "D" and "T".
The "D" option directs TCLOAD to attach a header to the image and store it in a file with the extension "DXL" for the XL or extension "DTZ" for the TRANZ 330/420. Following is an example of the TCLOAD command using the "D" option:
TCLOAD XLAPPL.XL -d
This command causes TCLOAD to store the memory image in a file called XLAPPL.DXL. ZONTALK uses this file to perform a direct download to an XL/TRANZ terminal physically connected to the PC’s serial port.
Note: Option "D" is not supported by the TRANZ UDL terminal.
Page 17
ZONTALK Modem Download Option U
Mark All Option A
3. Executing TCLOAD
The "Tn" option directs TCLOAD to transfer or download the memory image, via COM port n, to the XL/TRANZ terminal. The following example shows the TCLOAD command using the "T2" option for downloading an XL application:
TCLOAD XLAPPL.XL -t2
This command causes TCLOAD to create a memory image of the XLAPPL application. After TCLOAD assembles the TCL files and creates the memory image, it displays the "WAITING FOR UNIT" prompt. Verify the PC is properly connected to the target XL terminal. At the terminal’s keypad, press the [FUNC] key, then the [#] key.
TCLOAD begins downloading the memory image to the target terminal via COM port 2. As the download progresses, TCLOAD displays the status message Sending Block X of N, where X is the current block and N is the total number of blocks to be downloaded. Upon successfully completing the download, TCLOAD displays the Load Successful message.
The "U" option directs TCLOAD to create a ZONTALK compatible file and assign a "UDL" extension to it. ZONTALK uses this UDL file to download XL or TRANZ terminals via modem. The following example shows the TCLOAD command using the "U" option:
TCLOAD XLAPPL.XL -u
The UDL file lists each memory location and its contents in double quotes.
"0131GA50V.2.4"
Notice that Memory Location 131 has a leading zero. The leading zero (0) is a flag indicating the location should not be downloaded during a ZONTALK partial download. Those memory locations marked for partial download (using the "&" partial download directive) will have a "1" preceding the memory location number.
The "A" option can only be used with the "U" option to mark all the locations in the UDL file for partial download. The following example shows the TCLOAD command using both the "U" and "A" options.
TCLOAD XLAPPL.XL -u -a
Page 18
Database File Specification Option B <filename>
Add Device Driver Option Z
Firmware Version ID Option V <vers>
File Format Conversion Option R
TCLOAD Reference Manual
This command marks all the memory locations in the XLAPPL.UDL file for partial download. When a terminal calls in for the XLAPPL application, ZONTALK downloads the entire UDL file.
The "B" option enables you to specify the file name of the firmware description database file if you do not install it in your current directory or in your search path. You must add "-b <filename>" to the TCLOAD command so that it knows where to look for the file on either the hard disk or a floppy disk.
The following example shows the TCLOAD command using the "-b" option:
TCLOAD XLAPPL.XL -b \new\tcl.tbl
This command uses the file \NEW\TCL.TBL to look up the EPROM characteristics.
The "Z" option requires that you add the name of a device driver following the command. Use it as with a TCL program or alone, in which case it must be accompanied by the -v option to provide an eprom ID. The following example shows the TCLOAD command using the "Z" option:
TCLOAD STW0008.TCL -z COM1TI1.DRV -t1 Note: Option "Z" is not supported by the TRANZ UDL terminal.
The "V" option enables you to change the version ID from the command line. Add "-v <vers>" to the TCLOAD command, where <vers> is the version you specify. The following example shows the TCLOAD command using the "-v" option:
TCLOAD XLAPPL.XL -v 3e2au120
This command loads the terminal as if it contained the EPROM version 3E2AU120.
This command creates a file called APPL.RCL which is formatted for loading to a RAM cartridge that will be sent to a terminal in the field for direct RAM load.
TCLOAD APPL.TCL -r
Page 19
3. Executing TCLOAD
Error Handling
TCLOAD error reports now include a 3-digit error code number as well as the description of the error. When you report any problems you are having with TCLOAD, be sure to include both the code number and description.
Error messages consist of four parts:
e = Level of severity e 3-digit number e Description e Location of error
There are four levels of severity included in error messages:
INFORMATIONAL - not pertinent to the correctness of a program
WARNING - there is potentially erroneous code SEVERE - the program is not correct FATAL - TCLOAD could not recover from the error
The text of an error description is usually sufficient to direct you to the nature of the problem and how to correct it. The error description enclosed in double quotes may contain a portion of your program that is part of the error.
The location of the error is given by file name and line number, unless the error does not have to do with your TCL program itself.
Note: If an error description begins with the words "INTERNAL CONFUSION", report the error immediately to VeriFone Customer Support. This message indicates you have triggered an unexpected weakness in TCLOAD, aside from any possible "bug" in your program. Do not attempt to find the source of the problem. Prepare a complete copy of the program that triggered this error message and send it to VeriFone so that the problem can be corrected as soon as possible.
Appendix | contains a numerical listing of error codes along with definitions and an explanation of the procedure to use for correcting the error.
Page 20
Other
XL/TRANZ
Error
Messages
PROGRAMMING ERR
TCLOAD Reference Manual
Besides the TCLOAD error reports already discussed and listed in Appendix G, there are two more commonly known error messages that frequently appear on both XL and TRANZ terminals: PROGRAMING ERR and DC MEMORY ERR.
In the XL/TRANZ terminal, application program integrity is assured by maintaining a running checksum on the area of RAM within the terminal where the application program resides. Every time a terminal memory location is changed, either via the keyboard or under direction of the TCL application running in the terminal, the updated information is stored into RAM, and a checksum on the new program area RAM is calculated and stored into system RAM. Every time the terminal executes a warm boot, which occurs after power up and after each transaction or function, it checks program memory integrity by again calculating the checksum on the program area of memory and comparing it to the stored value of what the checksum should be. If the two checksum values do not match, corruption of the program memory area has occurred and the PROGRAMMING ERR x message is displayed, where "x" is an error code that indicates the type of operation running at the time of the error and when the error occurred, either at the start or end of the operation.
Table 3-1. PROGRAMMING ERR Codes
Power-up 0 Store from TCL 1 2 Dial-up download 3 4 Store from keypad 5 6 Unit-to-unit download 7 8 DC MEMORY __ The terminal assures integrity of the data capture area of RAM
ERROR in the same way it does the program memory area. A separate checksum for DC RAM is maintained and like the program RAM, is confirmed in each warm boot of the terminal. Corruption of data capture RAM is signaled by the DC MEMORY ERROR message. The display of either the PROGRAMMING ERR or DC MEMORY ERROR message indicates that corruption of the terminal’s memory has taken place.