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

TCL Terminal Control Language Programmer's Manual, pages 151 to 160

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

Description:

Category:

Buffer Status:

Terminals Supported:

Command Format:

Parameters:

Examples:

+L - Lock and Unlock Keypad

Locks or unlocks the keypad.

Note: The keypad is automatically unlocked on ABORT ("*K") and before executing control string x07.

Process and Flow Control

Source Buffer

Destination Buffer

No change No change

Terminal Special Conditions

PNC 330/340 None

XL Available on versions 2.4 or greater TRANZ 330 Available on versions 1.3 or greater TRANZ 330 (202) Available on versions 2.1 or greater TRANZ 340 Available on versions 2.1 or greater TRANZ 380 None

Default Parameter Value Description a 0 Optional; options for this parameter are: 0 lock the keypad 1 unlock the keypad Command Operation

; This routine gets carrier and locks the keypad.

422$

P72

G

*V

110.2.56

G

+K7.8 B *W1 1-3.7.#9 P73 *K3 *W1

; Say, "WAITING FOR ANSR"

; Clear buffer

; Get telephone status

; If not waiting for answer - skip 10 commands ; Else, clear buffer

; If carrier present, skip 8 commands

; No-op to scan keyboard

; Delay 1 second

; Keep checking for 25 seconds

; When counter is zero - say, "NO ANSWER" ; Hangup

; Delay 1 second

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

+L - Lock and Unlock Keypad

Examples Command (continued)

Operation

*L420 L423

P74 +KO +L *W1 L425

; Check for "WAITING FOR LINE"

; and try secondary phone number

; Clear buffer

; Say, "CONNECTED"

; Turn originate carrier on

; Lock the keyboard

; Wait one second for possible ringback pulse ; Link to connection made

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

Description:

See Also:

Category:

Buffer Status:

Terminals Supported:

Command Format:

Parameters:

M - Input from Cardreader Only

Causes the terminal to accept input from the cardreader only, to place a field separator after the data entry and append the data to the destination buffer. When this command is used, there is no input type or data length restriction. If the user presses a key, the terminal beeps, displays CARD ENTRY ONLY for three seconds and returns to the idle prompt.

Command Description E Input from Card Reader or Keypad +E Input Variable Decimal Point K Input from Keypad Only *U Input from Bar Code Reader *Y Check Input Devices Data Entry Source Buffer Destination Buffer No change Buffer updated Terminal Special Conditions PNC 330/340 Parameters "s", “a", "c" not available XL Parameters "s", "a", "c" not available TRANZ 330/340 Parameters "s", "a", "c" not available TRANZ 380 None ZON 5XX (see Appendix J for unique bar code usage)

Default Parameter Value Description s 0 Number of commands to skip if three bad card reads.

Note: When reading two tracks, if one track contains an error or is not read properly, the terminal puts an error code in the destination buffer instead of the track information. The correctly read track will also be placed in the destination buffer, and the two tracks will be separated by the track separator. Errors are displayed as AA - AE on the terminal and as 0 - 5 in the destination buffer.

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

Parameters (continued)

Example:

M - Input from Cardreader Only

Parameter

Default Value Description a c

Command

0 Track Selection Options 0 = Track 2 1 = Track 1 2 = Tracks 1 and 2 3 = Track 3 4 = Tracks 2 and 3 29 Track separator

Operation

; Get the account data from the cardreader only. Do Luhn check digit test.

121$ B3.3 G FA M 1; U95 B.5 G H.61

O X4

U96

; Select source and destination buffer as 3

; Clear destination buffer

; Display fixed prompt "ENTER ACCOUNT #" ; Accept entry from cardreader only

; Do Luhn check digit

; Store account number and expiration date

; Select destination buffer 5

; Clear destination buffer

; Search source buffer for an "=", which is

; Start of expiration date

; Move extraction pointer 1 pass “="

; Copy the expiration date from source buffer ; to the destination buffer

; Store expiration date separately

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

Description:

See Also:

Category:

Buffer Status:

Terminals Supported:

Command Format:

Parameters:

*M_ - Exit Subroutine; Return to Control String

The "*M" command is an "explicit return;" it causes the terminal to immediately exit a subroutine and return to the original control string.

Executing a "*M" command will reset the repeat counter, "n" in *Lm,n, to 1. To exit a subroutine without resetting the repeat counter, do not execute the "*M", but skip around it, allowing the control string to terminate.

Note: You need not include the "*M" command at the end of a subroutine control string; the terminal will automatically return to the calling contro! string.

Command Description

Program Control Command:

L Link to Control String *L Call Subroutine

End Control String Command: *K Abort

Process and Flow Control

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

XL None

TRANZ 330/340/380 None

Default Parameter Value Description

(there are no parameters for the "*M" command)

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

Example:

*M_ - Exit Subroutine; Return to Control String

Command Operation

; This routine checks to see if anyone is logged on, a value other than "00" ; in memory location 80 would indicate someone is logged on. 170=MUST LOGON FIRST

