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

TCL Terminal Control Language Programmer's Manual, pages 191 to 200

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

*S - Verify Memory Available

Example: Command Operation

; Check if 40 bytes of memory are available. If ; not, display "NOT ENOUGH MEMORY" and

; abort. If memory is available, add contents of ; destination buffer to the open batch.

*S2.40 ; If more than 40 bytes of memory are available, ; skip 2 commands.

P123 ; Display "NOT ENOUGH MEMORY" prompt ; (stored at memory location 123)

*K1 ; Abort control string

*C ; Add destination buffer to the open batch

5-127

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

5 - 128

Description:

See Also:

Category:

Buffer Status:

Terminals Supported:

Command Format:

Parameters:

+S - Get Buffer Size

Gets the size of the destination buffer, places it into the specified variable. The resulting length may be either the actual length or the compressed length. Command Description Size: *S Get Memory Size *Z Calculate Free Bytes Buffer Commands: B Select Buffers D Delete Characters from Buffer G Clear Destination H Search for String +J Buffer Modification O Move Extraction Pointer U Copy Buffer to Memory Location V Display Buffer Z Pad Destination Buffer Buffer Operations

Source Buffer

Destination Buffer

No change

Terminal

No change; buffer read for size

Special Conditions

PNC 330/340

XL

TRANZ 330 TRANZ 330 (202) TRANZ 340 TRANZ 380

None Available on versions 2.4 or greater Available on versions 1.4 or greater Available on versions 2.1 or greater Available on versions 2.1 or greater None

Default Parameter Value Description b destination Buffer a 0 0 = uncompressed 1 = compressed #v 0 variable

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

+S - Get Buffer Size

Examples: Command Operation

; This routine will get the size of the data capture record that we are about to ; write to memory and verify that there is enough memory available to add.

; the record 88=NOT ENOUGH MEMORY 670$ +S4.1.43 ; Get the compressed size of the record ; and store variable #3 *S2.#3 ; If more bytes are available than the size we ; have in variable #3, then skip 2 P88 ; Display "NOT ENOUGH MEMORY" *K1 ; Abort and leave current display +G ; Add destination buffer to the selected batch

5 - 129

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

T - Perform Arithmetic Operations

Description: | Performs integer arithmetic operations on the contents of a specified memory location and the destination buffer. The terminal will write the result of the operation back into the specified memory location. When you perform arithmetic on two strings, the arithmetic is only applied to the numbers contained in the string; the terminal ignores alphabet and decimal points, and uses any dash within the string as a negative sign. For example, if you added the strings QF1E2.31-2 and QA5B1C1, the terminal would add the numbers - 1232 and 511; the decimal points are not included in the result.

Note: The answer can consist of as many as 15 digits.

See Also: | Command Description

*O Arithmetic on Variables

Category: Buffer Operations

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

TRANZ 330/340/380 None

Command Format:

Parameters: Default Parameter Value Description m 000 Optional; the memory location to be used oO 0 Optional; operation code identifying operation to be performed; default operation code is 0, for addition; other operation code options include:

0 ml = ml + db (addition)

ml = ml - db (subtraction)

ml = ml * db (multiplication)

ml = mi / db (division)

ml = the remainder of ml/db (modulo)

legend:

ml = memory location;

db = destination buffer hOND, 5 - 130

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

T - Perform Arithmetic Operations

Note: When performing division, operation 3 produces a quotient, and operation 4 produces the remainder. Operations have a 15-digit maximum (e.9., 999, 999,999,999,999).

If adding a value to a value with a decimal point, the decimal point is ignored.

Examples: Command Operation 126$ B.5 ; Selects buffer 5 as the destination buffer G ; Clears the buffer R53 ; Append ‘5’ to the destination buffer T122.2 ; Multiply contents of memory location 122 by 5 127$ T#5.1 ; Subtract the destination buffer from the memory

; location pointed to by variable #5. : Before: Variable #5 = 150 ; Location 150 = 1000 ; Destination Buffer = 40 ; After: Location 150 = 960

‘ Ww a nn ew nn nn nn nn nn nn nn ee ee eee eee eee 4

; Routine to increment a 6-digit sequence number, padded with ; leading zeros, upon reaching ’999999’ roll to sequence ; number 000001’.

; increment number

128$ B3.3 ; Select source and destination buffer 3 G ; Clear destination buffer A60 ; Append the sequence number 14.2.’999999’ ; If not = 999999’, then skip 4 else G ; Clear destination buffer R48 ; Append zero Z6.48.1 ; Pad with zeros up to 6 characters, right justified . U60 ; Update sequence number G ; Clear destination buffer R49 ; Append 1 to destination buffer T60 ; Increment sequence number by 1 G ; Clear destination buffer A60 ; Append sequence number. When you perform ; an arithmetic operation on a memory location, ; the padding is lost, so we need to pad for ; future uses of this number Z6.48.1 ; Pad with zeros up to 6 characters, right justified U60 ; Update sequence number with padded value

5-131

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

5 - 132

Description:

See Also:

Category: Buffer Status:

Terminals Supported:

Command Format:

*T - Specify Communications Timeouts

Sets the length of various communications timeout periods for dial terminals only. This command works with the current transaction. Once the terminal returns to the idle state, the values return to the default.

