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

TCL Terminal Control Language Programmer's Manual, pages 141 to 150

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

K - Input from Keypad Only

Parameters: Default Parameter Value Description a 3 Optional; input type flag; identifies type of editing criteria; default flag is 3, alphanumeric; other options:

Input Type Flag alphanumeric characters numeric alphanumeric characters numbers with two forced decimal places

(for money); the decimal is added automatically;

the default field length is 10 characters, with a maximum length of 15, minimum digits

= 4; if null entry occurs, "0.00" is appended to destination buffer (or".00" in XL version 2.4)

alphanumeric; hidden entry (*s displayed) .

numeric; hidden entry (*s displayed)

alphanumeric; hidden entry; password required; entered data not appended to destination buffer; if password entered incorrectly, terminal beeps and aborts operation j 60 Optional; the maximum number of input characters the terminal will accept from the keypad; default for input type flags 1,2,3,5,6 and 7 is 60 chars; default for input type 4 is 10 chars; maximum length for amount data is 15.

s 0 Optional; number of commands to skip after a NULL entry from keypad. NULL entry occurs if you press [ENTER] without entering data. Valid only for keyboard entry.

i 0 Optional; minimum number input chars from keypad. Valid only for keyboard entry. Note: If "i" is greater than ‘j", "i" will be set to zero.

hOND - NOOO

Example: Command Operation

; This routine will get the 2-decimal place amount from the merchant.

161$ B.4 ; Select destination buffer 4 G ; Clear destination buffer F30 ; Display fixed prompt “ENTER AMOUNT" K4 ; Accept dollar amount U82 ; Store amount

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

Notes:

K - input from Keypad Only

When using a data type of 4 (amount):

* There is no null entry. If the user presses [FUNC/ENTER] without entering data, 0.00 is appended to the destination buffer.

* You can use the [*] key to toggle beween negative and positive values. However, in TRANZ 330 EPROMs less than 3.60, if you enter the maximum number of characters (15), you will corrupt the last digit if you try to toggle to negative.

* There is no minimum number of input characters.

For EPROMs with 10-digit math, the "A" parameter is set to 4 (amount), and parameter "J" is left as the default, maximum input is 10 digits. The "J" parameter can be set to a maximum of 15 characters. Maximum input for 15-digit EPROMs with the same parameter settings is 15 characters.

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

Description:

See Also:

Category:

Buffer Status:

Terminals Supported:

Command Format:

Parameters:

*K - Abort Process, String or Transaction

Causes the terminal to abort or terminate a process.

Note: "*K" clears all system buffers (not source and destination buffers) and stops the printing process if characters remain in the printer buffer. Issue a “W" command to wait for the printer buffer to empty prior to the "*K".

Command Description

*M Explicit Return

Process and Flow Control

Source Buffer Destination Buffer

Reset Reset

Terminal Special Conditions

PNC 330 None

PNC 340 "*K2" and "*K3" not available XL None

TRANZ 330 None

TRANZ 330 (202) "*K2" and “*K3" not available TRANZ 340 "*K2" and "*K3" not available TRANZ 380 None

Default Parameter Value Description a 0 Optional; code telling terminal what to do after terminating a process:

0 display the idle prompt (ABORTD)

1 leave existing display as is (ABORT)

2 hang up phone, leave multi-transaction enabled and continue executing the control string

3 hang up phone, turn off multi-transaction

(reset to single transaction) and continue executing control string

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

*K - Abort Process, String or Transaction

Example: Command Operation

; This routine clears batch and upon completion aborts and keeps current

; display.

354$ B.5 ; Select buffer 5 G ; Clear 5 U40 ; Clear batch counter F14 ; Display (BATCH CLEARED’ *W2 ; Wait for 2 seconds R49 ; Append a 1 *B3 ; Open as the current batch *D ; Delete the entire batch +L1 ; Unlock keyboard

*K1 ; Finish and remain on display

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

Description:

See Also:

Category:

Buffer Status:

Terminals Supported:

+K - Carrier Control

Raises, drops carrier or waits for incoming carrier.

Note: Option 1 of parameter a" (drop carrier) also clears the circular modem receive buffer.

Option 6 of parameter "a" debounces carrier detect, requires the carrier detect signal be stable over a predefined period of time (200-400 milliseconds) in case the terminal sees an instantaneous carrier detect due to telephone line noise or a malfunctioning host modem. The moment of silence applies primarily to 1200 baud Bell 212A or CCITT V.22 communications protocol and requires that carrier (or unscrambled modem MARK) be present for a predefined period of time (500 milliseconds) with no data transmission. Any data transmission detected during this time resets the timer. If a continuous moment of silence does not occur within 12 seconds, the terminal will abort the control string with an error message CANNOT CONNECT.

Command Description +D Tone Dial +F Response ACK +l Send Over Modem +M Set Modem Parameters *P Specify Characters iS) Dial Phone Number *T Specify Timeouts "V Append Phone Status +X Transmit Data to Network +Y Receive Data from Network