145$ B5.5 ; Select source and destination buffer 5 G ; Clear destination buffer A80 ; Append logon ID 11.1.’00’ ; If zero skip 1, because we aren’t logged on, ; else return *M ; Return we have someone logged on P170 ; Display "MUST LOGON FIRST" *K1 ; Abort and leave error display at idle state

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

Description:

See Also:

Category:

Buffer Status:

Terminals Supported:

Command Format:

+M- Set Modem Parameters

Sets the answer/originate mode and data format parameters for the modem. On PNC 330, TRANZ 330 versions 2.1 or greater and TRANZ 380 the command enables/disables re-transmission on ENQ/NAK.

Command Description

+D Tone Dial

+F Response ACK

+l Send Over Modem

+K Carrier Control

*P Specify Characters

*R Specify Device, Speed and Format

S Dial Phone Number

*T Specify Timeouts

*V Append Phone Status

+X Transmit Data to Network

+Y Receive Data from Network Communications Control

Source Buffer

Destination Buffer

No change No change

Terminal Special Conditions

PNC 330 None

PNC 340 Not available

XL Not available (7EI only)

TRANZ 330 "ag" and "a4" parameters available on Versions 2.1 or greater

TRANZ 330 (202) Not available

TRANZ 340 Not available

TRANZ 380 None

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

+M - Set Modem Parameters

Parameters: Default

Parameter Value Description at 0 Optional; options for this parameter are: Q nochange (set to originate on abort) 1 set originate 2 set answer a2 0 Optional; options for this parameter are: 0 nochange (set to 7E1, pass 7 on abort)

1 set 7E1, pass 7 bits 2 set 8N1, pass 7 bits 3 set 8N1, pass 8 bits a3 0 Optional; options for this parameter are: 0 nochange (enabled on abort) 1. enable re-transmission on NAK 2 disable re-transmission on NAK a4 1 Optional; options for this parameter are: 0 nochange (disabled on abort) 1 enable re-transmission on ENQ 2. disable re-transmission on ENQ

Examples: | Command Operation

; Auto-answer control string to set up modem defaults and call ; routine to handle processing. 038$

+M.3 +K *W2 *P...2 +K5

+K *R2.2.2 *N#1.2

*L913

*K

; Answer mode 8,N,1

; Raise carrier

; Pause

; Set 1200 baud

; Wait for 1200 bps carrier ; Change to PSK

; Serial port 1200 8,N,1

; Call routine to handle processing ; Abort and return to idle prompt

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

Description:

See Also:

Category:

Buffer Status:

Terminals Supported:

Command Format:

Parameters:

N - Send Destination Buffer to Printer

Causes the terminal to send data in the destination buffer to the printer. Appends <CR><LF> to destination buffer.

Note: The terminal returns to the control string if the print buffer is full. Use with the "W" command (wait until the print buffer is empty to execute).

Command Description

RS-232 Communications Command:

*| Send over RS-232 *R Specify Device, Speed and Format +R Set RS-232 Printing Commands: WwW Wait for Print Buffer

Outputs and Data Display

Source Buffer Destination Buffer

No change No change; buffer read

Terminal Special Conditions

PNC 330/340 None

XL "a" and "t" parameters not available in versions prior to 2.11 TRANZ 330/340/380 None

Default Parameter Value Description n 0 Optional; the number of carriage returns and line feed combinations to append to the destination buffer; the default is 0

For example, if the "n" parameter is 4, the printer will print the contents of the buffer, add one carriage return, and advance the paper three lines.

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

N - Send Destination Buffer to Printer

Parameters: Default (continued) Parameter Value Description

Note: Remember, each buffer can hold up to 250 characters; if you specify too large a number for the "n" parameter and the buffer can not accommodate your request, the buffer will overflow, corrupting itself and the following buffer. Also remember that the terminal appends the specified number of carriage returns and line feed combinations to the destination buffer before sending the contents of the buffer to the printer. To use dala after it has been printed, you may want to strip the carriage return and line feed characters off the end of the buffer.

a 0 Optional; slip printer driver specifier 0 print data now; if out of paper, print as soon as paper is inserted 1 print data now; if out of paper, display "INSERT FORM...’; wait "t" half seconds, display "PRINTING", then print. 2 print data now; if out of paper, display "INSERT FORM ...’; when paper is inserted, display "PRESS ENTER’; when [FUNC/ENTER] key is pressed display ‘PRINTING’ and then start printing. Note: This only works for P100 emulation. t 0 Number of half seconds to wait after detecting paper if "a" parameter = 1.

Example: Command Operation 550$ B.5 ; Select buffer 5 to work in G ; Clear destination buffer A70 ; Append merchant name 240.2 ; Center it N1 ; Print G ; Clear destination buffer A71 ; Append merchant address Z40.2 ; Center it W ; Make sure printer buffer doesn’t overflow N1 ; Print G ; Clear destination buffer A72 ; Append merchant city, state, zip code Z40.2 ; Center it WwW ; Make sure printer buffer doesn’t overflow

N2 ; Print and skip one line