The text of a manual · part 14 of 37
TCL Terminal Control Language Programmer's Manual, pages 131 to 140
Pages 131 to 140 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 131
+l - LAN Send and Receive
Command Format:
Parameters: Default Parameter Value Description a 0 Optional; options for this parameter are:
0 send message in transmit buffer to controller
7 clear operating system buffer, wait for LAN controller data, put it in the receive buffer and clear operating system buffer.
8 wait for LAN controller data before clearing operating system buffer, then put it in the receive buffer.
t 30 for TX Optional; timeout period in seconds, (receive only) 45 for RX 0 30-second timeout for transmit
Q 45-second timeout for receive or timeout set with *T command
1-255 number of seconds to wait. If unit times out, the destination buffer remains unchanged.
Ss 0 Optional; number of commands to skip if communication is successful n 1 Optional; transmit only
Examples: Command
0 no ZLTP ACK requested 1 ZLTP ACK requested
Operation
113$ B.1 G R"TEST" +10
; Destination = transmit buffer
; Clear transmit buffer
; Append “test" to transmit buffer
; Send the message "TEST" to the LAN ; Controller
Page 132
Description:
See Also:
Category:
Buffer Status:
Terminals Supported:
Command Format:
Parameters:
J - Append Clock Data to Destination Buffer
Appends clock data to the destination buffer and allows you to set the real-time clock chip using data from the destination buffer or to read clock data from the clock chip.
Command Description
A Append from Memory Location
Q Append Write Control Character
+Q Append Variable to Buffer
R Append Constant
+V Append Sign On Message
X Append from Source
Y Append Non-Blank Memory Location Buffer Operations
Source Buffer
Destination Buffer
No change Buffer read or updated Terminal Special Conditions
PNC 330/340 None XL None TRANZ 330/340/380 None
Default Parameter Value Description n none Required; the parameter is either the number 1 or a command string. See the following text. * Enter a "1" to set the real-time clock chip to the time specified in the destination buffer. The format of the destination buffer is:
¢ WYYMMDDHHMMSS Ww day of week (O=Sunday, 1=Monday, 2=Tuesday, etc.) YY year (19YY) MM month (01=January, 02=February, 03=March, etc.) DD day of the month (01 through 31) HH hour (24-hour clock; 1 p.m.=13) MM minutes ( 00 through 59) ss seconds (00 through 59)
Page 133
J - Append Clock Data to Destination Buffer
* To append clock data to the destination buffer, enter a command string specifying the format of the data to be read from the calendar/clock chip. The string must be enclosed in single quotes, and may contain letters, spaces, symbols and numbers. All characters in the string are literal and will be displayed exactly as written, except for the letters which are replaced by clock data according to the "Clock Data Table. " See the following examples and the "Clock Data Table".
Clock Data Table Clock Code Data Examples A 2-digit year 1991 = "91" - (00 ... 99) B 2-digit month July = "07" - (01 ... 12) Cc 2-digit date 1 through 31 D 2-digit hours 12-hour clock 1 p.m.="01" E 2-digit minutes 00 through 59 F 2-digit seconds 00 through 59 G AorP a.m. = "A" p.m. = "P" (12-hour only) H 4-digit year 1991 = "1991" - (1980 ... 2079) I 3-letter month January = "JAN" J Full month January = "JANUARY" K 2-digit hours 24-hour clock 1 a.m.="01" 1 p.m.="13" L 3-letter day Monday = "MON" M "M" adds "M" to a.m. and p.m. (see G) N Full day Monday = "MONDAY" O colon (:) Colon for time (8:30 14:22:13) P equal sign (=) Equal sign instead of colon (8=30 14=22=13) Q numeric day Sunday=0 Monday=1 Tuesday=2 etc.
TRANZ 380, TRANZ 330 3.60+ and PNC 330 only:
R 0 - 6 digits Allow leading zeros (01 Jan 91) Ss 0 - 6 digits Suppress leading zeros (1 JAN 91) T blinking colon (’: or’=’) U 1 character append next char (‘UHUI DOE = HI 10:30) Examples: Command Operation
; This routine will capture the transaction start date and time for ; later use in the format "YYMMDDHHMMSS"
158$ B.4 ; Select destination buffer 4 G ; Clear destination buffer J’ABCKEF’ ; Append date/time in format ; "YYMMDDHHMMSS" U81 ; Store date/time
Page 134
J - Append Clock Data to Destination Buffer
Examples: Command Operation (continued) 159$ ; J1 example B.5 ; Select a work buffer G ; Clear it R’0910101010000" ; Get ready to set clock to Sunday, ; Jan 01, 1991, 1:00:00 A.M. J1 ; Set the real-time clock chip
Note: The ’.’ command, when entered in memory location 030 (idle prompt), operates the same as the "J" command. If you enter ’.’ as the first character in memory location 030, it lets you set the idle prompt as a date/time display.
Page 135
Description:
See Also:
Category:
Buffer Status:
Terminals Supported:
Command Format:
Parameters:
*J - Justify Display
Determines how the terminal justifies the data displayed on the screen.
When the data is longer than 16 characters (the length of the display screen), the "*J" command determines whether the leftmost or rightmost characters are displayed.
Command Description F Display Fixed Prompt P Display Custom Prompt V Display Buffer
Ouputs and Data Display
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 a 0 Optional; the options for this parameter are as follows: 0 display rightmost characters 1 display leftmost characters
Page 136
Example:
*J - Justify Display
Command Operation
; This routine is called after we receive a response message back from host ; and we want to extract the display message and display it. Display
; Message in host response is after the second field separator. The response ; is variable length and longer than 16 characters. Message is right-justified
; SO merchant will know message is longer than 16 characters.
178$
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 oO ; Move the extraction pointer by 1 H ; Find the second field separator in the ; host response oO ; Move the extraction pointer by 1 X.28 ; Copy up to the next field separator “J ; Right justify the display V.2 ; Display message in the destination buffer *K4 ; Abort and leave the current display up
Page 137
Description:
See Also:
Category:
Buffer Status:
Terminals Supported:
Command Format:
+J - Buffer Modification
Modifies the source and destination buffers to remove periods or commas, to add the ’$’ sign and decimal point and convert control characters to printable characters. This command also computes logical AND, OR and XOR of data.
Command
Description
N<CAhOTHOD
Buffer Operations
Source Buffer
Select Buffers
Delete Characters from Buffer Clear Destination
Search for String
Move Extraction Pointer
Get Buffer Size
Copy Buffer to Memory Location Display Buffer
Pad Destination Buffer
Destination Buffer
Updates depending on parameter option; pointer at end
Updates buffer of data
Terminal Special Conditions
PNC 330/340 None
XL Available on 2.6 and greater TRANZ 330/340 Available on versions 2.1 or greater TRANZ 380 None
Page 138
+J - Buffer Modification
Parameters: Default Parameter Value Description a 0 Optional; options for this parameter are:
QO append source buffer to destination buffer; remove periods or commas
1. append source buffer to destination buffer; add "$" and decimal point
2 append source buffer to destination buffer; convert contro! characters to printable characters
3 copy source buffer to destination buffer, using mask in destination buffer
4 logically AND data in the source and destination buffers; put results in the destination buffer
5 logically OR data in the source and destination buffers; put the results in the destination buffer
6 logically XOR data in the source and destination buffers; put the results in the destination buffer
Example 1: Command Operation
; This routine will display the response for an offline approval.
610$
B.5 ; Select destination buffer
G ; Clear destination buffer
A5 ; Append reference number
Z6 ; Pad up to 6 characters with spaces, left justify
B.3 ; Select destination buffer
G ; Clear destination buffer
A82 ; Append unformatted amount
B3.5 ; Select source and destination buffer
+J1 ; Copy and format amount
B4 ; Select source buffer
02 ; Move extraction pointer 2 places
X2 ; Copy the card type
A153 ; Append transaction type
R32 ; Void indicator....."V" or" "
Z17 ; Pad up to 17 characters with spaces, ; left justified
A80 ; Append account number
233 ; Pad up to 33 characters with spaces, ; left justified
*J1 ; Left-justify
V.2 ; Display the destination buffer
Page 139
Example 2:
Example 3:
Note:
+J - Buffer Modification
Command Operation 160$ ; +J3 example B.5 ; Select 1st buffer G ; Clear it R’1234567’ ; Append data B5.4 ; Move data to source, select new destination G ; Clear new destination buffer R’--- ; Append mask to new destination buffer +J3 ; Copy source to destination ; The destination buffer now contains ’1-3-5-7’. Command Operation 161$ ; +J2 example B.3 ; Select 1st buffer G ; Clear it R2 ; Append <STX> R’4017485948323345' ; Append account R ; Append <FS> R’1299’ ; Append expiration date R ; Append <FS> R’2500’ ; Append amount R3 ; Append <ETX> B3.4 ; Move packet to source, ; get new destination G ; Clear new destination buffer +J2 ; Copy packet to destination, ; convert control ; characters to printable ; characters N2 ; Send to printer with two ; <CR><LF>s Ww ; Wait for printing to complete *K ; Abort the control string
; The message printed out: ;4B4017485948323345//1299%
; 12500°CAMAJAMAI
When using +J1 with an amount less than $1.00, it will not include a leading zero (99 will convert to $.99, not $0.99).
Page 140
Description:
See Also:
Category:
Buffer Status:
Terminals Supported:
Command Format:
K - Input from Keypad Only
Causes the terminal to accept input from the keypad only, place a field separator after the entered data, except when input type flag 4 is selected. The data will be appended to the destination buffer. If the user swipes a card through the cardreader, the terminal beeps, displays KEYBOARD ONLY for three seconds and returns to the idle prompt. When the user enters a keypress, the cardreader buffer is cleared.
The "K4" command can accept negative amount entries in XL version 2.02 and higher, PNC 330/340, TRANZ 330 1.3 and higher, and TRANZ 380. Press the [*] key before entering the first digit of the amount. The negative sign will be displayed on the left side of the amount.
Note: If input type flag 4 is selected and a field separator is desired, use the “R" command to append a field separator to the end of the entered data.
Command Description E Input from Card Reader or Keypad +E Input Variable Decimal Point M Input from Card Reader 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 None XL “s" and "i" parameters are not available TRANZ 330/340 "i" parameter available on version 2.1 or greater TRANZ 380 None