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

TCL Terminal Control Language Programmer's Manual, pages 221 to 230

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

W - Wait Until Print Buffer is Empty

Parameters: Default Parameter Value Description a 0 Optional; options for this parameter are:

0 wait until print buffer is empty 1 skip number of commands specified in parameter 2 if printer is ready 2 skip number of commands specified in parameter 2 if print buffer is empty Ss Q Optional; number of commands to skip if parameter 1 ("a") = 1 or 2.

Note: Option 1 of parameter ‘a" is implemented only for the Printer 100. If the printer type flag is sent for any other printer, the terminal will always think the printer is ready.

Example: Command Operation

; This routine prints the heading

380$ B.4 ; Select destination buffer G ; Clear destination buffer A70 ; Append merchant name 240.2 ; Center it N1 ; Print G ; Clear destination buffer A71 ; Append merchant address 240.2 ; Center it WwW ; Make sure the printer buffer doesn’t overflow N1 ; Print G ; Clear destination buffer A72 ; Append merchant city, state, zip code 240.2 ; Center it Ww ; Make sure printer buffer doesn’t overflow N2 ; Print and skip one line 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:F’ ; Append “"HH:MM:SS" Ww ; Make sure printer buffer doesn’t overflow N1 ; Print line

5 - 157

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

5 - 158

Description:

See Also:

Category:

Buffer Status:

Terminals Supported:

Command Format:

Parameters:

*W - General Wait

The "*W" command is a general wait command. It causes the terminal to wait for either a specified number of seconds or until the user presses a key. The key is then appended to the destination buffer.

Command Description +P Timeout in Milliseconds WwW Wait for Print Buffer

Process and Flow Control

Source Buffer Destination Buffer

No change Buffer updated

Terminal Special Conditions

PNC 330/340 None

XL Options 2 and 3 of parameter "a" not implemented. Entering any value other than "0" causes the command to function as though the parameter is "1".

TRANZ 330 Double key entries not accepted, regardless of value of "a" parameter in version 3.10 TRANZ 340 Double key entries not accepted, regardless of value of "a" parameter in version 2.30 TRANZ 380 None

Default Parameter Value Description t 0 Optional; timeout period in seconds; you may specify a timeout of 1-65 seconds; if set to zero, the terminal will not timeout; it will wait for a key press before executing the next command.

s 0 Optional; number of instructions to skip when the terminal times out or receives a keypress

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

*W - General Wait

Parameters: Default (continued) Parameter Value Description a 0 Optional; the type of key press allowed, key pressed is appended to the end of the destination buffer; 0 allow0-9,*,# 1 allow0- 9, *, #, [ENTER] Note: Pressing [ENTER] causes the terminal to timeout and skip the number of instructions specified by "s" parameter.

2 allow 0-9, *, # return B for [BACKSPACE] C for Alphanumeric D for [ENTER]

3 disallow any keys

Examples: Command Operation

; This routine gets the price per gallon with 3 decimal places

