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

TCL Terminal Control Language Programmer's Manual, pages 41 to 50

Pages 41 to 50 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 41 read from a scan by OCR; it may hold reading errors

2. Terminal Basics

Note: With the PNC/TRANZ 340, press the [FUNC] key twice to clear memory locations 001, 019, 020 and 021.

Do assorted FUNCTION ABORTD 03X C.S. RECALL 1 ABORTD, - _> STORE ABORTD Password 7 ABORTD Unit-to-Unit Send 1 ABORT Unit-to-Unit | Receive ABORT Dial-up Download; (LAN Download - ABORT TRANZ 340 only) Reset System ] ABORT Parameters

Figure 2-15. Function Routine

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

Abort Control String

TCL Programmer’s Manual

In many TRANZ terminal applications, it is important that the current operation is not aborted - by the operator pressing the [CLEAR] key or by any other means - until any required processing has first been completed, or at least until steps have been taken to abort the operation properly.

An abort cycle is executed whenever a power-up restart occurs, the [CLEAR] key is pressed at any time, or a TCL instruction *K (Abort) is executed. An abort for any of these reasons will cause execution of the Abort Control String (ACS), if present. When an abort is executed, memory location 979/0979 (Abort Control String) is read and any TCL command in that location is executed. If memory location 979/0979 is empty, the OPSYS will abort to the idle state.

The Abort Control String is especially useful when a transaction may need to be "reversed” once it has progressed beyond a critical point, such as the storage of a transaction capture record, or the printing of a receipt.

If a *K instruction is used with the ACS itself, the OPSYS will re-execute the abort process from the beginning and will, therefore, re-execute the ACS if still present. Pressing [CLEAR] or even power cycling the terminal will not break the abort loop because these actions will also cause an abort, therefore re-executing the same Abort Control String.

To properly abort the ACS back to the idle state, the ACS must clear itself. This can be accomplished by including the following TCL instructions at the start of memory location 979/0979:

Command Description B.5 ; Select an unused buffer G ; Clear it, and U979 ; Clear the ACS Lxxx ; Any other processing required

Because the OPSYS loads control strings into a temporary buffer for processing, a control string which clears itself will still be executed correctly, including any links to subsequent memory locations via the L instruction.

Tip: It may be necessary to change the current contents of the ACS occasionally, depending on the context, within a transaction or function. The following TCL example shows one way of accomplishing this:

B.5 ; Select an unused buffer G ; Clear it R’B.5GU979Lxxx’ ; Append TCL instructions U979 ; Update the ACS ; If [CLEAR] key is pressed, the following will be executed: ;B.5 ; Select buffer ;G ; Clear it ; U979 ; Clear the ACS to prevent looping ; Lxxx ; Link to control string in memory ; location xxx

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

Buffers

2. Terminal Basics

The terminal has five buffers: a transmit buffer, a receive buffer, and three work buffers. Each buffer can hold up to 250 alphanumeric and control characters, and can be used as a temporary “storage” area. Each buffer also has a code that can be selected by using the "B" command. The buffer codes and names are as follows.

Table 2-1 Buffer Codes Code No. Buffer Name

1 Buffer 1 TRANSMIT 2 Buffer 2 RECEIVE 3 Buffer 3

4 Buffer 4

5 Buffer 5

Buffers serve as your primary work space. You can use the buffers to build request packets, disassemble response packets, create data capture headers and detail records, and display the contents of other buffers.

The terminal provides two tools to view or manipulate the contents of a buffer: the source (read only) and destination (write only) buffers. These buffers are actually “windows” into which you can pull the contents of any other buffer. For example, you could view the contents of the transmit buffer by selecting it as the source buffer. Or, by selecting the transmit buffer as both the source and destination buffer, you could read and write to it using the "X" command.

For example, say buffer 5 = 123,’ and you select buffer 5 as both the source and destination buffer using command B5.5. If you then use the "X"” command, which copies data from the source buffer and appends it to the destination buffer, the resulting value of buffer 5 will be 123123.’

As shown in Figure 2-16, the source buffer has an "extraction pointer" which marks your location within the buffer. You can use the "O" command to move the extraction pointer, the "B" command to reset the pointer and use the "X" command to copy and pull out segments of data from the source buffer to the destination buffer.

Note: The destination pointer cannot be moved by the programmer, it always points behind the last character in the buffer.

Source Buffer 1} 2; 3];/1),2/3

L Extraction Pointer

Destination Buffer

Figure 2-16. Destination and Source Buffer

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

Variables

TCL Programmer’s Manual

When planning your application, remember that transmit and receive buffers are the only buffers you can use to communicate with a host computer. You must use the transmit buffer to send data to a host computer, and use the receive buffer to receive data from the host computer. in addition to communicating with the host computer, the transmit and receive buffers, like the other three buffers, may also be used for:

¢ performing arithmetic calculations,

* passing data to data-capture records, * building detail records, ¢ building data packets,

* sending data to the printer. When selecting buffers, remember:

¢ The "B" command selects the source and destination buffers and resets the source extraction pointer.

* The "X" command copies data from the source buffer to the destination buffer.

* The "O" command moves the extraction pointer in the source buffer. * The "G" command clears or empties the destination buffer.

¢ Before a buffer can send data to the printer, you must select it as the destination buffer.

The terminal uses only local variables, which are reset to a value of 0 at any type of an Abort function. Local variables serve as temporary work bytes that may have a value of 0 to 255 in the XL and TRANZ 330, versions 1.2 or less and 0-65535 in TRANZ versions 1.3 and greater. You can use these variables as counters, pointers to memory locations, ASCII code values or flags.

Note: In the XL terminal you can only point to memory locations 0 - 255 using variables.

You can specify up to ten variables for each transaction, numbering them 0 through 9. To designate a variable, you must precede the number with the pound (#) sign (#0, #1, #2, #3....49). You can use a variable as a parameter in any command that accepts a numeric value. For example:

1. *N#2.113 ;set variable #2 to 113

A#2 ;append memory location pointed to by variable #2

2. *N#3.61 ;set variable 3 to 61 (ASCII code for "="

R#3 ;append the "=" sign to the destination buffer The TRANZ 380 supports up to 100 variables for each transaction, numbering them 00 through 99.

Note: The leading zero in variables #00 - #09 is not required (only applicable to TRANZ 380).

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

8-Pin DIN Connector and RS-232 Communications

Two-Way Communications

6-Pin DIN Connector For Bar Code Wand and External PIN Pad

Memory Considerations

2. Terminal Basics

The XL and TRANZ 330/340/380 terminals feature an 8-pin DIN connector for RS-232 communications or printer interface. There is a difference between the configuration of the port for the TRANZ and XL terminal; TRANZ allows two-way transfer of data at a maximum of 19,200 baud, the XL allows two-way transfer of data at 2,400 baud, one-way communication at 4800 and 9600 baud (transmit only).

Commands commonly used to control peripheral devices via the 8-pin DIN port include the "N” and "W" commands. The "N" command prints the destination buffer. The "W" command causes the terminal to wait until the printer buffer is empty before continuing execution of the contro! string.

The TRANZ 330/380 and XL 2.80 and higher terminals also use the "*I" command which provides character I/O of the RS-232 port.

To enable two-way communications via the 8-pin DIN connector, use the ™*R” "1" "4" commands. The "*R" command and "+R" (limited) on the XL and the *R, *l and +R commands on the TRANZ terminals select the RS-232 port (tells the terminal to use the RS-232 port, instead of the modem, for communications with the host) and sets the data format.

The TRANZ 330, 340, 380 (and 5xx series) terminals also feature a 6-pin DIN connector for a bar code wand or an extemal PIN (personal identification number) pad.

Commands commonly used to control peripheral devices via the 6-pin DIN port include the "*H" and "*U" commands. On TRANZ 330 versions 2.1 or less, the "*H" command enables the terminal to encrypt personal identification numbers. The "*U" command enables the terminal to accept input from a bar code wand (except in TRANZ 330 versions 3.6 and higher).

The terminals use ROM (read only memory) for the terminal's operating system, standard application and fixed prompts, and RAM (random access memory) for parameter data, control strings and data capture records. As shown in Figure 2-17, the more memory used for control strings and parameter data, the less memory you will have available for data capture records.

Data Capture

Parameter data and control

Figure 2-17. Non-Volatile Memory

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

TCL Programmer’s Manual

Although the majority of the memory locations are available for general purpose data storage, many memory locations have dedicated functions, or special restrictions. See "Appendix A. Memory Locations” for a summary of these dedicated functions and restrictions. The following sections will help you understand how the terminal’s memory is organized, and how the operating system manages the use of terminal memory.

Table 2-2 Terminal General Location Memory Size No. Characters

Terminal Version in General Locations TRANZ 1.3 and lower 60 2.0 120 (except x07, x10, x11, 03x which hold only 60 chars) 2.1 and higher 120 XL 2.11 and lower 60 2.40 and higher 120

TRANZ 330/340 Memory The TRANZ 330/340 terminals have 32K ROM and 32K battery-backed RAM Size _ for a total of 64K memory. Of the 32K RAM, 24K is available in TRANZ 330/340 firmware versions. There are one thousand memory locations that can be used for storing parameter information (telephone numbers, access codes, merchant IDs, etc.) and TCL control strings. TRANZ 330/340 firmware less than version 2.1 supports 60 characters; later versions as well as TRANZ 380 support 120.

TRANZ 380 Memory Size TRANZ 380 terminals support 2000 memory locations (0000-1999). There are two types of memory: Program and Batch. Program Memory holds the TCL application and may not exceed 64K; Batch Memory holds batch files and may not exceed 128K.

XL Memory Size, ‘ The XL terminal has 32K ROM and 16K RAM for a total of 48K memory.

Of the 16K RAM, 11K is available in XL firmware versions. Within the 16K RAM, XL firmware version 2.51 and higher has 478 memory locations that can be used for storing parameter information (telephone numbers, access codes, merchant IDs, etc.) and TCL control strings. XL firmware less than 2.40 supports 60 characters; later versions support 120.

Power Surges While _If a power surge occurs while the terminal is updating RAM, the memory Processing may become corrupted. If this happens, the terminal will display "PROGRAMING ERR.” To recover, simultaneously press the [FUNC/ENTER] and [1] keys. This clears the terminal’s memory and you must reload the application.

Dedicated Control String Each terminal transaction has up to three dedicated control string locations Locations, which the operating system sequentially processes: the transaction control string (location x07/0x07; "x" = the transaction key pressed), the response analysis control string (location x10/0x10) and an auxiliary control string (location x11/0x11).

When a transaction key is pressed, contro! immediately passes to the transaction control string. For example, pressing the [1] key from the idle state causes the terminal to begin executing the control string stored at

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

Parameter Information

Memory Compression

Data Capture and Batch Files

2. Terminal Basics memory location 107/0107. Likewise, pressing the [2] key causes the terminal to begin executing the control String at location 207/0207.

Each function also has a dedicated control String location. When you press the [FUNC] key, then one of the keys numbered 1-6, or 9, control passes to the appropriate function control string. For example, pressing the [FUNC] key then [1] key causes the terminal to begin executing the control string in location 031/0031. Likewise, pressing the [F UNC] key then [6] key causes the terminal to begin executing the control String in location 036/0036. See "Appendix A. Memory Locations” for a summary of dedicated control string locations.

Parameter information includes host information (such as telephone numbers, merchant IDs, message format flags, floor limits, @tc.), network logon data, and terminal specific data (such as the terminal's serial number, dial type, and key beep). As you look at the memory map in Appendix A, you will notice that certain memory locations have been dedicated to parameter information.

For example, terminal parameters include memory locations 4 through 14. Locations x00/0x00 through x12/0x12 (x = the transaction key pressed) are dedicated for host parameters.

Once your terminals are out in the field, it may be desirable to later download parameter data over the telephone line via ZONTALK 2000, the VeriFone download software. Using ZONTALK 2000, you can specify whether a data item should be downloaded to a single terminal or a group of terminals.

For example, while you would download a serial number and telephone flags to a specific terminal, you would probably want to download host telephone numbers and control strings to a group of terminals. It is important to consider these logical parameter groupings at this Stage of development to minimize the overhead of maintaining a large number of terminals.

To use memory efficiently the terminal compresses data stored in memory locations and in data capture. The compression algorithm translates all lower case alpha to upper case; one character byte. It also causes all numeric values to be compressed to 2 digits per byte (BCD - Binary Coded Decimal).

The term “data capture” refers to the process of capturing transaction data and storing it in the terminal’s RAM for processing at a later time. When the terminal is performing "data capture,” it is actually storing transaction details in detail records, which in turn, are stored in a batch file.

A batch file is a group of input data or documents (in this case, a group of detail records) which are collected together and processed as a single unit. The terminal stores batch files in RAM. As you perform transactions, the terminal adds detail records to the open batch until you close the batch or the memory becomes full.

The terminal allows you to create a batch file using the "*A" command. When creating a new batch, you must create a new batch header, which is a simple heading or title identifying the batch. The header can be any

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

XL/TRANZ Version 2.0 or Less

TRANZ 330/340 Versions 2.1 or Greater and TRANZ 380

Message Format Flags

TCL Programmer’s Manual combination of characters which make it uniquely retrievable. For example, you may use the terminal type and the current date as the batch header. Remember, you cannot label two batches with the same batch header.

The terminal allows you to use only one batch at a time. When working with batch files, remember...

For all XL versions and TRANZ 330/340 versions 2.0 or less:

* The terminal only adds detail records to the end of the open batch file.

¢ You can substitute one detail record for another in the open batch, but the records must be the same length after compression.

* You cannot delete single detail records from the batch. * You may store any number of detail records in each batch.

¢ The maximum number of detail records you can store in a batch is only limited by the amount of available memory.

* The only way to close a batch is to open a new one. * Once you close a batch you cannot re-open it to write to it (read only). ¢« You can delete an entire batch, or all of the batches in memory.

For TRANZ 330/340 versions 2.1 or greater and TRANZ 380, additional features include:

* You can append or insert detail records to any selected batch. * You can delete any detail records from any batch.

There are 16 standard control strings that enable the terminal to function as a credit card and check authorization terminal. These standard control strings are specifically designed for financial, point-of-sale applications and determine: * which of the terminal’s two default protocols

(VISA first or second generation) will be used;

¢ the order in which prompts are displayed; * how the terminal builds the transmit packet.

The 16 standard control strings are numbered from 0 to 15. To select one of these standard control strings you must store the associated number (0 to 15) in memory location x05/0x05 (where x= the number of the transaction key). The number associated with a particular control string is called a message format flag (MFF).

Note: Message format flags 4-15 are not available in the default application for TRANZ 330 versions 3.0 or greater and TRANZ 380.

The following list identifies the message format flags, their associated control strings and a description of the flag.

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

Example 1: Message Format Flag 0

2. Terminal Basics

Table 2-3. Message Format Flags

Flag Control String Description

0 QF1E5.2CSF2K2.411CSF3K4 1st generation, w/check digit

1 QF1E4.2SF2K2.411SF3K4 1st generation

2 QF1E5.2CSF2K2.411CSR28F3K4R28 2nd generation, w/check digit

3 QF1E4.2SF2K2.411SR28F3K4R28 2nd generation

4 QF4K2.2F1E5.2CSF2K2.411SF3K4 1st generation transaction code before account w/check digit

5 QF4K2.2F1E4.2SF2K2.411SF3K4 1st generation, transaction code before account

6 QF4K2.2F1E5.2CSF2kK2.411CSR28F3K4R28 2nd generation, transaction code before account w/check digit

7 QF4K2.2F1E4.2SF2k2.411SR28F3K4R28 2nd generation, transaction code before account

8 QFIE5.2CSF2K2.411 CSF3K4R35F4K2.2 1st generation, NDC transaction code after amount w/check digit

9 QF1E4.2SF2K2.411SF3K4R35F4K2.2 1st generation, NDC transaction code after amount

10 QFIES.2CSF2K2.411 CSR28F3K4R35F4K2.2 2nd generation, NDC transaction code after amount w/check digit

11 QFIE4.2SF2K2.411SR28F3K4R35F4K2.2 2nd generation, NDC transaction code after amount

12 QFIES.2CSF2K2.411 CSF3K4R28F4K2.2 1st generation, transaction code after amount, w/check digit

13 QF1E4.2SF2K2.411SF3K4R28F4K2.2 1st generation, transaction code after amount

14 QFIES. 2CSF2K2.411CSR28F3K4R28F4K2.2 2nd generation, transaction code after amount w/check digit

15 QF1IE4.2SF2K2.411SR28F3K4R28F4K2.2 2nd generation, transaction code after amount

Following are a few examples of message format flags with detailed descriptions of their associated control strings. These examples will help you understand how TCL commands are joined together to form control strings.

The default message format flag, 0, uses the VISA first generation protocol with a Luhn check digit. The control string associated with flag 0 is:

QF1E5.2CSF2K2.411 CSF3K4 or

Q F1 E5.2 C S F2 K2.4 11 C S F3 K4

Where:

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

TCL Programmer’s Manual

Command

Description

Q

FA

E5.2

The write control character (WCC); a special code inserted into the transmit packet telling the host which protocol to use (single or multiple-transaction protocol) and how the account number was entered (from cardreader or keypad).

Command to display fixed prompt 1, "ENTER ACCOUNT #.” The F command selects and displays a fixed prompt; the number following the F identifies which fixed prompt the terminal should display.

Command to accept numeric input from either the cardreader or the keypad, and skip 5 steps if input was received from the cardreader.

E input command which tells the terminal to accept data from either the cardreader or the keypad.

5 the number of commands to skip when input is received from the cardreader.

2 __ the type of input the terminal should accept; numbers only.

Note: The E command can have a third parameter specifying the number of characters the terminal should accept when input is via the keypad. When the third parameter is not included the terminal uses the default value of 60 characters.

Cc

F2

K2.4

1

Command to verify the Luhn check digit; verifies the validity of the account number

Begin dialing Command to display fixed prompt 2, "EXPIRY DATE MMYY"

Command to accept input from the keypad only; valid inputs include up to 4 numeric characters

K accept input from keypad only

2__ the type of input the terminal should accept; numeric only

4 the maximum number of characters to accept

Command to skip one command

Verify Luhn check digit