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 7 of 37

TCL Terminal Control Language Programmer's Manual, pages 61 to 70

Pages 61 to 70 of 362

The original document is the PDF (13 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 61 read from a scan by OCR; it may hold reading errors

TCLOAD

4. Programming Tools

VeriFone provides and supports a number of programming tools that simplify and speed up the application development process. These tools include an actual terminal (for testing the application), the PC-terminal download cable, and TCLOAD, the terminal control language (TCL) download program. Another tool available for your terminal database management is ZONTALK 2000, the VeriFone download program. This section will identify and explain these programming tools.

Figure 4-1. Methods for Downloading Applications

TCLOAD is an assembler and download program that converts source code, written using TCL, to a format suitable for downloading into the terminal. After compiling the source code, TCLOAD can be directed to:

* download the terminal directly from the development PC,

* create a .DXL/.DTZ file, which VLOAD will use to direct download the terminal,

Page 62 read from a scan by OCR; it may hold reading errors

TCLOAD Direct Download

Cable Part Numbers

TCLOAD .DXL/.DTZ File

TCLOAD .UDL File

TCL Programmer’s Manual

* create a .UDL file, which ZONTALK 2000 will use to remotely download terminals via dial-up telephone line, or TRANZiT Controller for download via the local area network (LAN) in the case of TRANZ 340.

During the application testing and development phase, the first two options will be the most frequently used. Once an application is developed and terminals are deployed, remote sites can be downloaded with application updates via the last option.

If you find that your version of TCLOAD is not working correctly, contact your VeriFone representative to obtain an updated version. For more information regarding TCLOAD, refer to Appendix E, "TCLOAD Basics.”

When used to perform a direct download to a terminal, TCLOAD prepares a memory image of the application program, then transfers that image to an XL terminal at 2400 baud, or to a TRANZ 330/380 terminal at 19,200 baud. This option requires the terminal to be physically connected to the IBM PC development machine with a direct download cable.

Use one of the following cables when downloading from an IBM PC compatible computer:

* XL, TRANZ 330/340/380 to IBM PC: part number 00446-05 (DB25) * XL, TRANZ 330/340/380 to IBM AT: part number 00446-04 (DB9)

The second option requires ZONTALK 2000 and the TCLOAD .DXL (or .DTZ) output file. A .DXL file is used with the XL; a .DTZ file with the TRANZ 330/380. These two files contain the memory image of the application program that is to be transferred into terminal memory. For this download, use a download cable to directly connect the terminal to a PC. Refer to the cable part numbers listed above.

When using this download method you must copy the .DXL file to your ZONTALK 2000 program disk. TCLOAD will perform the download at 2400 baud for the XL, or at 19,200 baud for the TRANZ 330/380. Refer to the ZONTALK 2000 Reference Manual in the ZONTALK 2000 Programmer's Package, part number P006-107-01, for information on setting up and performing a direct download to a terminal.

The third TCLOAD file option, the .UDL file, generates a text file that can be used by ZONTALK 2000 to perform modem downloads to update terminal and group parameters. When this third option is used, the terminal does not have to be physically close to the development machine as the download is performed over dial-up telephone lines.

The .UDL file may be edited, mark parameters for partial download by placing a 1 or a 0 in front of the memory location number. If a terminal calls in for a partial download, ZONTALK 2000 will only download those memory locations preceded by a "1." Refer to the ZONTALK 2000 Reference Manual for more information on ZONTALK 2000 options.

Page 63 read from a scan by OCR; it may hold reading errors

ZONTALK 2000

4. Programming Tools

ZONTALK 2000 is a database and telecommunication program designed to simplify the process of downloading application data to remote transaction terminals. ZONTALK 2000 runs on an IBM PC or 100% compatible computer, and allows a single operator to create and maintain terminal records (containing application code and parameters) for any type of VeriFone terminal. Upon request from a terminal, ZONTALK 2000 automatically downloads application data to that terminal via dial-up telephone lines.

The ZONTALK 2000 database provides the means to truly customize each terminal. During the application development cycle, you should determine how you want to use ZONTALK 2000 to manage the terminal database. For more information, refer to the ZONTALK 2000 Reference Manual, which explains how the program works and the files required to use it.

Page 64 read from a scan by OCR; it may hold reading errors

TCL Programmer’s Manual

Page 65 read from a scan by OCR; it may hold reading errors

Commands by Functional Group

Buffer Operations (18)

5. TCL Commands

The Terminal Control Language (TCL) includes commands that control the input of data into the terminal, the processing of that data, and the output of data to the remote host, terminal display, or printer. In addition to data processing commands, TCL also includes commands to do operations like arithmetic, program/flow control and diagnostic testing.

This section includes a list of the TCL commands by functional groups, followed by a detailed alphabetical listing of all commands.

See

Command Description Page A Append Data from Memory Location 5-7 B Select the Source and Destination Buffer 5-13 D Delete Characters from Destination Buffer 5-27 G Clear Destination Buffer 5-47 H Search for String in the Source Buffer 5-51 J Append Clock Data to Destination Buffer 5-68 +J Buffer Modification 5-73 O Move Extraction Pointer Within Source Buffer 5-99 Q Append Write Control Character 5-107 R Append Constant Value to Destination Buffer 5-114 +S Get Buffer Size 5-128 T Perform Arithmetic Operations 5-130 © U Copy Buffer to a Memory Location 5-140 +V Append Signon Message to Buffer 5-154 X Append Source Buffer to Destination Buffer 5-160 Y Append Non-Blank Memory Location 5-167 Z Pad Destination Buffer 5-175 *Z Calculate Free Bytes

5-177

Page 66 read from a scan by OCR; it may hold reading errors

Communication Control (16)

Data Capture and Batch Functions (8)

TCL Programmer’s Manual

See Command Description Page +B Calculate Block Character Check (BCC) 5-17 +D DTMF Tone Dial 5-31 +F Enable/Disable Response ACK 5-45 *| Character 1/O Over DIN 8 Port 5-60 +l Character 1/O Over Modem Port 5-63 LAN Send and Receive (TRANZ 340 only) 5-66 +K Carrier Control 5-81 +M Set Modem Parameters 5-93 *p Specify Communications Characters 5-104 *R Select Communication Device, Speed 5-116 +R Get/Set RS-232 Handshake Lines 5-120 *T Specify Communications Timeouts (Dial Terminals) 5-132 Specify Communications Timeouts (Poll Terminals) 5-135 +7 Characters I/O Over DIN 6 Port 5-137 +U Set DIN 6 Communication Parameters 5-145 *V Append Telephone Status Code 5-150 Append LAN Status Code (TRANZ 340 only) 5-152 +X Transmit Data to the Network 5-165 +Y Receive Network Data Within Timeout 5-172 See Command Description Page *A Open New Batch 5-9 *B Select Batch for Read Operations 5-15 *C Copy Destination Buffer to Batch 5-22 *D Delete Batch, Records or Headers 5-29 *E Copy Batch Detail to Destination Buffer 5-37 *F Detect Data Capture Errors 5-43 +G Append Detail Record into Batch 5-49 *S Verify Memory Available 5-126 *Z Calculate Free Bytes 5-177

Page 67 read from a scan by OCR; it may hold reading errors

5. TCL Commands

Data Entry (7) See Command Description Page

E Input From Cardreader or Keypad 5-33

+E Input and Display with Decimal Places 5-39

K Input From Keypad Only 5-76

M Input From Cardreader Only 5-89 *U Bar Code Reader Input 5-142 *X Select Account Number Range 5-162 *y Check Input Devices 5-169

Encryption (2) See Command Description Page

*H Encrypt PIN and Account Number 5-53

+H Wait for Encrypted Block from PIN Pad 5-56 ry

Fraud Control (1) See Command Description Page

Cc Verify Check Digits 5-19

Outputs and See Data Display (6) Command Description Page

F Display Fixed Prompt 5-41

*G Terminal Beep 5-48

*J Justify Display 5-71

N Send Destination Buffer to Printer 5-95 P Display Custom Prompts 5-103 V Display Buffer 5-147

Page 68 read from a scan by OCR; it may hold reading errors

TCL Programmer’s Manual

Process and Flow See Control (12) | Command Description Page +C Buffer Comparison 5-24 +D DTMF Tone Dial to Buffer 5-31 I Comparison Operator 5-58 *K Abort Process, String or Transaction 5-79 L Link Control Strings 5-83 *L Call Subroutine 5-85 +L Lock and Unlock Keypad 5-87 *M Exit Subroutine; Return to Control String 5-91 +P Timeout in Milliseconds 5-106 S Dial or Set Multiple Transaction Function 5-123 WwW Wait Until Print Buffer is Empty 5-156 *W General Wait 5-158 Variable Operations (5) See Command Description Page +A Compare Variable 5-11 *N Set Variable 5-97 *O Perform Arithmetic on Variables 5-101 *Q Set Variable to Contents of a Buffer 5-109 +Q Append Variable to Destination Buffer 5-112

Alphabetical Listing, The following section alphabetically lists each TCL command and its as-of TCL Commands _ sociated parameters. Each command includes a brief description, the functional group the command belongs to, the status of the source and destination buffer with each command, the command format, a description of each command parameter and examples of how the command might be used.

Parameter Coding Legend _ As an aid in the presentation of each TCL command, codes have been developed to represent each parameter. This alphabetic coding has been divided into nine single-digit representations (e.g., the "s" parameter consis-tently represents the number of commands to skip). Each digit represents the same parameter-type throughout the command listing. Subscript numbers (1,2,3...) are used to distinguish between more than one of the same-type | code within a command; so the “E" command, which has two skip commands, is represented as Es1.a.j.s2.i. The legend for the coding is as follows:

Page 69 read from a scan by OCR; it may hold reading errors

5. TCL Commands

Parameter Description a Arbitrary Code b Buffer

Cc Constant (decimal number or string)

i Minimum Value j Maximum Value m Memory Location n Number (counts)

ie) Math Operation s Forward Skip (for backward skip, precede parameter with "-" sign)

t Time

Vv Variable (use "#" (pound) sign before parameter, even if v=0, the default value)

Note: In the following examples, periods are used to designate parameter | separators although commas may also be used for this.

When a memory location is referenced and it applies to the TRANZ 380, it is assumed that the number is preceded by a "0". TRANZ 380 memory locations are four-digits long.

Page 70 read from a scan by OCR; it may hold reading errors

TCL Programmer’s Manual