Command Description +D Tone Dial +F Response ACK +l Send Over Modem +K Carrier Control +M Set Modem Parameters *p Specify Characters *R Specify Device, Speed and Format Ss Dial Phone Number “Vv 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 "a" not available

PNC 340 Not available - see page 5-135

XL "a" not available

TRANZ 330 "a" not available in versions prior to 3.6 TRANZ 330 (202) Not available - see page 5-135

TRANZ 340 Not available - see page 5-135

TRANZ 380 "a" available in versions 1.10 or greater

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

*T - Specify Communications Timeouts

Parameters: Default Parameter Value Description t 45 sec Optional; carrier detect timeout period;

this timeout period begins when the terminal finishes dialing, and ends when the terminal detects a carrier tone; you may specify a timeout period of 1 to 65 seconds; a 0 or blank leaves the value as is. A timeout causes the terminal to display (NO ANSWER’.

te 30 sec Optional; ENQ timeout period; this timeout period begins when the terminal detects carrier tone, and ends when it detects an ENQ; you may specify a timeout period of 1 to 255 seconds; a 0 or blank leaves the value as is. A timeout causes the terminal to display ’(NO ENQ FROM HOST’.

ts 45 sec Optional; response packet timeout period; this timeout period begins when the request packet is sent and ends when the terminal __ receives the complete response packet; you may specify a timeout period of 1 to 255 seconds; a 0 or blank leaves the value as is. A timeout causes the terminal to display ’NO RESP FRM

HOST’. t4 1 Optional; the number of response timeout timeout periods to allow before the terminal hangs period up; when the response timeout period is reached, the unit decrements this count, sends an ENQ and waits for a response; if the count reaches zero, the terminal will hangup; the default value for this parameter is 1 t5 2 sec Optional; EOT timeout period; this timeout period begins when the terminal receives the response packet, and ends when the terminal receives the EOT; you may specify a timeout period of 1 to 255 seconds; a 0 or blank leaves the value as is. Timeout occurs between batch transmit and multitrans as well as standard transactions.

a 0 Optional; End of Text enable/disable 0 - no change 1 - enable EOT timeout 2 - disable EOT timeout

5-133

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

*T - Specify Communications Timeouts

Example: Command Operation

; This routine is used from the idle control string to wait for input from the ; keyboard, serial port, or modem. The first control string sets modem default

981$

*L946

+M1.3 ; Originate mode 8,N,1

B.2 ; Initialize buffers

G

B.1 ;

G

P160 ; TRANZ - MODEM

*T ; Set max timeouts

65 ; DCD

.255 ; ENQ

.255. ; Response packet timeout, default used for

; number of timeouts

.255 ; EOT

*P....2 ; Set 1200 baud

L913 ; Do setup once, go into idle

;Idle_lp ; Idle control string - loop 913$

+A#1 ; Test var 1 for current mode

0 ; Test for equal

1 ; Equal to 1 (local command mode)

2 ; Skip carrier check

+K7.1 ; Check for carrier

L915 ; Lost carrier, hang up

B.1 ; Init work buffers

G

B.2 ;

G

*YO ; Input vectors, wait forever

.O ; RDR: Magnetic Cardreader

1 ; KBD: Keyboard

2 ; BAR: Bar Code Wand

3 ; SIO: Serial I/O Port

4 ; MDM: Modem

5 ; PIN: PIN Pad

L ; Idle_Lp - no cardreader input

L ; Idle_Lp - no keyboard input

L919 ; Bar_hndir

L920 ; Port_hndlir

L930 ; Mdm_hndlr

L ; Idle_Lp - no PIN input *T30.30.30.1.5 ; Set all timeout periods to 30 seconds except for

; EOT timeout which is to be set at 5 seconds.

5 - 134

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

*T - Specify Communications Timeouts

Description: Sets the length of various communications timeout periods for polled terminals. (See previous command for dial terminals.)

See Also: | Command Description +l LAN Send and Receive *V Append LAN Status Code

Category: Communications Control

Buffer Status: Source Buffer Destination Buffer

Pointer at end of Buffer updated data if receiving

Terminals Supported: Terminal Special Conditions

PNC 330 Not available - see previous command PNC 340 None

XL Not available - see previous command TRANZ 330 Not available - see previous command TRANZ 330 (202) None

TRANZ 340 None

TRANZ 380 Not available

Command Format:

Parameters: Default Parameter Value Description nu (not used) 1 30 sec T340/PNC 340 optional; time to complete transmission and receive ZLTP ACK; you may specify a timeout period of 1 to 255 seconds; a 0 or blank leaves the value as is. T330 (202) timer setting for packet transmission attempts.

ti (continued) 30 sec This means if the 202 is either waiting for a free transmit buffer and times out, or is waiting to transmit and times out, the terminal will display *BAD TX COMM’.

5-135

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

5 - 136

Parameters (continued)

Example:

*T - Specify Communications Timeouts

Parameter

Default Value Description to

Command

45 sec Optional; time to wait for response after sending a message; timeout period begins when the request packet is sent and ends when the terminal receives the complete response packet; you may specify a timeout period of 1 to 255 seconds; a 0 or blank leaves the value as is.

Operation

*T.10.60

; Set transmit timeout to 10 seconds ; Set receive timeout to 60 seconds