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

TCL Terminal Control Language Programmer's Manual, pages 121 to 130

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

+H - Wait for Encrypted Block from PIN Pad

Example: Command Operation

50=CUST TERMINATED;

53$ ;. (generate PIN request message) +T1 ; Send PIN request to PIN Pad +H1 ; Wait for PIN block; skip 1 if user ; pressed [CLEAR] on PIN Pad *M ; Got the PIN block so return to calling ; subroutine P50 ; Display CUST TERMINATED *K1 ; Abort

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

Description:

See Also:

Category:

Buffer Status:

Terminals Supported:

Command Format:

| - Comparison Operator

Does a byte-for-byte comparison of the value of a string in the source buffer (pointed to by the extraction pointer) to the value of the string or constant specified by the "c" parameter.

Note: If the extraction pointer points to an empty string, it causes the "skip" to always occur. A positive command skips x commands forward and puts its pointer on the next command to be executed; a negative command skips x commands backwards and puts its pointer on the current command to be executed.

Command Description +A Compare Variable +C Buffer Comparison

Process and Flow Control

Source Buffer Destination Buffer Pointer does not No change move

Buffer read

Terminal Special Conditions PNC 330/340 None XL None

TRANZ 330/340/380 None

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

| - Comparison Operator

Parameters: Default Parameter Value Description s 0 Optional; number of commands to skip when the comparison specified by the "a" parameter is true; "s" parameter may be a positive or a negative number a 0 Optional; a comparison code indicating the type of comparison to be made; the default is O (unconditional jump); other comparison options are:

Unconditional jump (default)

Skip if equal

Skip if not equal

Skip if less than specified character

Skip if greater than specified character

Skip if single transaction

Skip if not first pass of a multi-transaction session with a host 7 Decrement variable pointed to by "c" parameter and skip if the variable is not zero c 28 Optional; a literal string or decimal value of ASCII character; this string will be compared to data in source buffer. Default value is 28 (field separator, FS), the decimal constant for an ASCII field separator.

Oonhwonw-o

Example: 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.2 ; Append logon ID if empty, skip 2 commands 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 ; This routine counts down from 7 to 0 31$ B.5 ; Select work buffer *N#2.7 ; Set variable 2 to 7 G ; Clear buffer +Q#2 ; Append variable 2 to buffer V.2.2 ; View buffer with 1 second delay 1-3.7.#2 ; Decrement variable 2, skip back if value is ; non-zero

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

Description:

See Also:

Category:

Buffer Status:

*| - Character I/O Over the DIN 8 Port

Provides character Input/Output via the 8-pin DIN RS-232 port on the rear of the PNC/TRANZ terminal.

Typical input/output messages include pass characters which are coded in ROM and represent special flag characters used in data communication. A pass character is only valid when parameter "a" = 7. When received, the terminal processes and then acts upon its represented message. Valid pass characters include the following:

Character Hex Description

EOT 04h End of Transmission ENQ 05h Enquire

ACK 06h Acknowledgement NAK 15h No acknowledgement CR ODh Carriage return vACK 07h VISA ACK 1 vWACK, 1th Wait ACK

VWAIT 12h VISA wait

Special host communication characters used when logging into several different hosts and networks:

@ 40h : 3Ah = 3Dh ~ 7Eh XON 11h

Note: When set in PNC mode, the PNC 330 and 340 do not support the *! command.

Command Description N Send Buffer to Printer *R Specify Device, Speed and Format +R Set RS-232

Communications Control

Source Buffer Destination Buffer

No change If received, buffer updated

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

Terminals Supported:

Command Format:

Parameters:

*| - Character I/O Over the DIN 8 Port

Terminal Special Conditions

PNC 330/340 Not supported when in PNC mode XL Available on 2.8 or greater TRANZ 330/340 Available on 2.1 or greater TRANZ 330 (202) Available on 2.1 or greater TRANZ 380 None

Default Parameter Value Description a ce) Optional; Options for this parameter are: Transmitting data 0 send transmit buffer 1 append termination character TERMCHAR (set with *P command) and LRC, then send transmit buffer Receiving data 5 wait for number of characters specified in “n" parameter to be received, append to destination buffer 6 wait for one character or packet to be received, append it to destination buffer; if STX is received, wait for packet; LRC check is done and a NAK will be sent upon a bad packet 7 wait for pass character or packet, retransmit last data if NAK is received; append receive character or packet to destination buffer; LRC check is done and a NAK will be sent upon a bad packet. (See also *P command for specifying pass characters.) t 0 Optional; timeout period in seconds (receive only); 0 = wait indefinitely 1-255 = number of seconds to wait If the unit times out, the destination buffer remains unchanged s 0 Optional; number of commands to skip if requested data is received (receive data only) n 1 Optional; minimum number of characters to wait before appending characters to destination buffer (only if "a" parameter = 5) (receive data only)

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