318$ ; PRICE PER GALLONS B5.5 ; Select buffer 5 G ; Clear 5 P55 ; Say PRICE PER GALLN?’ +E2.5.0 ; Accept price/gallon 999.99 U155 ; Store the price H3.45 ; check for negative P70 ; Display (NEG NOT ALLOWED’ *W1 ; Wait 1 second I-8 ; Go back and get input B.4 ; Select 4 G ; Clear 4 R48 ; Append a zero T155 ; And add it to field to remove the decimal B5.5 ; Move the input to source 11.1.’0.00’ ; If price is empty return *L319 ; Otherwise prompt for gallons

5-159

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

5 - 160

Description:

See Also:

Category:

Buffer Status:

Terminals Supported:

Command Fomat:

X - Append Source Buffer to Destination Buffer

Appends a specified number of characters from the source buffer to the end of the destination buffer. Following this operation, the extraction pointer will point to the position following the last copied character. The data extraction pointer may be set with the following commands:

“B" select buffer and reset pointer "H" search and set pointer "oO" offset pointer Command Description A Append from Memory Location J Append Clock Data Q Append Write Control Character +Q Append Variable to Buffer R Append Constant +V Append Sign On Message Y Append Non-Blank Memory Location Buffer Operations Source Buffer Destination Buffer Pointer moves n Buffer updated positions; buffer read

Terminal Special Conditions PNC 330/340 None XL None

TRANZ 330/340/380 None

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

X - Append Source Buffer to Destination Buffer

Default Parameters: Parameter Value Description n 0 Optional; number of characters to copy; if default value 0 is specified, terminal will copy from extraction pointer to end of source buffer c rest of buffer Optional; the end sentinel which is a decimal value; upon encountering the end sentinel, the terminal stops copying; if not specified, the terminal copies to the end of the source buffer. For example, if the end sentinel is 28 (the decimal value for an ASCII field separator) and you write the command X.28, the terminal will copy up to, but not including, the next field separator.

Example: Command Operation

; This routine is called after we receive a response message back from the ; host and we want to extract the display message and display it. The display ; message in this particular host response is after the first field separator.

168$

B.2 ; Select receive buffer which contains the host ; response

U190 ; Save the entire host response

B2.3 ; Select the receive buffer as the source buffer ; and 3 as the destination buffer

H ; Find the first field separator in the host response

0 ; Move the extraction pointer by 1

X16 ; Copy the 16-character display message

V.2.4 ; Display the message for 2 seconds before ; continuing

5-161

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

5-162

Description:

See Also:

Category:

Buffer Status:

Terminals Supported:

Command Format:

*X - Select Account Number Range

Allows you to specify a series of account ranges to indicate which account numbers the terminal will accept.

If the digits of the data in the source buffer fall within the lowest entry permitted and highest entry permitted - see the Account Range Table on the next page - the terminal will append a data field to the destination buffer, and skip the number of commands specified in the last parameter of the "*X" command. If the digits do not fall within any of the account ranges specified, the terminal will execute the command immediately following the "*X" command.

Note: The portion of information in the data field of each account range record that will be copied to the destination buffer can be limited by either a

, ., or’,’ in the data field. The information following such a terminator/field separator can be considered a comment field.

WARNING: Do not use memory locations with a range of over 255 for "m1" and "m2" parameters.

Command Description +A Compare Variable +C Buffer Comparison I Comparison Operator Data Entry Source Buffer Destination Buffer No change Buffer updated Terminal Special Conditions PNC 330/340 None XL Available on versions 2.5 or greater

TRANZ 330/340/380 None

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

*X - Select Account Number Range

Parameters: Default Parameter Value Description m4 40 Optional; the memory location of the first account range to use from the account range table. (Range 0-255)

m2 59 Optional; the memory location of the last account range to use from the account range table. (Range 0-255)

Note: The account ranges used are a series of consecutive memory locations called the Account Range Table. Each account range specifies the lowest and highest account number it will accept. The account range also has a data field that will be appended to the destination buffer if the account number falls within the range.

s 0 Optional; the number of commands to skip if the first digits of the account number fall within the series of account ranges specified by parameter 1 and 2.

Examples: In these examples, we will use the following Account Range Table. The data field material presented is optional. If you don’t use this information, be sure to include the period following the second entry (for example, 40= 4000.4999.).

Lowest Highest Memory, Entry Entry Location Permitted Permitted Data Field

Beginning of Account Range Table

40 = 4000 . 5000 . VISA 41 = 6000 . 6999 . DISC 42 = 34 . 38 . MIDDLE THREE 43 = 3000 . 3999 . ALL THREE 44 = <empty> End of Account Range Table 80 NOT RANGED

5-163

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

5 - 164

Example 1:

Example 2:

Example 3:

Example 4:

*X - Select Account Number Range

Note: Although the default for parameter 2 is memory location 59, if the terminal encounters an empty memory location in the Account Range Table (in this example, location 44) before it reaches the last account range, the terminal will terminate the "*X"command and execute the next command. See Example 3.

Command Operation

; This command, as shown in context with other TCL commands, is used for ; all four following examples. The Account Range Table is listed on the ; previous page.

100=9 104=9 107$ B5.5G ; Select buffer 5 and clear it G F1 ; Display "ENTER ACCOUNT NUM’ E ; Accept entry from cardreader or keypad D ; Delete field separator at end B.4 ; Select buffer 4 as the destination buffer and clear it G *X..1 ; Range the source buffer, skip 1 command if ranged A80 ; Append ’NOT RANGED’ to the destination buffer, ; Wait for ENT to continue *W..1 L ; Re-execute this control string

If the user enters 4212 123 456 789, the terminal will see that the first four digits of the number (4212) will fall between the range 4000-5000. It will then append the third data field "VISA" to the destination buffer and skip one command.

If the user enters 3000 123 456 789, the terminal will see that the account number does not fit within the first three account ranges, but it does fit the fourth. The terminal will then append "ALL THREE" to the destination buffer and skip one command.

If the user enters 20, which does not fit anywhere in the Account Range Table, the terminal will execute command A80 immediately following the "*X" command.

If the user enters 68, the terminal will then see that the account number fits within the second range, and will append ’DISC’ to the destination buffer.

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

+X - Transmit Data to the Network

Description: | Transmits data to the network in the format of one or more characters contained within single quotes, or a decimal value not contained in quotes. Use this command to pass the four parameters of a login string, such as the user name, user password, user location, and location password. See Appendix | for login string information.

See Also: | Command Description +D Tone Dial +F Response ACK +1 Send Over Modem +K Carrier Control +M Set Modem Parameters *P Specify Characters *R Specify Device, Speed and Format Ss Dial Phone Number *T Specify Timeouts *V Append Phone Status +Y¥ Receive Data from Network

Category: Buffer Operations

Buffer Status: | Source Buffer Destination Buffer No change Buffer updated Terminals Supported: Terminal Special Conditions PNC 330 None XL Available on 2.70 and greater TRANZ 330 Available on 3.40 and greater TRANZ 380 None

Command Format:

5 - 165

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

5 - 166

+X - Transmit Data to the Network

Parameters: Default Parameter Value Description c 0 Data to send. This may be represented as a string of characters within single quotes or a decimal value. Use this parameter to send a <CR> or message. If used with <login parameter>, this data will follow the login parameter data. The default setting to send nothing is "0".

at 0 Login parameter to send. This allows you to select one of the following:

0 no parameter selected (default)

1 user name selected (or ist parameter from login parameters)

2 user password selected (or 2nd parameter from login parameters)

3 user location selected (or 3rd parameter from login parameters)

4 location password selected (or 4th parameter from login parameters) If used with <data>, the login parameter data will be sent preceding the value(s) in <data>.

a2 0 Sends a space break to the modem. Entering "1" causes a space break and all other parameters will be ignored. "O" is the default, indicating no space break.

Examples: Command Operation

240$ +P2000 ; Wait 2000 mis (2 seconds) +X13 ; Transmit a <CR> +Y58.21000.1.1 ; Wait for’: for 1/2 second, retries, ; display host message and skip 4 ; commands if no receive

*W1 ; Pause

+X44 ; Transmit a’?

+X13.1 ; Transmit <username> <CR> +P100

11 ; Skip 1 on good response *K1 ; Else kill the display