Communication Control

Source Buffer Destination Buffer

No change No change

Terminal Special Conditions

PNC 330 None

PNC 340 Not available

XL Available on versions 2.4 or greater TRANZ 330 Available on versions 1.3 or greater TRANZ 330 (202) Not available

TRANZ 340 Not available

TRANZ 380 None

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

+K - Carrier Control

Command Format:

Parameters: Default Parameter Value Description a 0 Optional; options for this parameter are: 0 raise the carrier 1. drop the carrier 2 raise answer tone 5 wait for debounced carrier detect (samples for 200 ms) 6 wait for debounced carrier detect with 500ms moment of silence 7 skip “s" parameter if carrier detect (samples 1 tick) s 0 Optional; number of commands to skip if “a"=7 Examples: Command Operation

: Go off hook and raise carrier. $3 ; go off hook +K ; raise carrier

; Go off hook and wait for carrier $3 ; go off hook +K5 ; wait for carrier

Refer to Appendix D for communication examples using this command.

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

L - Link Control Strings

Description: | When a control string exceeds the maximum number of characters allowed for a memory location, you can break it up and store it in several memory locations then use the "L" command to link these locations together. Use the "L" command at each break point to identify the memory location containing the next portion of the control string. Remember to count each character in the control string, including periods and commas. When breaking up a control string, place the break on or before the 116th character (the 56th character in TRANZ version prior to 2.1, XL versions prior to 2.4) as the "L" command requires four characters (Lnnn where nnn=the next memory location).

Note: You can use the "L" command anywhere in the control string to link to another control string.

See Also: | Command Description *L Call Subroutine *M Explicit Return

Category: Process and Flow Control

Buffer Status: | Source Buffer Destination Buffer No change No change Terminals Supported: Terminal Special Conditions PNC 330/340 None XL None

TRANZ 330/340/380 None

Command Format:

Parameters: Default Parameter Value Description m re-execute Optional; memory location containing next portion of the control string; if "m*" parameter is not specified, the terminal will re-execute the control string in the current memory location

5 - 83

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

L - Link Control Strings

Examples: Command Operation

; This routine prompts for selection to add, update, or delete a supervisor ; password and link to the appropriate routine based on selection.

680$ B3.3 ; Select source and destination buffer 3 G ; Clear destination buffer P690 ; Display custom prompt "1=ADD 2=UP 3=DEL" K2.1..1 ; Accept a 1-digit numeric type value 13.1.49 ; Skip 3 commands if = 1 (add) (goto L682) 13.1.50 ; Skip 3 commands if = 2 (update) (goto L683) 13.1.51 ; Skip 3 commands if = 3 (delete) (goto L684) L681 ; Link to routine to handle input error L682 ; Link to routine to handle adding a password L683 * Link to routine to handle updating a password

L684 ; Link to routine to handle deleting a password

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

Description:

See Also:

Category:

Buffer Status:

Terminals Supported:

Command Format:

*L - Call Subroutine

During the execution of a control string, the "*L" command causes the terminal to jump to another specified memory location and execute the control string or subroutine residing there. After executing that control string, the terminal returns to the command following the “*L" command in the original control string. These subroutines may be nested up to ten levels deep on PNC 330/340 and TRANZ 330/340 versions greater than 2.0, and ten levels deep on both the XL and TRANZ 380. The error message "MACRO OVERFLOW" appears if you program more than the maximum allowable nested subroutines.

Note: If the second parameter of the *L command is anything other than “1", (for example, a request for multiple iterations of the subroutine), the control string called cannot link to another control string and continue to perform multiple iterations. In other words, a subroutine must be contained within a single memory location to perform multiple iterations.

Command Description L Link to Control String *M Explicit Return

Process and Flow Control

Source Buffer Destination Buffer No change No change Terminal Special Conditions PNC 330/340 None

XL None

TRANZ 330 None

TRANZ 340 None

TRANZ 380 None

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

Parameters:

Example:

*L - Call Subroutine

Default Parameter Value Description m 000 Required; the memory location containing the subroutine control string; the default location 000 calls the download phone number n 1 Optional; the number of times to execute the subroutine

Command Operation

: This routine is called to get all input for a refund transaction. 320$

B.3 ; Select source and destination buffer 3 G ; Clear destination buffer U50 : Clear temporary storage for current card number U51 ; Clear temporary storage for current amount U52 ; Clear temporary storage for sequence number U55 ; Clear temporary storage for current approval ; number *L330 ; Call routine to get card numbers *L331 ; Call routine to get amount of refund *L332 ; Call routine to get original sequence number *L333 ; Call routine to get approval number of original ; transaction