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

TCL Terminal Control Language Programmer's Manual, pages 171 to 180

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

Q - Append Write Control Character

Command Format:

Description: | Appends the write control character (WCC) to the destination buffer and the pointer to the WCC in to WCCPTR. The WCC is a special bit-mapped code that tells the host:

* whether to use a single or multi-transaction protocol, ¢ whether the account number was read from a magnetic stripe or manually entered via the keypad. See Also: | Command Description A Append from Memory Location J Append Clock Data +Q Append Variable to Buffer R Append Constant +V Append Sign On Message xX Append from Source Y Append Non-Blank Memory Location Category: Buffer Operations Buffer Status: | Source Buffer Destination Buffer No change Buffer updated Terminals Supported: Terminal Special Conditions PNC 330/340 None XL None TRANZ 330/340/380 None

5-107

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

5-108

Q - Append Write Control Character

Parameters: Default Parameter Value

Description c 0

Example: Command

Optional; the WCC base to be converted from decimal into binary; the binary equivalent is then stored into the WCC as "ttt". The Write Control Character format is: 01ttttmc 01 is a constant literal; the terminal automatically sets this value tttt format bits which are application specific; these bits are set according to parameter (single transaction), or 1 (multi-transaction session); terminal automatically sets this value (account data came from keypad), or 1 (account data came from cardreader); the terminal automatically sets this value

Operation

Q8

Q16

; Send a WCC of "H" for single transaction

; with account data entered via keypad,

; or “I" for a single transaction with account

; data entered via cardreader.

; Format = 01 tttt me

;8= 00 0010 0 0

; 01 0010 MC

: Of 0010 0 O = H acct from keyboard ; 01 0010 0 1 = | acct from cardreader

; Send a WCC of "P" for a single transaction ; from the keypad, or "Q" for a single transaction ; from the cardreader

;16= 00 010000

; 010100 MC

; 01 01 00 00 = P acct from keyboard

; 01 01 00 01 = Q acct from cardreader

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

Description:

See Also:

Category:

Buffer Status:

Terminals Supported:

Command Format:

*Q_ - Seta Variable from the Contents of a Buffer

Sets a variable from the contents of the destination buffer. On the PNC 330/340 and TRANZ 330/340 versions 1.3 or greater, a variable can be any value ranging from 0-65535. On TRANZ versions 1.2 and below and all XL versions the variable range is 0-255. The terminal will truncate any set variable that is greater than its range. You must use a "# " (pound sign) to indicate a variable, even when using the default variable 0.

WARNING: Setting a variable to an alphanumeric string will have unpredictable results.

Command Description +A Compare Variable *N Set Variable *O Arithmetic on Variables +Q Append Variable to Buffer

Variable Operations

Source Buffer Destination Buffer

No change No change; buffer read

Terminal Special Conditions

PNC 330/340 None

XL Does not support ASCII conversion of variables ("a" parameter) in versions less than 2.80 TRANZ 330/340/380 None

5 - 109

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

5-110

*Q - Seta Variable from the Contents of a Buffer

Default Parameters: Parameter Value

Description

#v 0 b destination buffer