5 - 62

Example:

*| - Character I/O Over the DIN 8 Port

Command Operation

323$ ; Enter loop here to wait for next audit request without sending special audit ; ACK.

B2.2 ; Select B2 (receive buffer)

G ; Clear B2

+18.240.1 ; Wait for message from controller 1-3 ; If none received in timeout, wait again

*R9.2 ; Set no handshake on RS232

B.1 ; Select Dest = B1 (xmit buffer)

G ; Clear B1

R17 ; 17 = XON char (select char)

*| ; Send out RS232

*W1 ; Pause 1 second

*R9.1 ; Set handshake

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

Description:

See Also:

Category:

Buffer Status:

+I - Character I/O Over the Modem Port

The "+1" command provides Input/Output over the modem port. (For dial terminals only. See "+I" LAN Send and Receive for polled terminals.)

Typical input/output messages include pass characters which are coded in ROM and represent special flag characters used in data communication. A pass character is only valid when parameter "a" = 7. When received, the terminal processes and then acts upon its represented message. If error, an error code is appended to the destination buffer. See page 2-16 for a list of error codes. Valid pass characters include the following:

Character Hex Description

EOT 04h End of Transmission ENQ 05h Enquire

ACK 06h Acknowledgement NAK 15h No acknowledgement CR ODh Carriage return vACK 07h VISA ACK 1

VWACK, 11h Wait ACK vWAIT 12h VISA wait

Special host communication characters used when logging into several different hosts and networks:

@ 40h : 3Ah = 3Dh ~ 7Eh XON 11h Command Description +D Tone Dial +F Response ACK +K Carrier Control +M Set Modem Parameters *p Specify Characters *R Specify Device, Speed and Format S Dial Phone Number *T Specify Timeouts "Vv Append Phone Status +X Transmit Data to Network +Y Receive Data from Network

Communications Control

Source Buffer Destination Buffer

No change If received, buffer updated

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

Terminals Supported:

Command Format:

Parameters:

+I - Character I/O Over the Modem Port

Terminal Special Conditions

PNC 330 None

PNC 340 Not available - see +! LAN Send and Receive

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 - see +1 LAN Send and Receive

TRANZ 380 None

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

Transmitting Data:

0 send transmit buffer

1 append termination character TERMCHAR (set with*P command), and LRC, then send transmit buffer

Receiving Data:

5 wait to receive the number of characters specified in "n" parameter, then append it to the receive buffer

6 wait for one character/packet to be received, then append it to receive buffer if you receive a STX, wait for complete packet; LRC check is done and a NAK will be sent upon a bad packet

7 wait for pass character or packet,retransmit last data if NAK received, then append receive character or packet to the receive buffer; LRC check is done; a NAK will be sent upon a bad packet (See also *| Command for pass characters.)

t 0 Optional; timeout period in seconds, (receive only)

0 = wait indefinitely

1-255 = number of seconds to wait.

If the unit times out, the destination buffer remains unchanged.

s ce) Optional; number of commands to skip if requested data is received (receive only) n 1 Optional; minimum number of characters to wait for (only if "a" parameter = 5) (receive data only)

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

Examples:

+1 - Character I/O Over the Modem Port

Command Operation +1 ; Send transmit buffer to the modem. +15.10.3.4 ; Allow 10 seconds to receive four characters from

; the modem. Skip three commands if four characters ; are received within 10 seconds.

Refer to Appendix D for communication examples using this command.

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

Description:

See Also:

Category:

Terminals Supported:

Buffer Status:

+l - LAN Send and Receive

Sends and receives data over the LAN (local area network). If the send or receive fails for some reason, a one-digit error code will be appended to the destination buffer.

Receive Error Codes:

Code Description

1 timed out

2 [CLEAR] key pressed

3 receive error occurred

4 not used

Send Error Codes:

Code Description

5 timed out

6 [CLEAR] key pressed

7 transmit error occurred

8 timed out waiting for ZLTP ACK

Command Description *T Specify Communications Timeout *V Append LAN Status Code

Communications Control

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) Not available

TRANZ 340 Available on versions 2.1 or greater see parameter "a", option 8

TRANZ 380 Not available

Source Buffer Destination Buffer

No change Buffer updated