Optional; the variable to set; when specifying a number as a variable, remember to precede the number with a pound (#) sign; for example, to specify variable 3, write *Q#3 Required; identifies buffer to be used to set variable Buffer options include: 0 nochange from current buffer Buffer 1 - Transmit Buffer Buffer 2 - Receive Buffer Buffer 3 Buffer 4 Buffer 5 Optional; type or conversion 0 = string Ex: If buffer = "2748", then variable = 2748 1 = ASCII Ex: If buffer = "V" then variable = 86 which is decimal for 56h. Ex: If buffer = "XY" then variable = 22617, which is decimal for 5859h.

arkWND =

Note: The first two characters are converted to the hexadecimal repre-sentation of the character. The variable will contain decimal values supporting the terminal’s display capability.

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

*Q - Seta Variable from the Contents of a Buffer

Example: Command Operation

; This routine prompts for report type of BATCH, SHIFT, or DAY report and ; based upon selection calls correct routine to print. 71=1=BTH 2=SHT 3=DY

280$ B.3 ; Select work buffer 3 G ; Clear buffer P71 ; Prompt with "1=BTH 2=SHT 3=DY" K2.1..1 ; Get from the keyboard a 1-digit number D ; Get rid of field separator at end *Q#7 ; Set variable #7 to hold report type +A#7..1.5 ; If"1", print batch report +A#7..2.5 ; If "2", print shift report +A#7..3.5 ; If "3", print day report P72 ; Display "INVALID TYPE" *W2 ; Wait for 2 seconds 1-10 ; If nota 1, 2, or 3 skip back and prompt again L560 ; Link to print batch report L561 ; Link to print shift report L562 ; Link to print day report

5-111

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

5-112

Description:

See Also:

Category:

Buffer Status:

Terminals Supported:

Command Format:

Parameters:

+Q - Appends Variable to Destination Buffer

Appends a variable to the contents of a buffer. On the PNC 330/340, TRANZ 330/340 versions 1.3 or greater and the TRANZ 380, a variable can be any value ranging from 0-65535. On TRANZ versions 1.2 and below and all XL versions the variable range is 0-255. The terminal will truncate any set variable that is greater than its range. You must use a "#" (pound sign) to indicate a variable, even when using the default variable 0.

Command Description A Append from Memory Location J Append Clock Data Q Append Write Control! Character R Append Constant +V Append Sign On Message X Append from Source Y Append Non-Blank Memory Location

Variable Operations

Source Buffer

Destination Buffer

No change

Terminal

Buffer updated

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 #V 0 Optional; the variable to convert; when specifying a variable, remember to precede the number with a pound (#) sign a 0 Optional; type of conversion; options include:

0 string V=2748 (OABCh) buffer = "2748" 1 ASCII V=86 (0056h) buffer ="V" V=2261 (5859h) buffer ="XY"

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

+Q - Appends Variable to Destination Buffer

Examples: |. Command Operation

; This routine will clear a set of memory locations starting with memory ; location stored in variable #0 and incrementing 28 times using #2 as ; the counter.

114$ *N#2.0 ; Set counter to 0 *N#0.149 ; Set starting memory location to begin clearing B.4 : Select destination buffer G ; Clear destination buffer U42 ; Clear counter B4.4 ; Select source and destination buffer G ; Clear destination buffer +Q#2 ; Append counter to destination buffer 11.1.728’ ; If equal 28 skip 1 and finish 12 ; Otherwise skip and continue *L115 ; Open the batch *M ; Otherwise finish B.5 ; Select destination buffer G : Clear destination buffer U#0 ; Clear memory locations *O#2 ; Increment the counter *O#0 ; Increment the memory location I-12 ; Loop back and do again.

5-113

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

R - Append Constant Value to Destination Buffer

Description: | Appends a constant string of one or more characters to the data in the destination buffer. See Also: Command Description A Append from Memory Location J Append Clock Data Q Append Write Control Character +Q Append Variable to Buffer +V Append Sign On Message X Append from Source Y Append Non-Blank Memory Location Category: Buffer Operations Buffer Status: | Source Buffer Destination Buffer No change Buffer updated Terminals Supported: Terminal Special Conditions PNC 330 None PNC 340 None XL None TRANZ 330 Using "R256" to append a null character (00h) to the buffer results in an SOH character (01h) being appended in 3.0/2.3 firmware TRANZ 340 Using "R256" to append a null character (00h) to the buffer results in an SOH character (01h) being appended in 3.0/2.3 firmware TRANZ 380 None

Command Format:

5-114

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

R - Append Constant Value to Destination Buffer

Default Parameters: Parameter Value Description Cc 28/FS Optional; a literal string enclosed in single quotes or the decimal value of the character you want to append to the destination buffer; the default is 28, the decimal value for an ASCII field separator Examples: Command Operation

; This routine prints the date and time, then aborts.

180$ B.5 ; Select destination buffer 5 G ; Clear destination buffer R’DATE: ’ ; Append "DATE: " J’B/C/A’ ; Append "MM/DD/YY" 222 ; Pad up to 22 spaces, left justified R’TIME: ’ ; Append "TIME: " J‘K:E:P’ ; Append “"HH:MM:SS" N1 ; Print line WwW ; Wait for opsys printer buffer to empty *K ; Abort, return to idle prompt

Notes: | Command "R" will only append one decimal value at a time. If you want to append more than one character, you need to use single quotes.

When you need to append a <NULL> (dec. 0) to a buffer, use R128, R256, or depending on the EPROM, append a <NULL> to a memory location. (Set a variable to zero, then append it to the destination buffer converted to ASCIl, then store.)

5-115

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

5-116

Description:

See Also:

Category:

Buffer Status:

Terminals Supported:

*R_- Select Communication Device, Speed

Selects the communications device, speed and data format parameters for the RS-232 port.

Command Description

RS-232 Communications:

*| Send over RS-232 N Send Buffer to Printer +R Set RS-232 Modem Communications: +D Tone Dial +F Response ACK +1 Send Over Modem +K Carrier Control +M Set Modem Parameters *P Specify Characters 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/340 "ai" not available; command operates on RS-232 port only (not supported in PNC mode)

XL Parameters "a2" "ag" "a4" apply only when

RS-232 port selected *R.4, *R.5, *R.6 transmit only

TRANZ 330/340 "az" not available; command operates on RS-232 port only.Option 3 of "a4" added in 2.1, option 2 of "a4" broken in 2.1 and fixed in 2.3

TRANZ 380 None